From b8fffb6f4d1953f2b4cd359274b9a399228ee3eb Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sat, 14 Apr 2012 02:30:59 +0000 Subject: [PATCH] 2012-04-14 Junichi Satoh * operation/agentes/stat_win.php: Fixed i18n support. Changed the description for reloading and the name of the submit button. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/stat_win.php | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8899bc4979..2c03201604 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-04-14 Junichi Satoh + + * operation/agentes/stat_win.php: Fixed i18n support. Changed + the description for reloading and the name of the submit button. + 2012-04-13 Sergio Martin * include/functions_visual_map.php diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 98ffc2cc89..0eb05beb3d 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -30,6 +30,12 @@ require_once ($config['homedir'] . '/include/functions_modules.php'); check_login (); +$user_language = get_user_language ($config['id_user']); +if (file_exists ('../../include/languages/'.$user_language.'.mo')) { + $l10n = new gettext_reader (new CachedFileReader ('../../include/languages/'.$user_language.'.mo')); + $l10n->load_tables(); +} + echo ''; $id = get_parameter('id'); @@ -202,7 +208,7 @@ switch ($graph_type) { echo ""; //z-index is 1 because 2 made the calendar show under the divmenu. -echo '