Prechádzať zdrojové kódy

#696: the message "Please fill all mandatory fields" is now localized (done in English, French and German)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2671 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 rokov pred
rodič
commit
b00fd94880

+ 1 - 0
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 = '';

+ 1 - 0
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',
 ));
 ?>

+ 1 - 0
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.'
 ));
 ?>

+ 1 - 0
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.'
 ));
 ?>

+ 1 - 1
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', '');