1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 08:25:57 +00:00

update translations

This commit is contained in:
Andrew Dolgov
2007-08-11 16:40:27 +01:00
parent 68659d9896
commit 6a214f923d
7 changed files with 133 additions and 179 deletions

View File

@@ -9,10 +9,12 @@
require_once 'config.php';
function get_translations() {
$tr = array("en_US" => "English",
"ru_RU" => "Russian",
"fr_FR" => "French",
"zh_CN" => "Chinese");
$tr = array(
"" => "Detect automatically",
"en_US" => "English",
"fr_FR" => "Français",
"ru_RU" => "Русский",
"zh_CN" => "Simplified Chinese");
return $tr;
}
@@ -24,7 +26,7 @@
function startup_gettext() {
# Get locale from Accept-Language header
$lang = al2gt(array("en_US", "ru_RU", "zh_CN", "fr_FR"), "text/html");
$lang = al2gt(array_keys(get_translations()), "text/html");
if (defined('_TRANSLATION_OVERRIDE_DEFAULT')) {
$lang = _TRANSLATION_OVERRIDE_DEFAULT;