From 6c56262c2b08af46533fa04ccb36f2852ab5ff2e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 10 Jun 2013 16:19:48 +0000 Subject: [PATCH] 2013-06-10 Miguel de Dios * include/javascript/jquery.ui-timepicker-addon.js: updated the datepicker for to avoid some found bugs. * include/javascript/i18n: added translations for the datepicker. * godmode/alerts/configure_alert_template.php, godmode/reporting/reporting_builder.item_editor.php, godmode/agentes/planned_downtime.editor.php, include/ajax/module.php, include/functions_ui.php, operation/tree.php, operation/agentes/status_monitor.php, operation/agentes/datos_agente.php, operation/reporting/reporting_viewer.php, operation/reporting/graph_viewer.php, extensions/insert_data.php: changed the code for to use the user/system language in the datepicker. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 18 + pandora_console/extensions/insert_data.php | 3 + .../agentes/planned_downtime.editor.php | 5 +- .../alerts/configure_alert_template.php | 2 + .../reporting_builder.item_editor.php | 3 + pandora_console/include/ajax/module.php | 5 +- pandora_console/include/functions_ui.php | 4 +- .../include/javascript/i18n/jquery-ui-i18n.js | 1793 ++++++++ .../i18n/jquery-ui-timepicker-af.js | 21 + .../i18n/jquery-ui-timepicker-bg.js | 21 + .../i18n/jquery-ui-timepicker-ca.js | 21 + .../i18n/jquery-ui-timepicker-cs.js | 21 + .../i18n/jquery-ui-timepicker-da.js | 21 + .../i18n/jquery-ui-timepicker-de.js | 21 + .../i18n/jquery-ui-timepicker-el.js | 21 + .../i18n/jquery-ui-timepicker-es.js | 21 + .../i18n/jquery-ui-timepicker-et.js | 21 + .../i18n/jquery-ui-timepicker-eu.js | 21 + .../i18n/jquery-ui-timepicker-fi.js | 21 + .../i18n/jquery-ui-timepicker-fr.js | 21 + .../i18n/jquery-ui-timepicker-gl.js | 21 + .../i18n/jquery-ui-timepicker-he.js | 21 + .../i18n/jquery-ui-timepicker-hr.js | 21 + .../i18n/jquery-ui-timepicker-hu.js | 21 + .../i18n/jquery-ui-timepicker-id.js | 21 + .../i18n/jquery-ui-timepicker-it.js | 21 + .../i18n/jquery-ui-timepicker-ja.js | 21 + .../i18n/jquery-ui-timepicker-ko.js | 21 + .../i18n/jquery-ui-timepicker-lt.js | 21 + .../i18n/jquery-ui-timepicker-nl.js | 21 + .../i18n/jquery-ui-timepicker-no.js | 21 + .../i18n/jquery-ui-timepicker-pl.js | 21 + .../i18n/jquery-ui-timepicker-pt-BR.js | 21 + .../i18n/jquery-ui-timepicker-pt.js | 21 + .../i18n/jquery-ui-timepicker-ro.js | 21 + .../i18n/jquery-ui-timepicker-ru.js | 21 + .../i18n/jquery-ui-timepicker-sk.js | 21 + .../i18n/jquery-ui-timepicker-sv.js | 21 + .../i18n/jquery-ui-timepicker-th.js | 18 + .../i18n/jquery-ui-timepicker-tr.js | 21 + .../i18n/jquery-ui-timepicker-uk.js | 21 + .../i18n/jquery-ui-timepicker-vi.js | 21 + .../i18n/jquery-ui-timepicker-zh-CN.js | 21 + .../i18n/jquery-ui-timepicker-zh-TW.js | 21 + .../i18n/jquery.ui.datepicker-af.js | 23 + .../i18n/jquery.ui.datepicker-ar-DZ.js | 23 + .../i18n/jquery.ui.datepicker-ar.js | 23 + .../i18n/jquery.ui.datepicker-az.js | 23 + .../i18n/jquery.ui.datepicker-be.js | 23 + .../i18n/jquery.ui.datepicker-bg.js | 24 + .../i18n/jquery.ui.datepicker-bs.js | 23 + .../i18n/jquery.ui.datepicker-ca.js | 23 + .../i18n/jquery.ui.datepicker-cs.js | 23 + .../i18n/jquery.ui.datepicker-cy-GB.js | 23 + .../i18n/jquery.ui.datepicker-da.js | 23 + .../i18n/jquery.ui.datepicker-de.js | 23 + .../i18n/jquery.ui.datepicker-el.js | 23 + .../i18n/jquery.ui.datepicker-en-AU.js | 23 + .../i18n/jquery.ui.datepicker-en-GB.js | 23 + .../i18n/jquery.ui.datepicker-en-NZ.js | 23 + .../i18n/jquery.ui.datepicker-eo.js | 23 + .../i18n/jquery.ui.datepicker-es.js | 23 + .../i18n/jquery.ui.datepicker-et.js | 23 + .../i18n/jquery.ui.datepicker-eu.js | 23 + .../i18n/jquery.ui.datepicker-fa.js | 59 + .../i18n/jquery.ui.datepicker-fi.js | 23 + .../i18n/jquery.ui.datepicker-fo.js | 23 + .../i18n/jquery.ui.datepicker-fr-CA.js | 23 + .../i18n/jquery.ui.datepicker-fr-CH.js | 23 + .../i18n/jquery.ui.datepicker-fr.js | 25 + .../i18n/jquery.ui.datepicker-gl.js | 23 + .../i18n/jquery.ui.datepicker-he.js | 23 + .../i18n/jquery.ui.datepicker-hi.js | 23 + .../i18n/jquery.ui.datepicker-hr.js | 23 + .../i18n/jquery.ui.datepicker-hu.js | 23 + .../i18n/jquery.ui.datepicker-hy.js | 23 + .../i18n/jquery.ui.datepicker-id.js | 23 + .../i18n/jquery.ui.datepicker-is.js | 23 + .../i18n/jquery.ui.datepicker-it.js | 23 + .../i18n/jquery.ui.datepicker-ja.js | 23 + .../i18n/jquery.ui.datepicker-ka.js | 21 + .../i18n/jquery.ui.datepicker-kk.js | 23 + .../i18n/jquery.ui.datepicker-km.js | 23 + .../i18n/jquery.ui.datepicker-ko.js | 23 + .../i18n/jquery.ui.datepicker-ky.js | 24 + .../i18n/jquery.ui.datepicker-lb.js | 23 + .../i18n/jquery.ui.datepicker-lt.js | 23 + .../i18n/jquery.ui.datepicker-lv.js | 23 + .../i18n/jquery.ui.datepicker-mk.js | 23 + .../i18n/jquery.ui.datepicker-ml.js | 23 + .../i18n/jquery.ui.datepicker-ms.js | 23 + .../i18n/jquery.ui.datepicker-nb.js | 22 + .../i18n/jquery.ui.datepicker-nl-BE.js | 23 + .../i18n/jquery.ui.datepicker-nl.js | 23 + .../i18n/jquery.ui.datepicker-nn.js | 22 + .../i18n/jquery.ui.datepicker-no.js | 23 + .../i18n/jquery.ui.datepicker-pl.js | 23 + .../i18n/jquery.ui.datepicker-pt-BR.js | 23 + .../i18n/jquery.ui.datepicker-pt.js | 22 + .../i18n/jquery.ui.datepicker-rm.js | 21 + .../i18n/jquery.ui.datepicker-ro.js | 26 + .../i18n/jquery.ui.datepicker-ru.js | 23 + .../i18n/jquery.ui.datepicker-sk.js | 23 + .../i18n/jquery.ui.datepicker-sl.js | 24 + .../i18n/jquery.ui.datepicker-sq.js | 23 + .../i18n/jquery.ui.datepicker-sr-SR.js | 23 + .../i18n/jquery.ui.datepicker-sr.js | 23 + .../i18n/jquery.ui.datepicker-sv.js | 23 + .../i18n/jquery.ui.datepicker-ta.js | 23 + .../i18n/jquery.ui.datepicker-th.js | 23 + .../i18n/jquery.ui.datepicker-tj.js | 23 + .../i18n/jquery.ui.datepicker-tr.js | 23 + .../i18n/jquery.ui.datepicker-uk.js | 24 + .../i18n/jquery.ui.datepicker-vi.js | 23 + .../i18n/jquery.ui.datepicker-zh-CN.js | 23 + .../i18n/jquery.ui.datepicker-zh-HK.js | 23 + .../i18n/jquery.ui.datepicker-zh-TW.js | 23 + .../javascript/jquery.ui-timepicker-addon.js | 3867 +++++++++-------- .../operation/agentes/datos_agente.php | 8 +- .../operation/agentes/status_monitor.php | 1 + .../operation/reporting/graph_viewer.php | 4 + .../operation/reporting/reporting_viewer.php | 32 +- pandora_console/operation/tree.php | 8 +- 123 files changed, 6439 insertions(+), 1784 deletions(-) create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-i18n.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-af.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-bg.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-ca.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-cs.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-da.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-de.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-el.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-es.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-et.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-eu.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-fi.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-fr.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-gl.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-he.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-hr.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-hu.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-id.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-it.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-ja.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-ko.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-lt.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-nl.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-no.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-pl.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-pt-BR.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-pt.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-ro.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-ru.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-sk.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-sv.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-th.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-tr.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-uk.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-vi.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-zh-CN.js create mode 100755 pandora_console/include/javascript/i18n/jquery-ui-timepicker-zh-TW.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-af.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ar-DZ.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ar.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-az.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-be.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-bg.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-bs.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ca.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-cs.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-cy-GB.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-da.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-de.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-el.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-en-AU.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-en-GB.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-en-NZ.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-eo.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-es.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-et.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-eu.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fa.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fi.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fo.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fr-CA.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fr-CH.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-fr.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-gl.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-he.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-hi.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-hr.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-hu.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-hy.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-id.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-is.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-it.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ja.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ka.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-kk.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-km.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ko.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ky.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-lb.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-lt.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-lv.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-mk.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ml.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ms.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-nb.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-nl-BE.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-nl.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-nn.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-no.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-pl.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-pt-BR.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-pt.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-rm.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ro.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ru.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sk.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sl.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sq.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sr-SR.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sr.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-sv.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-ta.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-th.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-tj.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-tr.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-uk.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-vi.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-zh-CN.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-zh-HK.js create mode 100755 pandora_console/include/javascript/i18n/jquery.ui.datepicker-zh-TW.js diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3d3f070f89..153a5b3a00 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,21 @@ +2013-06-10 Miguel de Dios + + * include/javascript/jquery.ui-timepicker-addon.js: updated the + datepicker for to avoid some found bugs. + + * include/javascript/i18n: added translations for the datepicker. + + * godmode/alerts/configure_alert_template.php, + godmode/reporting/reporting_builder.item_editor.php, + godmode/agentes/planned_downtime.editor.php, + include/ajax/module.php, include/functions_ui.php, + operation/tree.php, operation/agentes/status_monitor.php, + operation/agentes/datos_agente.php, + operation/reporting/reporting_viewer.php, + operation/reporting/graph_viewer.php, extensions/insert_data.php: + changed the code for to use the user/system language in the + datepicker. + 2013-06-10 Sergio Martin * include/styles/jquery-ui-1.10.0.custom.css diff --git a/pandora_console/extensions/insert_data.php b/pandora_console/extensions/insert_data.php index 8cb04468b1..d1d4c3c671 100644 --- a/pandora_console/extensions/insert_data.php +++ b/pandora_console/extensions/insert_data.php @@ -185,6 +185,8 @@ function mainInsertData() { ui_require_css_file ('datepicker'); ui_require_jquery_file ("ui-timepicker-addon"); + ui_require_javascript_file("i18n/jquery-ui-timepicker-" . get_user_language()); + ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); ?> diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 0182a53f6a..76492fc4bd 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -15,6 +15,7 @@ // GNU General Public License for more details. + // Load global vars global $config; diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index b27e2e7d6d..3297b9afd3 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -193,6 +193,8 @@ if ($view_graph) { work if the date is not correct because php is returning. */ ui_require_jquery_file ("ui-timepicker-addon"); + ui_require_javascript_file("i18n/jquery-ui-timepicker-" . get_user_language()); + ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); ?> diff --git a/pandora_console/operation/reporting/reporting_viewer.php b/pandora_console/operation/reporting/reporting_viewer.php index 10517dc9df..39964f3449 100644 --- a/pandora_console/operation/reporting/reporting_viewer.php +++ b/pandora_console/operation/reporting/reporting_viewer.php @@ -183,6 +183,8 @@ echo ''; */ ui_require_jquery_file ("ui-timepicker-addon"); +ui_require_javascript_file("i18n/jquery-ui-timepicker-" . get_user_language()); +ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); ?>