N°1041 add shortcut in submit button title

SVN:trunk[5567]
This commit is contained in:
Pierre Goiffon
2018-03-29 09:17:12 +00:00
parent c66884be0a
commit 6b8d1b4b76
6 changed files with 18 additions and 12 deletions

View File

@@ -180,7 +180,7 @@ try
$oP->add("<form method=\"POST\">");
$oP->add("<input id=\"operation\" type=\"hidden\" name=\"operation\" value=\"save\">");
$oP->add("<input type=\"hidden\" name=\"transaction_id\" value=\"".utils::GetNewTransactionId()."\">");
$oP->add("<input id=\"submit_button\" type=\"submit\" value=\"".Dict::S('config-apply')."\"><button id=\"cancel_button\" disabled=\"disabled\" onclick=\"return ResetConfig();\">".Dict::S('config-cancel')."</button>");
$oP->add("<input id=\"submit_button\" type=\"submit\" value=\"".Dict::S('config-apply')."\" title=\"".Dict::S('config-apply-title')."\"><button id=\"cancel_button\" disabled=\"disabled\" onclick=\"return ResetConfig();\">".Dict::S('config-cancel')."</button>");
$oP->add("<input type=\"hidden\" id=\"prev_config\" name=\"prev_config\" value=\"$sOriginalConfigEscaped\">");
$oP->add("<input type=\"hidden\" name=\"new_config\" value=\"$sConfigEscaped\">");
$oP->add("<div id =\"new_config\" style=\"position: absolute; top: ".$iEditorTopMargin."em; bottom: 0; left: 5px; right: 5px;\"></div>");

View File

@@ -9,15 +9,17 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
Dict::Add('CS CZ', 'Czech', 'Čeština', array(
'Menu:ConfigEditor' => 'Konfigurace',
'config-edit-title' => 'Editor konfiguračního souboru',
'config-edit-intro' => 'Při úpravách konfiguračního souboru buďte velice opatrní. Nesprávné nastavení může vést k nedostupnosti iTop', //In particular, only the upper items (i.e. the global configuration and modules settings) should be edited.
'config-apply' => 'Použít',
'config-cancel' => 'Zrušit',
'config-saved' => 'Successfully recorded.~~',
'config-confirm-cancel' => 'Vaše úpravy nebudou uloženy.',
'config-no-change' => 'Soubor nebyl změněn.',
'config-reverted' => 'The configuration has been reverted.~~',
'config-parse-error' => 'Řádek %2$d: %1$s.<br/>Soubor nebyl uložen.',
'config-current-line' => 'Řádek: %1$s',
'Menu:ConfigEditor' => 'Konfigurace',
'config-edit-title' => 'Editor konfiguračního souboru',
'config-edit-intro' => 'Při úpravách konfiguračního souboru buďte velice opatrní. Nesprávné nastavení může vést k nedostupnosti iTop',
//In particular, only the upper items (i.e. the global configuration and modules settings) should be edited.
'config-apply' => 'Použít',
'config-apply-title' => 'Použít (Ctrl+S)',
'config-cancel' => 'Zrušit',
'config-saved' => 'Successfully recorded.~~',
'config-confirm-cancel' => 'Vaše úpravy nebudou uloženy.',
'config-no-change' => 'Soubor nebyl změněn.',
'config-reverted' => 'The configuration has been reverted.~~',
'config-parse-error' => 'Řádek %2$d: %1$s.<br/>Soubor nebyl uložen.',
'config-current-line' => 'Řádek: %1$s',
));

View File

@@ -29,6 +29,7 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(
'config-edit-title' => 'Konfigurations-Editor',
'config-edit-intro' => 'Seien sie bei der Bearbeitung der Konfigurationsdatei sehr vorsichtig.',
'config-apply' => 'Anwenden',
'config-apply' => 'Anwenden (Ctrl+S)',
'config-cancel' => 'Zurücksetzen',
'config-saved' => 'Successfully recorded.~~',
'config-confirm-cancel' => 'Ihre Änderungen werden nicht gespeichert.',

View File

@@ -12,6 +12,7 @@ Dict::Add('EN US', 'English', 'English', array(
'config-edit-title' => 'Configuration File Editor',
'config-edit-intro' => 'Be very cautious when editing the configuration file.',
'config-apply' => 'Apply',
'config-apply-title' => 'Apply (Ctrl+S)',
'config-cancel' => 'Reset',
'config-saved' => 'Successfully recorded.',
'config-confirm-cancel' => 'Your changes will be lost.',

View File

@@ -20,6 +20,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
'config-parse-error' => 'Ligne %2$d: %1$s.<br/>Le fichier n\'a PAS été modifié.',
'config-current-line' => 'Ligne en édition : %1$s',
'config-apply' => 'Enregistrer',
'config-apply-title' => 'Enregistrer (Ctrl+S)',
'config-cancel' => 'Annuler (restaurer)',
));
?>

View File

@@ -16,6 +16,7 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
'config-edit-title' => 'Редактор файла конфигурации',
'config-edit-intro' => 'Будьте очень осторожны при редактировании файла конфигурации. В частности, могут быть отредактированы только верхние элементы (т.е. глобальная конфигурация и настройки модулей).',
'config-apply' => 'Применить',
'config-apply-title' => 'Применить (Ctrl+S)',
'config-cancel' => 'Сбросить',
'config-saved' => 'Successfully recorded.~~',
'config-confirm-cancel' => 'Ваши изменения будут утеряны.',