Kaynağa Gözat

Internationalize button titles (#34549).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20743 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA 3 yıl önce
ebeveyn
işleme
af4c608251
1 değiştirilmiş dosya ile 8 ekleme ve 2 silme
  1. 8
    2
      public/javascripts/jstoolbar/jstoolbar.js

+ 8
- 2
public/javascripts/jstoolbar/jstoolbar.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet