|
|
@@ -250,10 +250,16 @@ jsToolBar.prototype = { |
|
|
|
return b; |
|
|
|
}, |
|
|
|
buttonTitleWithShortcut: function(title, shortcutKey) { |
|
|
|
if(typeof jsToolBar.strings == 'undefined') { |
|
|
|
var i18nTitle = title || null; |
|
|
|
} else { |
|
|
|
var i18nTitle = jsToolBar.strings[title] || title || null; |
|
|
|
} |
|
|
|
|
|
|
|
if (isMac) { |
|
|
|
return title + " (⌘" + shortcutKey.toUpperCase() + ")"; |
|
|
|
return i18nTitle + " (⌘" + shortcutKey.toUpperCase() + ")"; |
|
|
|
} else { |
|
|
|
return title + " (Ctrl+" + shortcutKey.toUpperCase() + ")"; |
|
|
|
return i18nTitle + " (Ctrl+" + shortcutKey.toUpperCase() + ")"; |
|
|
|
} |
|
|
|
}, |
|
|
|
space: function(toolName) { |