tbrehm
2011-02-08 67a735a143bf8f836d0aeb14fdb44199414f6dd7
Moved number formatting information (number_format_* settings) from $conf array to the language files.
25 files modified
83 ■■■■ changed files
install/tpl/config.inc.php.master 6 ●●●●● patch | view | raw | blame | history
interface/lib/classes/listform.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/config.inc.php 6 ●●●●● patch | view | raw | blame | history
interface/lib/lang/ar.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/bg.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/br.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/cz.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/de.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/en.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/es.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/fi.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/fr.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/hu.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/id.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/it.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/ja.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/nl.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/pl.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/pt.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/ro.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/ru.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/se.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/sk.lng 3 ●●●●● patch | view | raw | blame | history
interface/lib/lang/tr.lng 3 ●●●●● patch | view | raw | blame | history
install/tpl/config.inc.php.master
@@ -143,15 +143,9 @@
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...
$conf['logo'] = 'themes/default/images/ispc_logo.png';
//** Default Language
$conf['language'] = '{language}';
$conf['debug_language'] = false;
//** Currency format
$conf['number_format_decimals'] = 2;
$conf['number_format_dec_point'] = ',';
$conf['number_format_thousands_sep'] = '';
//** Misc.
interface/lib/classes/listform.inc.php
@@ -277,7 +277,7 @@
    public function decode($record) 
    {
        global $conf;
        global $conf, $app;
        if(is_array($record)) {
            foreach($this->listDef['item'] as $field){
                $key = $field['field'];
@@ -329,7 +329,7 @@
                        break;
                    case 'CURRENCY':
                        $record[$key] = number_format($record[$key], $conf['number_format_decimals'], $conf['number_format_dec_point'], $conf['number_format_thousands_sep']);
                        $record[$key] = number_format($record[$key], (int)$app->lng('number_format_decimals'), $app->lng('number_format_dec_point'), $app->lng('number_format_thousands_sep'));
                        break;
                    default:
interface/lib/classes/tform.inc.php
@@ -163,7 +163,7 @@
        * @return record
        */
        function decode($record,$tab) {
                global $conf;
                global $conf, $app;
                if(!is_array($this->formDef['tabs'][$tab])) $app->error("Tab does not exist or the tab is empty (TAB: $tab).");
                $new_record = '';
                if(is_array($record)) {
@@ -199,7 +199,7 @@
                                break;
                                case 'CURRENCY':
                                        $new_record[$key] = number_format((double)$record[$key], $conf['number_format_decimals'], $conf['number_format_dec_point'], $conf['number_format_thousands_sep']);
                                        $new_record[$key] = number_format((double)$record[$key], (int)$app->lng('number_format_decimals'), $app->lng('number_format_dec_point'), $app->lng('number_format_thousands_sep'));
                                break;
                                default:
interface/lib/config.inc.php
@@ -133,12 +133,6 @@
$conf['language'] = 'en';
$conf['debug_language'] = false;
//** Currency formatting
$conf['number_format_decimals'] = 2;
$conf['number_format_dec_point'] = ',';
$conf['number_format_thousands_sep'] = '';
//** Misc.
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/
interface/lib/lang/ar.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'ÛíÑ ãÓãæÍ ááÚÖæ ÈÇáÅÓÊÎÏÇã.';
$wb['302'] = 'ÇáæÍÏÉ ÛíÑ ÕÇáÍÉ.';
$wb['1001'] = 'áÇ íãßä áÇÓã ÇáãÓÊÎÏã ÃæßáãÉ ÇáãÑæÑ Çä íßæäÇ ÝÇÑÛÊíä!';
interface/lib/lang/bg.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Този модул не е разрешен за текущия потреител.';
$wb['302'] = 'Невалиден модул.';
$wb['1001'] = 'Потребителското име и паролата не могат да бъдат празни!';
interface/lib/lang/br.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'd/m/Y H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Módulo não permitido para o usuário corrente.';
$wb['302'] = 'Módulo Inválido';
$wb['1001'] = 'Nome de usuário ou senha em branco!';
interface/lib/lang/cz.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-d-m H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modul není povolen pro současného uživatele.';
$wb['302'] = 'Neplatný modul.';
$wb['1001'] = 'Uživatelské jméno a heslo nemohou být prázdné !';
interface/lib/lang/de.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'd.m.Y H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = ',';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modul für Benutzer nicht erlaubt.';
$wb['302'] = 'Modul ungültig.';
$wb['1001'] = 'Der Benutzername und das Passwort dürfen nicht leer sein!';
interface/lib/lang/en.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = "H:i";
$wb['conf_format_timelong'] = "H:i:s";
$wb['conf_format_datetime'] = "Y-m-d H:i";
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = "Module not permitted for the current user.";
$wb['302'] = "Module invalid.";
$wb['1001'] = "The username and password cannot be empty !";
interface/lib/lang/es.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modulo no permitido para el usuario actual.';
$wb['302'] = 'Modulo inválido.';
$wb['1001'] = '¡El usuario y contraseña no pueden estar vacíos!';
interface/lib/lang/fi.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Tämä moduuli ei ole sallittu nykyiselle käyttäjälle.';
$wb['302'] = 'Viallinen moduuli.';
$wb['1001'] = 'Käyttäjätunnus ja/tai salasana eivät voi olla tyhjiä!';
interface/lib/lang/fr.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'd-m-Y H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Module interdit pour lutilisateur courant.';
$wb['302'] = 'Module invalide.';
$wb['1001'] = 'Le nomp dutilisateur et/ou le nom de passe ne doivent pas être vides!';
interface/lib/lang/hu.lng
@@ -12,6 +12,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y.m.d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['page_txt'] = 'Oldal';
$wb['page_of_txt'] = 'Összesen';
$wb['page_next_txt'] = 'Tovább';
interface/lib/lang/id.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'd-m-Y H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modul tidak diperbolehkan diakses oleh pengguna saat ini.';
$wb['302'] = 'Modul tidak valid.';
$wb['1001'] = 'Nama pengguna dan kata sandi tidak boleh kosong !';
interface/lib/lang/it.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modulo non permesso per l`utente corrente.';
$wb['302'] = 'Modulo non valido.';
$wb['1001'] = 'Nome utente e password non possono essere vuoti!';
interface/lib/lang/ja.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y/m/d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'ログイン中のアカウントでは利用できないモジュールです。';
$wb['302'] = 'モジュールが不正です。';
$wb['1001'] = 'ユーザー名とパスワードを入力してください。';
interface/lib/lang/nl.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Module niet toegestaan voor de huidige gebruiker.';
$wb['302'] = 'Ongeldige module.';
$wb['1001'] = 'De gebruikersnaam en wachtwoord kunnen niet leeg zijn!';
interface/lib/lang/pl.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = "H:i";
$wb['conf_format_timelong'] = "H:i:s";
$wb['conf_format_datetime'] = "Y-m-d H:i";
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = "Moduł nie jest dostępny dla aktualnego uzytkownika.";
$wb['302'] = "Moduł jest niepoprawny.";
$wb['1001'] = "Nazwa użytkownika i hasło nie może być puste !";
interface/lib/lang/pt.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'd/m/Y H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Módulo não permitido para o utilizador corrente.';
$wb['302'] = 'Módulo Inválido';
$wb['1001'] = 'O nome de utilizador e a senha não podem estar em branco!';
interface/lib/lang/ro.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'userului NU i se permite acest modul ';
$wb['302'] = 'Modul invalid.';
$wb['1001'] = 'rubricile  username si  password nu pot fi goale  !';
interface/lib/lang/ru.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Модуль недоступен для данной учетной записи.';
$wb['302'] = 'Модуль неправилен.';
$wb['1001'] = 'Имя или пароль не должны быть пустыми!';
interface/lib/lang/se.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modulen är ej tillåten för nuvarande användare.';
$wb['302'] = 'Modulen är ogiltig.';
$wb['1001'] = 'Användarnamn och lösenord får ej vara tomma!';
interface/lib/lang/sk.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modul nie je povolený pre existujúceho použivatela.';
$wb['302'] = 'Module neplatný.';
$wb['1001'] = 'Užvatelské meno a heslo nesmie byt prázdne !';
interface/lib/lang/tr.lng
@@ -4,6 +4,9 @@
$wb['conf_format_timeshort'] = 'H:i';
$wb['conf_format_timelong'] = 'H:i:s';
$wb['conf_format_datetime'] = 'Y-m-d H:i';
$wb['number_format_decimals'] = 2;
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['301'] = 'Modül, bu kullanıcı için izin vermiyor.';
$wb['302'] = 'Geçersiz Modül.';
$wb['1001'] = 'Kullanıcı adı ve şifre boş geçilemez !';