зеркало из https://github.com/mozilla/brackets.git
Localize key bindings in menus
This commit is contained in:
Родитель
1ef6ed97f9
Коммит
84171439d0
|
@ -33,7 +33,8 @@ define(function (require, exports, module) {
|
||||||
|
|
||||||
require("utils/Global");
|
require("utils/Global");
|
||||||
|
|
||||||
var CommandManager = require("command/CommandManager");
|
var CommandManager = require("command/CommandManager"),
|
||||||
|
Strings = require("strings");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maps normalized shortcut descriptor to key binding info.
|
* Maps normalized shortcut descriptor to key binding info.
|
||||||
|
@ -260,7 +261,10 @@ define(function (require, exports, module) {
|
||||||
displayStr = displayStr.replace("Shift", "\u21E7"); // Shift > shift symbol
|
displayStr = displayStr.replace("Shift", "\u21E7"); // Shift > shift symbol
|
||||||
displayStr = displayStr.replace("Alt", "\u2325"); // Alt > option symbol
|
displayStr = displayStr.replace("Alt", "\u2325"); // Alt > option symbol
|
||||||
} else {
|
} else {
|
||||||
displayStr = descriptor.replace(/-/g, "+");
|
displayStr = descriptor.replace("Ctrl", Strings.KEYBOARD_CTRL); // Ctrl
|
||||||
|
displayStr = displayStr.replace("Shift", Strings.KEYBOARD_SHIFT); // Shift > shift symbol
|
||||||
|
displayStr = displayStr.replace("Space", Strings.KEYBOARD_SPACE); // Alt > option symbol
|
||||||
|
displayStr = displayStr.replace(/-/g, "+");
|
||||||
}
|
}
|
||||||
|
|
||||||
return displayStr;
|
return displayStr;
|
||||||
|
|
|
@ -133,6 +133,14 @@ define({
|
||||||
|
|
||||||
"UNTITLED" : "Unbenannt",
|
"UNTITLED" : "Unbenannt",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Keyboard modifier names
|
||||||
|
*/
|
||||||
|
|
||||||
|
"KEYBOARD_CTRL" : "Strg",
|
||||||
|
"KEYBOARD_SHIFT" : "Umschalt",
|
||||||
|
"KEYBOARD_SPACE" : "Leer",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command Name Constants
|
* Command Name Constants
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -125,6 +125,12 @@ define({
|
||||||
|
|
||||||
"UNTITLED": "Sans titre",
|
"UNTITLED": "Sans titre",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Keyboard modifier names
|
||||||
|
*/
|
||||||
|
|
||||||
|
"KEYBOARD_SPACE" : "Espace",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command Name Constants
|
* Command Name Constants
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -128,6 +128,14 @@ define({
|
||||||
|
|
||||||
"UNTITLED" : "Untitled",
|
"UNTITLED" : "Untitled",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Keyboard modifier names
|
||||||
|
*/
|
||||||
|
|
||||||
|
"KEYBOARD_CTRL" : "Ctrl",
|
||||||
|
"KEYBOARD_SHIFT" : "Shift",
|
||||||
|
"KEYBOARD_SPACE" : "Space",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command Name Constants
|
* Command Name Constants
|
||||||
*/
|
*/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче