Commit e5066ee7 authored by mlutfy's avatar mlutfy
Browse files

use language-dependant URLs for user documentation URL

parent ced52717
......@@ -27,6 +27,20 @@
Purpose of file:
----------------------------------------------------------------------
*/
?>
<dd><a href="http://alternc.org/wiki/Documentation/Utilisateur" target="help"><?php __("Online help"); ?></a></dd>
global $lang;
$doc_lang = substr($lang, 0, 2); // ex: get "fr" only, not "fr_CA"
$doc_url = 'http://alternc.org/wiki/Documentation/En/User';
switch ($doc_lang) {
case 'fr':
$doc_url = 'http://alternc.org/wiki/Documentation/Fr/Utilisateur';
break;
case 'es':
$doc_url = 'http://alternc.org/wiki/Documentation/Es';
break;
}
echo '<dd><a href="' . $doc_url . '" target="help">' . _("Online help") . '</a></dd>';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment