From 51d9c303154966729d241cb19de3b9cec94fdd04 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 2 Apr 2013 13:51:05 +0000 Subject: [PATCH] #696: the message "Please fill all mandatory fields" is now localized (done in English, French and German) SVN:trunk[2671] --- application/itopwebpage.class.inc.php | 1 + dictionaries/de.dictionary.itop.ui.php | 1 + dictionaries/dictionary.itop.ui.php | 1 + dictionaries/fr.dictionary.itop.ui.php | 1 + js/forms-json-utils.js | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 5bd7c12f0..09090a7b9 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -82,6 +82,7 @@ class iTopWebPage extends NiceWebPage $sSearchAny = addslashes(Dict::S('UI:SearchValue:Any')); $sSearchNbSelected = addslashes(Dict::S('UI:SearchValue:NbSelected')); + $this->add_dict_entry('UI:FillAllMandatoryFields'); $bForceMenuPane = utils::ReadParam('force_menu_pane', null); $sInitClosed = ''; diff --git a/dictionaries/de.dictionary.itop.ui.php b/dictionaries/de.dictionary.itop.ui.php index 9482d93f2..4d5bb3e7d 100644 --- a/dictionaries/de.dictionary.itop.ui.php +++ b/dictionaries/de.dictionary.itop.ui.php @@ -946,5 +946,6 @@ Wenn Aktionen mit Trigger verknüpft sind, bekommt jede Aktion eine Auftragsnumm 'DayOfWeek-Thursday' => 'Donnerstag', 'DayOfWeek-Friday' => 'Freitag', 'DayOfWeek-Saturday' => 'Samstag', + 'UI:FillAllMandatoryFields' => 'Bitte füllen Sie alle Pflichtfelder', )); ?> diff --git a/dictionaries/dictionary.itop.ui.php b/dictionaries/dictionary.itop.ui.php index c16abb6d4..013853149 100644 --- a/dictionaries/dictionary.itop.ui.php +++ b/dictionaries/dictionary.itop.ui.php @@ -1137,5 +1137,6 @@ When associated with a trigger, each action is given an "order" number, specifyi 'Class:ShortcutOQL+' => '', 'Class:ShortcutOQL/Attribute:oql' => 'Query', 'Class:ShortcutOQL/Attribute:oql+' => 'OQL defining the list of objects to search for', + 'UI:FillAllMandatoryFields' => 'Please fill all mandatory fields.' )); ?> diff --git a/dictionaries/fr.dictionary.itop.ui.php b/dictionaries/fr.dictionary.itop.ui.php index e3f8ef82e..0ac8a56d2 100644 --- a/dictionaries/fr.dictionary.itop.ui.php +++ b/dictionaries/fr.dictionary.itop.ui.php @@ -979,5 +979,6 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé 'Class:ShortcutOQL+' => '', 'Class:ShortcutOQL/Attribute:oql' => 'Requête', 'Class:ShortcutOQL/Attribute:oql+' => 'Requête de définition de l\'ensemble des objets', + 'UI:FillAllMandatoryFields' => 'Veuillez remplir tous les champs obligatoires.' )); ?> diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 22901c402..d037395ec 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -134,7 +134,7 @@ function CheckFields(sFormId, bDisplayAlert) { if (bDisplayAlert) { - alert('Please fill-in all mandatory fields before continuing.'); + alert(Dict.S('UI:FillAllMandatoryFields')); } $('#'+sFormId+' :submit').attr('disable', ''); $('#'+sFormId+' :button[type=submit]').attr('disable', '');