From 626cea75e122729a76efbbf98011d39d22f72fee Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 10 Mar 2011 14:07:44 +0100 Subject: new l18n files --- module/web/media/default/js/settings_ui.js | 7 ++++--- module/web/templates/default/admin.html | 3 ++- module/web/templates/default/settings.html | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'module/web') diff --git a/module/web/media/default/js/settings_ui.js b/module/web/media/default/js/settings_ui.js index 77b28c39c..338556675 100644 --- a/module/web/media/default/js/settings_ui.js +++ b/module/web/media/default/js/settings_ui.js @@ -1,3 +1,4 @@ +var success_msg,failed_msg; var account_dialog; function show_account_dialog() { @@ -82,13 +83,13 @@ var SettingsUI = new Class({ "method": "post", "url": "/json/save_config/" + category, "onSuccess" : function() { - notify.alert('Settings saved', { + notify.alert(success_msg, { 'className': 'success' }); }, "onFailure": function() { - notify.alert('Error occured', { + notify.alert(failed_msg, { 'className': 'error' }); } @@ -108,7 +109,7 @@ var SettingsUI = new Class({ window.location.reload() }, "onFailure": function() { - notify.alert('Error occured', { + notify.alert(failed_msg, { 'className': 'error' }); } diff --git a/module/web/templates/default/admin.html b/module/web/templates/default/admin.html index 5b6be26eb..5be649de7 100644 --- a/module/web/templates/default/admin.html +++ b/module/web/templates/default/admin.html @@ -5,7 +5,8 @@ {% block content %} -{{ _("Note: You can only change permissions for webinterface.") }} {{ _("To add user or change passwords use:") }} python pyLoadCore.py -u
+{{ _("Note: You can only change permissions for webinterface.") }} +{{ _("To add user or change passwords use:") }} python pyLoadCore.py -u
{{ _("Important: Admin user have always all permissions! Only Admin user can use other clients like CLI and GUI.") }}
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index 69ab39292..a62aab99f 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -9,6 +9,10 @@