We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb15a9e commit af4c608Copy full SHA for af4c608
public/javascripts/jstoolbar/jstoolbar.js
@@ -250,10 +250,16 @@ jsToolBar.prototype = {
250
return b;
251
},
252
buttonTitleWithShortcut: function(title, shortcutKey) {
253
+ if(typeof jsToolBar.strings == 'undefined') {
254
+ var i18nTitle = title || null;
255
+ } else {
256
+ var i18nTitle = jsToolBar.strings[title] || title || null;
257
+ }
258
+
259
if (isMac) {
- return title + " (⌘" + shortcutKey.toUpperCase() + ")";
260
+ return i18nTitle + " (⌘" + shortcutKey.toUpperCase() + ")";
261
} else {
- return title + " (Ctrl+" + shortcutKey.toUpperCase() + ")";
262
+ return i18nTitle + " (Ctrl+" + shortcutKey.toUpperCase() + ")";
263
}
264
265
space: function(toolName) {
0 commit comments