Add app title to about menu item label. Fix JSLint indent errors.

This commit is contained in:
Jason San Jose 2012-09-17 17:53:53 -07:00
Родитель 01d599d6c0
Коммит 8c97e3c962
6 изменённых файлов: 16 добавлений и 14 удалений

Просмотреть файл

@ -137,9 +137,9 @@ define({
* Keyboard modifier names
*/
"KEYBOARD_CTRL" : "Strg",
"KEYBOARD_SHIFT" : "Umschalt",
"KEYBOARD_SPACE" : "Leer",
"KEYBOARD_CTRL" : "Strg",
"KEYBOARD_SHIFT" : "Umschalt",
"KEYBOARD_SPACE" : "Leer",
/**
* Command Name Constants
@ -207,7 +207,7 @@ define({
// Help menu commands
"HELP_MENU" : "Hilfe",
"CMD_ABOUT" : "Über",
"CMD_ABOUT" : "Über {APP_TITLE}",
"CMD_FORUM" : "{APP_NAME}-Forum",
// Special commands invoked by the native shell

Просмотреть файл

@ -191,7 +191,7 @@ define({
// Help menu commands
"HELP_MENU" : "Ayuda",
"CMD_ABOUT" : "Acerca de...",
"CMD_ABOUT" : "Acerca de {APP_TITLE}",
"CMD_FORUM" : "Foro de {APP_NAME}",
// Special commands invoked by the native shell

Просмотреть файл

@ -199,7 +199,7 @@ define({
// Help menu commands
"HELP_MENU": "Aide",
"CMD_ABOUT": "A propos",
"CMD_ABOUT": "Á propos de {APP_TITLE}",
"CMD_FORUM": "Forum {APP_NAME}",
// Special commands invoked by the native shell

Просмотреть файл

@ -129,9 +129,9 @@ define({
* Keyboard modifier names
*/
"KEYBOARD_CTRL" : "Ctrl",
"KEYBOARD_SHIFT" : "Shift",
"KEYBOARD_SPACE" : "Space",
"KEYBOARD_CTRL" : "Ctrl",
"KEYBOARD_SHIFT" : "Shift",
"KEYBOARD_SPACE" : "Space",
/**
* Command Name Constants
@ -199,7 +199,7 @@ define({
// Help menu commands
"HELP_MENU" : "Hjelp",
"CMD_ABOUT" : "Om",
"CMD_ABOUT" : "Om {APP_TITLE}",
"CMD_FORUM" : "{APP_NAME} forum",
// Special commands invoked by the native shell

Просмотреть файл

@ -129,9 +129,9 @@ define({
* Keyboard modifier names
*/
"KEYBOARD_CTRL" : "Ctrl",
"KEYBOARD_SHIFT" : "Shift",
"KEYBOARD_SPACE" : "Space",
"KEYBOARD_CTRL" : "Ctrl",
"KEYBOARD_SHIFT" : "Shift",
"KEYBOARD_SPACE" : "Space",
/**
* Command Name Constants
@ -199,7 +199,7 @@ define({
// Help menu commands
"HELP_MENU" : "Help",
"CMD_ABOUT" : "About",
"CMD_ABOUT" : "About {APP_TITLE}",
"CMD_FORUM" : "{APP_NAME} Forum",
// Special commands invoked by the native shell

Просмотреть файл

@ -38,10 +38,12 @@ define(function (require, exports, module) {
StringUtils = require("utils/StringUtils");
strings.APP_NAME = brackets.metadata.name || strings.APP_NAME;
strings.APP_TITLE = brackets.config.app_title || strings.APP_NAME;
// Convert {APP_NAME}
Object.keys(strings).forEach(function (key) {
strings[key] = strings[key].replace(/\{APP_NAME\}/g, strings.APP_NAME);
strings[key] = strings[key].replace(/\{APP_TITLE\}/g, strings.APP_TITLE);
});
module.exports = strings;