Localize some leftover palette messages.

This commit is contained in:
Thomas Wilburn 2014-07-20 09:53:21 -07:00
parent cb2675b113
commit 741ed76e36
3 changed files with 12 additions and 7 deletions

View file

@ -103,5 +103,9 @@
"fileLoaded": { "message": "Loaded $1, $2 bytes" },
"fileAutosaving": { "message": "Executing autosave for all tabs..." },
"editorWordCount": { "message": "$1 characters, $2 words, $3 lines" }
"editorWordCount": { "message": "$1 characters, $2 words, $3 lines" },
"recordingMacro": { "message": "Recording macro..." },
"setSyntax": { "message": "Set Syntax: $1" },
"setTheme": { "message": "Set Theme: $1" }
}

View file

@ -2,8 +2,9 @@ define([
"command",
"editor",
"ui/statusbar",
"settings!user,ace"
], function(command, editor, status, Settings) {
"settings!user,ace",
"util/i18n"
], function(command, editor, status, Settings, i18n) {
var userConfig = Settings.get("user");
command.on("init:restart", function() {
@ -17,7 +18,7 @@ define([
command.list.push({
command: "session:syntax",
argument: mode.name,
label: "Set Syntax: " + mode.label
label: i18n.get("setSyntax", mode.label)
});
}
for (var i = 0; i < aceConfig.themes.length; i++) {
@ -25,7 +26,7 @@ define([
command.list.push({
command: "editor:theme",
argument: theme.name,
label: "Set Theme: " + theme.label
label: i18n.get("setTheme", theme.label)
});
}
@ -238,7 +239,7 @@ define([
editor.execCommand("togglerecording");
editor.focus();
if (isRecording) {
status.setMessage("Recording macro...");
status.setMessage(i18n.get("recordingMacro"));
} else {
status.clearMessage();
}

View file

@ -383,7 +383,7 @@ define([
var current = this.results[this.selected];
if (!current) return;
if (current.command) {
status.toast(i18n.get("paletteExecuting", current.label));
status.toast(i18n.get("paletteExecuting", i18n.get(current.label)));
command.fire(current.command, current.argument);
} else {
//must be the file search