diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-21 15:44:31 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-21 15:44:31 +0000 |
| commit | b6f0565a4e0809d29950d26e95050ff4a3deaa8f (patch) | |
| tree | 4965433b13f68c7c51119e0a7744ce7f6004c7fe /frontends/php/include/locales.inc.php | |
| parent | 3e8c5c43f93bdc2cea90a021eedee58327d83641 (diff) | |
| download | zabbix-b6f0565a4e0809d29950d26e95050ff4a3deaa8f.tar.gz zabbix-b6f0565a4e0809d29950d26e95050ff4a3deaa8f.tar.xz zabbix-b6f0565a4e0809d29950d26e95050ff4a3deaa8f.zip | |
- [DEV-97] added screen for easier creation of locales (Artem);
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5268 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/locales.inc.php')
| -rw-r--r-- | frontends/php/include/locales.inc.php | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/frontends/php/include/locales.inc.php b/frontends/php/include/locales.inc.php index 89290819..81a96625 100644 --- a/frontends/php/include/locales.inc.php +++ b/frontends/php/include/locales.inc.php @@ -1,7 +1,7 @@ <?php /* ** ZABBIX -** Copyright (C) 2000-2005 SIA Zabbix +** Copyright (C) 2000-2008 SIA Zabbix ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by @@ -20,18 +20,33 @@ ?> <?php # Translate global array $TRANSLATION into constants - function process_locales() - { + function process_locales(){ global $TRANSLATION; - global $GLOBALS; - if(isset($TRANSLATION) && is_array($TRANSLATION)) - { - foreach($TRANSLATION as $const=>$label) - { + if(isset($TRANSLATION) && is_array($TRANSLATION)){ + foreach($TRANSLATION as $const=>$label){ if(!defined($const)) define($const,$label); } } unset($GLOBALS['TRANSLATION']); } + + function set_zbx_locales(){ + global $ZBX_LOCALES; + $ZBX_LOCALES = array( + "en_gb"=> S_ENGLISH_GB, + "cn_zh"=> S_CHINESE_CN, + "nl_nl"=> S_DUTCH_NL, + "fr_fr"=> S_FRENCH_FR, + "de_de"=> S_GERMAN_DE, + "hu_hu"=> S_HUNGARY_HU, + "it_it"=> S_ITALIAN_IT, + "ja_jp"=> S_JAPANESE_JP, + "lv_lv"=> S_LATVIAN_LV, + "pt_br"=> S_PORTUGUESE_PT, + "ru_ru"=> S_RUSSIAN_RU, + "sp_sp"=> S_SPANISH_SP, + "sv_se"=> S_SWEDISH_SE, + ); + } ?> |
