davical/htdocs/help.php
Andrew McMillan 5debe92237 Move from extract.pl to standard xgettext
So far we have used extract.pl which originated in Horde to generate the
PO files. This process took a long time to run.

But xgettext is able to handle PHP by itself.

In the source translate() and i18n() are used instead of _() therefore
we have to pass a keyword parameter.

From now on Translators: is the keyword to provide content to the
translators on Transifex.

Conflicts:

	scripts/po/extract.pl
2011-02-21 22:39:40 +13:00

31 lines
1.3 KiB
PHP

<?php
include("./always.php");
include("DAViCalSession.php");
$session->LoginRequired();
include("interactive-page.php");
$c->page_title = "DAViCal CalDAV Server - Configuration Help";
include("page-header.php");
$wiki_help = '';
if ( isset($_SERVER['HTTP_REFERER']) ) {
$wiki_help = preg_replace('#^.*/#', '', $_SERVER['HTTP_REFERER']);
$wiki_help = preg_replace('#\.php.*$#', '', $wiki_help);
$wiki_help = 'w/Help/'.$wiki_help;
}
$content = sprintf(translate('<h1>Help</h1>
<p>For initial help you should visit the <a href="http://www.davical.org/" target="_blank">DAViCal Home Page</a> or take
a look at the <a href="http://wiki.davical.org/%s" target="_blank">DAViCal Wiki</a>.</p>
<p>If you can\'t find the answers there, visit us on <a href="http://wikipedia.org/wiki/Internet_Relay_Chat" target="_blank">IRC</a> in
the <b>#davical</b> channel on <a href="http://www.oftc.net/" target="_blank">irc.oftc.net</a>,
or send a question to the <a href="http://lists.sourceforge.net/mailman/listinfo/davical-general" target="_blank">DAViCal Users mailing list</a>.</p>
<p>The <a href="http://sourceforge.net/mailarchive/forum.php?forum_id=8348" title="DAViCal Users Mailing List" target="_blank">mailing list
archives can be helpful too.</p>'), $wiki_help);
echo $content;
include("page-footer.php");