diff options
author | scambra <sergio@entrecables.com> | 2012-09-21 11:48:57 +0200 |
---|---|---|
committer | scambra <sergio@entrecables.com> | 2012-09-21 11:48:57 +0200 |
commit | 0f15bc881fcf3575e61c527552d78e7c86170e8d (patch) | |
tree | 075ee50c3fbf5ed60cd24d4888b3eb5251bf0d97 /core | |
parent | 22c6b48d2f07109c784b85791da093cba36da65b (diff) | |
download | nextcloud-server-0f15bc881fcf3575e61c527552d78e7c86170e8d.tar.gz nextcloud-server-0f15bc881fcf3575e61c527552d78e7c86170e8d.zip |
fix translating dialog buttons, they are translated in core not dialogs app
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 4dd3c89c14d..53a7a8752c9 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -120,7 +120,7 @@ var OCdialogs = { }).data('multiselect', multiselect).data('mimetype',mimetype_filter); // build buttons var b = [{ - text: t('dialogs', 'Choose'), + text: t('core', 'Choose'), click: function(){ if (callback != undefined) { var p; @@ -140,7 +140,7 @@ var OCdialogs = { } }, { - text: t('dialogs', 'Cancel'), + text: t('core', 'Cancel'), click: function(){$(c_id).dialog('close'); }} ]; $(c_id).dialog({width: ((4*$('body').width())/9), height: 400, modal: modal, buttons: b}); @@ -156,11 +156,11 @@ var OCdialogs = { var b = []; switch (buttons) { case OCdialogs.YES_NO_BUTTONS: - b[1] = {text: t('dialogs', 'No'), click: function(){ if (callback != undefined) callback(false); $(c_id).dialog('close'); }}; - b[0] = {text: t('dialogs', 'Yes'), click: function(){ if (callback != undefined) callback(true); $(c_id).dialog('close');}}; + b[1] = {text: t('core', 'No'), click: function(){ if (callback != undefined) callback(false); $(c_id).dialog('close'); }}; + b[0] = {text: t('core', 'Yes'), click: function(){ if (callback != undefined) callback(true); $(c_id).dialog('close');}}; break; case OCdialogs.OK_CANCEL_BUTTONS: - b[1] = {text: t('dialogs', 'Cancel'), click: function(){$(c_id).dialog('close'); }}; + b[1] = {text: t('core', 'Cancel'), click: function(){$(c_id).dialog('close'); }}; case OCdialogs.OK_BUTTON: // fallthrough var f; switch(dialog_type) { @@ -174,7 +174,7 @@ var OCdialogs = { f = function(){OCdialogs.form_ok_handler(callback, c_id)}; break; } - b[0] = {text: t('dialogs', 'Ok'), click: f}; + b[0] = {text: t('core', 'Ok'), click: f}; break; } var possible_height = ($('tr', d).size()+1)*30; |