www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 355b1fbc577b991ed7b966d075e5570f5f959236
parent 8bdac7015be46ae834565949738b76ca01340740
Author: gracile-fr <gracile@gmx.com>
Date:   Thu, 15 Aug 2013 22:45:04 +0200

Localize Ctrl/Cmd-Shift in Prefs

Diffstat:
Mchrome/content/zotero/preferences/preferences_export.js | 2+-
Mchrome/content/zotero/preferences/preferences_keys.js | 2+-
Mchrome/locale/en-US/zotero/zotero.properties | 2++
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js @@ -225,7 +225,7 @@ Zotero_Preferences.Export = { updateQuickCopyInstructions: function () { - var prefix = Zotero.isMac ? 'Cmd+Shift+' : 'Ctrl+Alt+'; + var prefix = Zotero.isMac ? (Zotero.getString('general.keys.cmdShift')) : (Zotero.getString('general.keys.ctrlShift')); var key = Zotero.Prefs.get('keys.copySelectedItemsToClipboard'); var str = Zotero.getString('zotero.preferences.export.quickCopy.instructions', prefix + key); diff --git a/chrome/content/zotero/preferences/preferences_keys.js b/chrome/content/zotero/preferences/preferences_keys.js @@ -30,7 +30,7 @@ Zotero_Preferences.Keys = { var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row'); for (var i=0; i<rows.length; i++) { // Display the appropriate modifier keys for the platform - rows[i].firstChild.nextSibling.value = Zotero.isMac ? 'Cmd+Shift+' : 'Ctrl+Shift+'; + rows[i].firstChild.nextSibling.value = Zotero.isMac ? (Zotero.getString('general.keys.cmdShift')) : (Zotero.getString('general.keys.ctrlShift')); } } }; diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties @@ -48,6 +48,8 @@ general.useDefault = Use Default general.openDocumentation = Open Documentation general.numMore = %S more… general.openPreferences = Open Preferences +general.keys.ctrlShift = Ctrl+Shift +general.keys.cmdShift = Cmd+Shift general.operationInProgress = A Zotero operation is currently in progress. general.operationInProgress.waitUntilFinished = Please wait until it has finished.