Localize Ctrl/Cmd-Shift in Prefs

This commit is contained in:
gracile-fr 2013-08-15 22:45:04 +02:00
parent 8bdac7015b
commit 355b1fbc57
3 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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'));
}
}
};

View file

@ -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.