diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php index 2e2fdfaec3b1080f5dca04faae414eca3f100c2c..b0e1f3b0211a12100cc17e215d61946e77584172 100644 --- a/interface/lib/classes/functions.inc.php +++ b/interface/lib/classes/functions.inc.php @@ -117,9 +117,11 @@ class functions { return $out; } - public function currency_format($number) { + public function currency_format($number, $view = '') { global $app; - $number_format_decimals = (int)$app->lng('number_format_decimals'); + if($view != '') $number_format_decimals = (int)$app->lng('number_format_decimals_'.$view); + if(!$number_format_decimals) $number_format_decimals = (int)$app->lng('number_format_decimals'); + $number_format_dec_point = $app->lng('number_format_dec_point'); $number_format_thousands_sep = $app->lng('number_format_thousands_sep'); if($number_format_thousands_sep == 'number_format_thousands_sep') $number_format_thousands_sep = ''; diff --git a/interface/lib/lang/ar.lng b/interface/lib/lang/ar.lng index 4d7a5c813d7e4dde680568aa05e7036752094632..15a9e1d92ec3da7fdfed4a9fdefaef75072ac3d0 100644 --- a/interface/lib/lang/ar.lng +++ b/interface/lib/lang/ar.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'ÛíÑ ãÓãæÍ ááÚÖæ ÈÇáÅÓÊÎÏÇã.'; diff --git a/interface/lib/lang/bg.lng b/interface/lib/lang/bg.lng index 29b2514245d7bed6fe34a4c3ed83159034f8731f..46d9d0a7b0615430447bf9ffc3c9e4ac55e311d9 100644 --- a/interface/lib/lang/bg.lng +++ b/interface/lib/lang/bg.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Този модул не е разрешен за текущия потреител.'; diff --git a/interface/lib/lang/br.lng b/interface/lib/lang/br.lng index db9e64e7a6c41243425c12859284b9f8a6b702bb..d0b2e125657cde2785a30271c3f4d066597fdf47 100644 --- a/interface/lib/lang/br.lng +++ b/interface/lib/lang/br.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS de F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Módulo não permitido para o usuário corrente.'; diff --git a/interface/lib/lang/cz.lng b/interface/lib/lang/cz.lng index c84e9e62728b0873927f0d0a2d9c382d03fad36f..ecbb7b979ba796af051e794f36ab8e65a3b32ddb 100644 --- a/interface/lib/lang/cz.lng +++ b/interface/lib/lang/cz.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modul není povolen pro současného uživatele.'; diff --git a/interface/lib/lang/de.lng b/interface/lib/lang/de.lng index 050fbb25f54f5c2b90ef209aa9defd96c9392c50..fcc87a9be08b9a6e674a5e541fbeb8c52b15bf89 100644 --- a/interface/lib/lang/de.lng +++ b/interface/lib/lang/de.lng @@ -5,7 +5,8 @@ $wb['conf_format_datelong'] = 'l, d. F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modul für Benutzer nicht erlaubt.'; diff --git a/interface/lib/lang/el.lng b/interface/lib/lang/el.lng index 45b0de82e2fd430236c6c4dd5a618f6d85d7f240..58cfc741488374b4d324c2ba50fe72d7b9848405 100644 --- a/interface/lib/lang/el.lng +++ b/interface/lib/lang/el.lng @@ -35,7 +35,8 @@ $wb['top_menu_domain'] = 'Domains'; $wb['top_menu_dashboard'] = 'Αρχική'; $wb['toolsarea_head_txt'] = 'Εργαλεία'; $wb['latest_news_txt'] = 'Τελευταία Νέα'; -$wb['number_format_decimals'] = '2'; +$wb['number_format_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['top_menu_vm'] = 'VServer'; diff --git a/interface/lib/lang/en.lng b/interface/lib/lang/en.lng index aad4f5cc0407ca18cffd8db8f130be82ae91a962..09b692b2344c3db43ec40fa71f8ee87fc9167fb4 100644 --- a/interface/lib/lang/en.lng +++ b/interface/lib/lang/en.lng @@ -5,7 +5,8 @@ $wb['conf_format_datelong'] = "l dS of F Y"; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = "Module not permitted for the current user."; diff --git a/interface/lib/lang/es.lng b/interface/lib/lang/es.lng index 9dc37bb595b6448836cb01cf9a5167f1cb80049d..1157891e1cbdd2d3b0b47761f2df7711f1b67de4 100644 --- a/interface/lib/lang/es.lng +++ b/interface/lib/lang/es.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modulo no permitido para el usuario actual.'; diff --git a/interface/lib/lang/fi.lng b/interface/lib/lang/fi.lng index 463d7c5f33ad41db7654ed52bba0f8b6a59eb9b0..d53fcf203378480126680fd41778e7c95fdc5b46 100755 --- a/interface/lib/lang/fi.lng +++ b/interface/lib/lang/fi.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Tämä moduuli ei ole sallittu nykyiselle käyttäjälle.'; diff --git a/interface/lib/lang/fr.lng b/interface/lib/lang/fr.lng index d2fc6cc1825cddc5aca33eb3af31fbc2b3eebfb3..64abfa23d8ebf46d3b57d9a50e7567cfb19dc8ed 100644 --- a/interface/lib/lang/fr.lng +++ b/interface/lib/lang/fr.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Vous navez pas accès à ce module'; diff --git a/interface/lib/lang/hr.lng b/interface/lib/lang/hr.lng index af5d900bcd215d6082c1c1a9df3d8753df312083..30441b6ac8b45346dc7eaa49532c9e950af6127a 100644 --- a/interface/lib/lang/hr.lng +++ b/interface/lib/lang/hr.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l d. F Y.'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = '.'; $wb['delete_confirmation'] = 'Da li želite obrisati ovaj DNS zapis?'; diff --git a/interface/lib/lang/hu.lng b/interface/lib/lang/hu.lng index e7010488d612d045382044f88ee67f6ca26897e1..ef082d5977f8984e22fd270e9a491b9c79986845 100644 --- a/interface/lib/lang/hu.lng +++ b/interface/lib/lang/hu.lng @@ -36,7 +36,8 @@ $wb['top_menu_domain'] = 'Domainek'; $wb['top_menu_dashboard'] = 'Főoldal'; $wb['latest_news_txt'] = 'Legfrissebb hírek'; $wb['top_menu_vm'] = 'VM'; -$wb['number_format_decimals'] = '2'; +$wb['number_format_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['daynamesmin_su'] = 'Su'; diff --git a/interface/lib/lang/id.lng b/interface/lib/lang/id.lng index df7f1a54f5360a235ede415a3109d96719a12930..d24845bd0a88bdf825b8be31d0762889ee26622f 100644 --- a/interface/lib/lang/id.lng +++ b/interface/lib/lang/id.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modul tidak diperbolehkan diakses oleh pengguna saat ini.'; diff --git a/interface/lib/lang/it.lng b/interface/lib/lang/it.lng index d86484cd95566513ebee00c5c45c91b9c86ca27d..4c293f13f751f3ccfa936887d841f5d02d562fe7 100644 --- a/interface/lib/lang/it.lng +++ b/interface/lib/lang/it.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = '.'; $wb['delete_confirmation'] = 'Sei sicuro di voler cancellare questo record?'; diff --git a/interface/lib/lang/ja.lng b/interface/lib/lang/ja.lng index 3da40198977b850e56fb8b7ac6dbf255f02e70dc..25a80be9b485ca9a523b3163cb36e6e0f11aba98 100644 --- a/interface/lib/lang/ja.lng +++ b/interface/lib/lang/ja.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'ログイン中のアカウントでは利用できないモジュールです。'; diff --git a/interface/lib/lang/nl.lng b/interface/lib/lang/nl.lng index 91b02b00d357f5438151c48ae2cd7c11e22393cb..0e5c8411e35b94a63a116054f3d350618e0c10e0 100644 --- a/interface/lib/lang/nl.lng +++ b/interface/lib/lang/nl.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l, d. F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Module niet toegestaan voor de huidige gebruiker.'; diff --git a/interface/lib/lang/pl.lng b/interface/lib/lang/pl.lng index 8316ec16db6bf6d77d75be866e6522c1a08dc519..6a8619225767b889958d53acc7bad8eeb6bb601e 100644 --- a/interface/lib/lang/pl.lng +++ b/interface/lib/lang/pl.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Moduł nie jest dostępny dla aktualnego uzytkownika.'; diff --git a/interface/lib/lang/pt.lng b/interface/lib/lang/pt.lng index 3274dc1379e2bc0f3d3c693555b9b0c6acf00cd1..cc48b4221c83a2a6b338a454379a3b28e70796ba 100644 --- a/interface/lib/lang/pt.lng +++ b/interface/lib/lang/pt.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS de F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Módulo não permitido para o utilizador corrente.'; diff --git a/interface/lib/lang/ro.lng b/interface/lib/lang/ro.lng index 4bed07bc04f752736ba54936859586c5ee880407..39fc3b099f2b1a02bb988382f9750d5072040eaf 100644 --- a/interface/lib/lang/ro.lng +++ b/interface/lib/lang/ro.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'userului NU i se permite acest modul '; diff --git a/interface/lib/lang/ru.lng b/interface/lib/lang/ru.lng index 2b2a3129affd67fa6181d984cd97153e5c5e7860..a8012c621ec784df4c4dc2fee7f8d8f3bfd19998 100644 --- a/interface/lib/lang/ru.lng +++ b/interface/lib/lang/ru.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = ','; $wb['number_format_thousands_sep'] = ''; $wb['delete_confirmation'] = 'Вы действительно хотите удалить эту запись?'; diff --git a/interface/lib/lang/se.lng b/interface/lib/lang/se.lng index 63842b12c673c50d4d99a7f9153c2d6bebeef107..07a52e44acefe5eecffba232ba90f5d9d4b2e324 100644 --- a/interface/lib/lang/se.lng +++ b/interface/lib/lang/se.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modulen är ej tillåten för nuvarande användare.'; diff --git a/interface/lib/lang/sk.lng b/interface/lib/lang/sk.lng index bad4a2b3a2f56a859c07f4ed99418711bca5d56e..ab7670f9d8ac01012386e80dd75f5317aa4eee0a 100644 --- a/interface/lib/lang/sk.lng +++ b/interface/lib/lang/sk.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modul nie je povolený pre existujúceho použivatela.'; diff --git a/interface/lib/lang/tr.lng b/interface/lib/lang/tr.lng index d749b54ba42ca89a7911b639631b4f14705bf8a6..8fc68442c28b7cca694aac8904a384508c617a80 100644 --- a/interface/lib/lang/tr.lng +++ b/interface/lib/lang/tr.lng @@ -4,7 +4,8 @@ $wb['conf_format_datelong'] = 'l dS of F Y'; $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_decimals'] = '4'; +$wb['number_format_decimals_client'] = '2'; $wb['number_format_dec_point'] = '.'; $wb['number_format_thousands_sep'] = ''; $wb['error_301'] = 'Modül, bu kullanıcı için izin vermiyor.';