function language_name($code) { if ($code == 'en') { return "<em>en</em> (English)"; } else { $lname = tr_specific("LANG_NAME_NATIVE", $code); if ($lname == 'English' || $lname == '') { return "<b>{$code}</b>"; } else { return "<b>{$code}</b> (" . tr_specific("LANG_NAME_INTERNATIONAL", $code) . "/{$lname})"; } } }
echo tra("LANG_NAME_NATIVE"); ?> ). <p> Normally the choice of language is determined by your browser's language setting, which is: <b><?php echo $prefs; ?> </b>. You can change this setting using: <ul> <li>Firefox: Tools/Options/General</li> <li>Microsoft IE: Tools/Internet Options/Languages</li> </ul> <p> Or you can select a language by clicking on one of the links. This will send your browser a cookie; make sure your browser accepts cookies from our domain. </p> <?php start_table(); row2("Language symbol", "Language name (click to select)"); row2("", "<a href=language_select.php?set_lang=auto>Use browser language setting</a>"); sort($languages); foreach ($languages as $language) { row2("<a href=\"language_select.php?set_lang={$language}\">{$language}</a>", "<a href=\"language_select.php?set_lang={$language}\">" . tr_specific("LANG_NAME_INTERNATIONAL", $language) . " (" . tr_specific("LANG_NAME_NATIVE", $language) . ")</a>"); } end_table(); echo "\r\n\t<p>\r\n\tTranslations are done by volunteers.\r\n\tIf your native language is not here,\r\n\t<a href=translate.php>you can help</a>.\r\n"; page_tail();