| 32 | | <dd><a href="http://alternc.org/wiki/Documentation/Utilisateur" target="help"><?php __("Online help"); ?></a></dd> |
| | 31 | global $lang; |
| | 32 | |
| | 33 | $doc_lang = substr($lang, 0, 2); // ex: get "fr" only, not "fr_CA" |
| | 34 | $doc_url = 'http://alternc.org/wiki/Documentation/En/User'; |
| | 35 | |
| | 36 | switch ($doc_lang) { |
| | 37 | case 'fr': |
| | 38 | $doc_url = 'http://alternc.org/wiki/Documentation/Fr/Utilisateur'; |
| | 39 | break; |
| | 40 | |
| | 41 | case 'es': |
| | 42 | $doc_url = 'http://alternc.org/wiki/Documentation/Es'; |
| | 43 | break; |
| | 44 | } |
| | 45 | |
| | 46 | echo '<dd><a href="' . $doc_url . '" target="help">' . _("Online help") . '</a></dd>'; |