Last active
March 2, 2019 10:26
-
-
Save hidao80/538d19d457bf235a2b825c12a2e59374 to your computer and use it in GitHub Desktop.
cloud9のメニューを日本語化するパッチ。リポジトリのルートディレクトリで patch -p1 < c9_us2jp_diff.patch`と実行する。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.gitignore b/.gitignore | |
index 73aa11e..11b3587 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -2,6 +2,7 @@ build/*/ | |
build/*.zip | |
build/*.exe | |
build/*.tgz | |
+build/*.bak | |
b9/lib/js/node_modules/ | |
docs/generate/lib/node_modules | |
plugins/c9.ide.layout.classic/less/*.css | |
diff --git a/plugins/c9.example.formatjson/formatjson.js b/plugins/c9.example.formatjson/formatjson.js | |
index 6a92649..830166d 100644 | |
--- a/plugins/c9.example.formatjson/formatjson.js | |
+++ b/plugins/c9.example.formatjson/formatjson.js | |
@@ -55,7 +55,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Tools/Format Json", new ui.item({ | |
+ menus.addItemByPath("ツール/Format Json", new ui.item({ | |
command: "formatjson" | |
}), 1000, plugin); | |
} | |
diff --git a/plugins/c9.ide.ace.gotoline/gotoline.js b/plugins/c9.ide.ace.gotoline/gotoline.js | |
index ccfebf0..31a7f98 100644 | |
--- a/plugins/c9.ide.ace.gotoline/gotoline.js | |
+++ b/plugins/c9.ide.ace.gotoline/gotoline.js | |
@@ -36,7 +36,7 @@ define(function(require, exports, module) { | |
if (loaded) return false; | |
loaded = true; | |
- menus.addItemByPath("Goto/Goto Line...", new ui.item({ | |
+ menus.addItemByPath("移動/行へ移動", new ui.item({ | |
caption: "Goto Line...", | |
hint: "enter a line number and jump to it in the active document", | |
command: "gotoline" | |
diff --git a/plugins/c9.ide.ace.keymaps/keymaps.js b/plugins/c9.ide.ace.keymaps/keymaps.js | |
index 52282e7..de206ea 100644 | |
--- a/plugins/c9.ide.ace.keymaps/keymaps.js | |
+++ b/plugins/c9.ide.ace.keymaps/keymaps.js | |
@@ -40,12 +40,12 @@ define(function(require, exports, module) { | |
} | |
} | |
}); | |
- menus.addItemByPath("Edit/~", new ui.divider(), 650, plugin); | |
- menus.addItemByPath("Edit/Keyboard Mode/", mnuKbModes, 660, plugin); | |
+ menus.addItemByPath("編集/~", new ui.divider(), 650, plugin); | |
+ menus.addItemByPath("編集/キーボード/", mnuKbModes, 660, plugin); | |
var c = 1000; | |
["Default", "Vim", "Emacs", "Sublime"].forEach(function(label) { | |
- menus.addItemByPath("Edit/Keyboard Mode/" + label, new ui.item({ | |
+ menus.addItemByPath("編集/キーボード/" + label, new ui.item({ | |
type: "radio", | |
value: label.toLowerCase(), | |
onclick: function(e) { | |
diff --git a/plugins/c9.ide.ace.statusbar/statusbar.js b/plugins/c9.ide.ace.statusbar/statusbar.js | |
index e4e003c..194374f 100644 | |
--- a/plugins/c9.ide.ace.statusbar/statusbar.js | |
+++ b/plugins/c9.ide.ace.statusbar/statusbar.js | |
@@ -44,7 +44,7 @@ define(function(require, exports, module) { | |
// (its already called if the user has it checked on IDE load) | |
}); | |
- menus.addItemByPath("View/Status Bar", menuItem, 600, handle); | |
+ menus.addItemByPath("ビュー/ステータスバー", menuItem, 600, handle); | |
aceHandle.on("create", function(e) { | |
if (e.editor.type != "ace") | |
diff --git a/plugins/c9.ide.ace.stripws/stripws.js b/plugins/c9.ide.ace.stripws/stripws.js | |
index b4dd27e..2031642 100644 | |
--- a/plugins/c9.ide.ace.stripws/stripws.js | |
+++ b/plugins/c9.ide.ace.stripws/stripws.js | |
@@ -42,11 +42,11 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Tools/Strip Trailing Space", new ui.item({ | |
+ menus.addItemByPath("ツール/末尾のスペース除去", new ui.item({ | |
command: "stripws" | |
}), 100, plugin); | |
- menus.addItemByPath("Tools/~", new ui.divider(), 200, plugin); | |
+ menus.addItemByPath("ツール/~", new ui.divider(), 200, plugin); | |
save.on("beforeSave", function (e) { | |
var shouldStrip = settings.getBool("project/general/@stripws"); | |
diff --git a/plugins/c9.ide.ace/ace.js b/plugins/c9.ide.ace/ace.js | |
index bfb3f33..e6b1fcd 100644 | |
--- a/plugins/c9.ide.ace/ace.js | |
+++ b/plugins/c9.ide.ace/ace.js | |
@@ -968,12 +968,12 @@ | |
c = 600; | |
- menus.addItemByPath("Edit/~", new ui.divider(), c += 100, handle); | |
- menus.addItemByPath("Edit/Selection/", null, c += 100, handle); | |
- menus.addItemByPath("Edit/Line/", null, c += 100, handle); | |
- menus.addItemByPath("Edit/Text/", null, c += 100, handle); | |
- menus.addItemByPath("Edit/Comment/", null, c += 100, handle); | |
- menus.addItemByPath("Edit/Code Folding/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/行/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/テキスト/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/コメント/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/コードの折りたたみ/", null, c += 100, handle); | |
c = 0; | |
@@ -982,16 +982,16 @@ | |
addEditorMenu("Edit/Line/Move Line Up", "movelinesup"), | |
addEditorMenu("Edit/Line/Move Line Down", "movelinesdown"), | |
- menus.addItemByPath("Edit/Line/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/行/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Line/Copy Lines Up", "copylinesup"), | |
addEditorMenu("Edit/Line/Copy Lines Down", "copylinesdown"), | |
- menus.addItemByPath("Edit/Line/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/行/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Line/Remove Line", "removeline"), | |
addEditorMenu("Edit/Line/Remove to Line End", "removetolineend"), | |
addEditorMenu("Edit/Line/Remove to Line Start", "removetolinestart"), | |
- menus.addItemByPath("Edit/Line/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/行/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Line/Split Line", "splitline"); | |
c = 0; | |
@@ -1003,11 +1003,11 @@ | |
addEditorMenu("Edit/Text/Remove Word Right", "removewordright"), | |
addEditorMenu("Edit/Text/Remove Word Left", "removewordleft"), | |
- menus.addItemByPath("Edit/Text/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/テキスト/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Text/Align", "alignCursors"); | |
addEditorMenu("Edit/Text/Transpose Letters", "transposeletters"); | |
- menus.addItemByPath("Edit/Text/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/テキスト/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Text/To Upper Case", "touppercase"), | |
addEditorMenu("Edit/Text/To Lower Case", "tolowercase"); | |
@@ -1016,7 +1016,7 @@ | |
addEditorMenu("Edit/Code Folding/Toggle Fold", "toggleFoldWidget"), | |
addEditorMenu("Edit/Code Folding/Unfold", "unfold"), | |
- menus.addItemByPath("Edit/Code Folding/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/コードの折りたたみ/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Code Folding/Fold Other", "foldOther"); | |
addEditorMenu("Edit/Code Folding/Fold All", "foldall"); | |
addEditorMenu("Edit/Code Folding/Unfold All", "unfoldall"); | |
@@ -1027,18 +1027,18 @@ | |
addEditorMenu("Edit/Selection/Split Into Lines", "splitIntoLines"), | |
addEditorMenu("Edit/Selection/Single Selection", "singleSelection"), | |
- menus.addItemByPath("Edit/Selection/~", new ui.divider(), c += 100, handle); | |
- menus.addItemByPath("Edit/Selection/Multiple Selections/", null, c += 100, handle); | |
+ menus.addItemByPath("編集/選択/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/Multiple Selections/", null, c += 100, handle); | |
- menus.addItemByPath("Edit/Selection/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Selection/Select Word Right", "selectwordright"), | |
addEditorMenu("Edit/Selection/Select Word Left", "selectwordleft"), | |
- menus.addItemByPath("Edit/Selection/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Selection/Select to Line End", "selecttolineend"), | |
addEditorMenu("Edit/Selection/Select to Line Start", "selecttolinestart"), | |
- menus.addItemByPath("Edit/Selection/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Selection/Select to Document End", "selecttoend"); | |
addEditorMenu("Edit/Selection/Select to Document Start", "selecttostart"); | |
@@ -1049,24 +1049,24 @@ | |
addEditorMenu("Edit/Selection/Multiple Selections/Move Active Cursor Up", "addCursorAboveSkipCurrent"), | |
addEditorMenu("Edit/Selection/Multiple Selections/Move Active Cursor Down", "addCursorBelowSkipCurrent"), | |
- menus.addItemByPath("Edit/Selection/Multiple Selections/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/Multiple Selections/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Selection/Multiple Selections/Add Next Selection Match", "selectMoreAfter"), | |
addEditorMenu("Edit/Selection/Multiple Selections/Add Previous Selection Match", "selectMoreBefore"), | |
- menus.addItemByPath("Edit/Selection/Multiple Selections/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("編集/選択/Multiple Selections/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Edit/Selection/Multiple Selections/Merge Selection Range", "splitIntoLines"); | |
/**** View ****/ | |
- menus.addItemByPath("View/~", new ui.divider(), 290000, handle); | |
- menus.addItemByPath("View/Font Size/", null, 290001, handle); | |
+ menus.addItemByPath("ビュー/~", new ui.divider(), 290000, handle); | |
+ menus.addItemByPath("ビュー/フォントサイズ/", null, 290001, handle); | |
c = 0; | |
addEditorMenu("View/Font Size/Increase Font Size", "largerfont"); | |
addEditorMenu("View/Font Size/Decrease Font Size", "smallerfont"); | |
- menus.addItemByPath("View/Gutter", new ui.item({ | |
+ menus.addItemByPath("ビュー/ガター", new ui.item({ | |
type: "check", | |
checked: "user/ace/@showGutter" | |
}), 500, handle); | |
@@ -1074,8 +1074,8 @@ | |
var grpNewline = new ui.group(); | |
- menus.addItemByPath("File/~", new ui.divider(), 1400, handle); | |
- menus.addItemByPath("File/Line Endings/", new ui.menu({ | |
+ menus.addItemByPath("ファイル/~", new ui.divider(), 1400, handle); | |
+ menus.addItemByPath("ファイル/改行文字/", new ui.menu({ | |
"onprop.visible": function(e) { | |
if (e.value) { | |
var tab = tabs.focussedTab; | |
@@ -1099,19 +1099,19 @@ | |
} | |
}), 1500, handle); | |
- menus.addItemByPath("File/Line Endings/Windows (CRLF)", new ui.item({ | |
+ menus.addItemByPath("ファイル/改行文字/Windows (CRLF)", new ui.item({ | |
type: "radio", | |
value: "windows", | |
group: grpNewline | |
}), 200, handle); | |
- menus.addItemByPath("File/Line Endings/Unix (LF)", new ui.item({ | |
+ menus.addItemByPath("ファイル/改行文字/Unix (LF)", new ui.item({ | |
type: "radio", | |
value: "unix", | |
group: grpNewline | |
}), 300, handle); | |
- menus.addItemByPath("View/Syntax/", new ui.menu({ | |
+ menus.addItemByPath("ビュー/構文/", new ui.menu({ | |
"onprop.visible": function(e) { | |
if (e.value) { | |
if (!this.childNodes.length) | |
@@ -1138,7 +1138,7 @@ | |
} | |
}), 300000, handle); | |
- menus.addItemByPath("View/~", new ui.divider(), 400000, handle); | |
+ menus.addItemByPath("ビュー/~", new ui.divider(), 400000, handle); | |
var wrapToggle = function(e) { | |
var tab = tabs.focussedTab; | |
@@ -1156,7 +1156,7 @@ | |
editor.setOption("wrap", wrap); | |
}; | |
- menus.addItemByPath("View/Wrap Lines", new ui.item({ | |
+ menus.addItemByPath("ビュー/行の折り返し", new ui.item({ | |
id: "mnuWrap", | |
type: "check", | |
onclick: wrapToggle, | |
@@ -1175,7 +1175,7 @@ | |
} | |
}), 500000, handle), | |
- menus.addItemByPath("View/Wrap To Print Margin", new ui.item({ | |
+ menus.addItemByPath("ビュー/印刷余白の折り返し", new ui.item({ | |
id: "mnuWrapPrintMargin", | |
type: "check", | |
onclick: wrapToggle, | |
@@ -1188,22 +1188,22 @@ | |
/**** Goto ****/ | |
- menus.addItemByPath("Goto/~", new ui.divider(), c = 399, handle); | |
+ menus.addItemByPath("移動/~", new ui.divider(), c = 399, handle); | |
addEditorMenu("Goto/Next Error", "goToNextError"); | |
addEditorMenu("Goto/Previous Error", "goToPreviousError"); | |
- menus.addItemByPath("Goto/~", new ui.divider(), c += 200, handle); | |
+ menus.addItemByPath("移動/~", new ui.divider(), c += 200, handle); | |
addEditorMenu("Goto/Word Right", "gotowordright"); | |
addEditorMenu("Goto/Word Left", "gotowordleft"); | |
- menus.addItemByPath("Goto/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("移動/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Goto/Line End", "gotolineend"); | |
addEditorMenu("Goto/Line Start", "gotolinestart"); | |
- menus.addItemByPath("Goto/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("移動/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Goto/Jump to Matching Brace", "jumptomatching"); | |
- menus.addItemByPath("Goto/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("移動/~", new ui.divider(), c += 100, handle); | |
addEditorMenu("Goto/Scroll to Selection", "centerselection"); | |
@@ -1226,7 +1226,7 @@ | |
grpThemes = new ui.group(); | |
grpUiThemes = new ui.group(); | |
- menus.addItemByPath("View/Themes/", new ui.menu({ | |
+ menus.addItemByPath("ビュー/テーマ/", new ui.menu({ | |
"onprop.visible": function(e) { | |
if (e.value) { | |
grpThemes.setValue(settings.get("user/ace/@theme")); | |
@@ -1236,10 +1236,10 @@ | |
return; | |
themeMenuShown = true; | |
// Create Theme Menus | |
- menus.addItemByPath("View/Themes/Ui Themes/", null, 0, handle); | |
- menus.addItemByPath("View/Themes/~", new ui.divider(), themeCounter += 100, handle); | |
+ menus.addItemByPath("ビュー/テーマ/Ui Themes/", null, 0, handle); | |
+ menus.addItemByPath("ビュー/テーマ/~", new ui.divider(), themeCounter += 100, handle); | |
layout.listThemes().forEach(function(theme) { | |
- menus.addItemByPath("View/Themes/Ui Themes/" + theme.caption, new ui.item({ | |
+ menus.addItemByPath("ビュー/テーマ/Ui Themes/" + theme.caption, new ui.item({ | |
type: "radio", | |
value: theme.name, | |
group: grpUiThemes, | |
@@ -1254,7 +1254,7 @@ | |
if (themes[name] instanceof Array) { | |
// Add Menu Item (for submenu) | |
- menus.addItemByPath("View/Themes/" + name + "/", null, themeCounter++, handle); | |
+ menus.addItemByPath("ビュー/テーマ/" + name + "/", null, themeCounter++, handle); | |
themes[name].forEach(function (n) { | |
// Add Menu Item | |
@@ -1287,7 +1287,7 @@ | |
function addThemeMenu(name, path, index, plugin) { | |
if (!themeMenuShown) | |
return; | |
- menus.addItemByPath("View/Themes/" + name, new ui.item({ | |
+ menus.addItemByPath("ビュー/テーマ/" + name, new ui.item({ | |
type: "radio", | |
value: path || themes[name], | |
group: grpThemes, | |
@@ -1354,19 +1354,19 @@ | |
menus.remove("View/Syntax/"); | |
var c = 0; | |
- menus.addItemByPath("View/Syntax/Auto-Select", new ui.item({ | |
+ menus.addItemByPath("ビュー/構文/Auto-Select", new ui.item({ | |
type: "radio", | |
value: "auto", | |
group: grpSyntax | |
}), c += 100, handle); | |
- menus.addItemByPath("View/Syntax/Plain Text", new ui.item({ | |
+ menus.addItemByPath("ビュー/構文/Plain Text", new ui.item({ | |
type: "radio", | |
value: "text", | |
group: grpSyntax | |
}), c += 100, handle); | |
- menus.addItemByPath("View/Syntax/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("ビュー/構文/~", new ui.divider(), c += 100, handle); | |
var modeList = Object.keys(modes.byName).map(function(x) { | |
return modes.byName[x]; | |
@@ -1381,9 +1381,9 @@ | |
break; | |
if (mode.order < groupNum) { | |
groupNum = Math.min(mode.order, groupNum / 1000); | |
- menus.addItemByPath("View/Syntax/~", new ui.divider(), c += 100, handle); | |
+ menus.addItemByPath("ビュー/構文/~", new ui.divider(), c += 100, handle); | |
} | |
- menus.addItemByPath("View/Syntax/" + mode.caption, new ui.item({ | |
+ menus.addItemByPath("ビュー/構文/" + mode.caption, new ui.item({ | |
type: "radio", | |
value: mode.name, | |
group: grpSyntax, | |
diff --git a/plugins/c9.ide.behaviors/tabs.js b/plugins/c9.ide.behaviors/tabs.js | |
index 92018fe..c85ff39 100644 | |
--- a/plugins/c9.ide.behaviors/tabs.js | |
+++ b/plugins/c9.ide.behaviors/tabs.js | |
@@ -224,37 +224,37 @@ define(function(require, exports, module) { | |
}, plugin); | |
// General Menus | |
- menus.addItemByPath("File/~", new ui.divider(), 100000, plugin); | |
- menus.addItemByPath("File/Close File", new ui.item({ | |
+ menus.addItemByPath("ファイル/~", new ui.divider(), 100000, plugin); | |
+ menus.addItemByPath("ファイル/ファイルを閉じる", new ui.item({ | |
command: "closetab" | |
}), 110000, plugin); | |
- menus.addItemByPath("File/Close All Files", new ui.item({ | |
+ menus.addItemByPath("ファイル/ファイルをすべて閉じる", new ui.item({ | |
command: "closealltabs" | |
}), 120000, plugin); | |
mnuTabs = new ui.menu(); | |
- menus.addItemByPath("Window/Tabs", mnuTabs, 10100, plugin); | |
- menus.addItemByPath("Window/Tabs/Close Pane", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/タブ", mnuTabs, 10100, plugin); | |
+ menus.addItemByPath("ウインドウ/タブ/Close Pane", new ui.item({ | |
command: "closepane" | |
}), 100, plugin); | |
- menus.addItemByPath("Window/Tabs/Close All Tabs In All Panes", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/タブ/Close All Tabs In All Panes", new ui.item({ | |
command: "closealltabs" | |
}), 200, plugin); | |
- menus.addItemByPath("Window/Tabs/Close All But Current Tab", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/タブ/Close All But Current Tab", new ui.item({ | |
command: "closeallbutme" | |
}), 300, plugin); | |
- menus.addItemByPath("Window/Tabs/~", new ui.divider(), 1000000, plugin); | |
- menus.addItemByPath("Window/Tabs/Split Pane in Two Rows", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/タブ/~", new ui.divider(), 1000000, plugin); | |
+ menus.addItemByPath("ウインドウ/タブ/Split Pane in Two Rows", new ui.item({ | |
command: "vsplit" | |
}), 1000100, plugin); | |
- menus.addItemByPath("Window/Tabs/Split Pane in Two Columns", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/タブ/Split Pane in Two Columns", new ui.item({ | |
command: "hsplit" | |
}), 1000200, plugin); | |
- menus.addItemByPath("Window/Tabs/~", new ui.divider(), 1000300, plugin); | |
+ menus.addItemByPath("ウインドウ/タブ/~", new ui.divider(), 1000300, plugin); | |
- menus.addItemByPath("Window/Tabs/~", new apf.label({ | |
+ menus.addItemByPath("ウインドウ/タブ/~", new apf.label({ | |
class: "splits", | |
caption: [ | |
["span", { class: "nosplit" }], | |
@@ -272,68 +272,68 @@ define(function(require, exports, module) { | |
} | |
}), 1000400, plugin); | |
- menus.addItemByPath("Window/~", new ui.divider(), 9000, plugin); | |
+ menus.addItemByPath("ウインドウ/~", new ui.divider(), 9000, plugin); | |
- menus.addItemByPath("Window/Navigation/", null, 9100, plugin); | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/", null, 9100, plugin); | |
- menus.addItemByPath("Window/Navigation/Tab to the Right", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Tab to the Right", new ui.item({ | |
command: "gototabright" | |
}), 100, plugin); | |
- menus.addItemByPath("Window/Navigation/Tab to the Left", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Tab to the Left", new ui.item({ | |
command: "gototableft" | |
}), 200, plugin); | |
- menus.addItemByPath("Window/Navigation/Next Tab in History", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Next Tab in History", new ui.item({ | |
command: "nexttab" | |
}), 300, plugin); | |
- menus.addItemByPath("Window/Navigation/Previous Tab in History", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Previous Tab in History", new ui.item({ | |
command: "previoustab" | |
}), 400, plugin); | |
- menus.addItemByPath("Window/Navigation/~", new ui.divider(), 500, plugin); | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/~", new ui.divider(), 500, plugin); | |
- menus.addItemByPath("Window/Navigation/Move Tab to Right", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Move Tab to Right", new ui.item({ | |
command: "movetabright" | |
}), 600, plugin); | |
- menus.addItemByPath("Window/Navigation/Move Tab to Left", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Move Tab to Left", new ui.item({ | |
command: "movetableft" | |
}), 700, plugin); | |
- menus.addItemByPath("Window/Navigation/Move Tab to Up", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Move Tab to Up", new ui.item({ | |
command: "movetabup" | |
}), 800, plugin); | |
- menus.addItemByPath("Window/Navigation/Move Tab to Down", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Move Tab to Down", new ui.item({ | |
command: "movetabdown" | |
}), 900, plugin); | |
- menus.addItemByPath("Window/Navigation/~", new ui.divider(), 1000, plugin); | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/~", new ui.divider(), 1000, plugin); | |
- menus.addItemByPath("Window/Navigation/Go to Pane to Right", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Go to Pane to Right", new ui.item({ | |
command: "gotopaneright" | |
}), 1100, plugin); | |
- menus.addItemByPath("Window/Navigation/Go to Pane to Left", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Go to Pane to Left", new ui.item({ | |
command: "gotopaneleft" | |
}), 1200, plugin); | |
- menus.addItemByPath("Window/Navigation/Go to Pane to Up", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Go to Pane to Up", new ui.item({ | |
command: "gotopaneup" | |
}), 1300, plugin); | |
- menus.addItemByPath("Window/Navigation/Go to Pane to Down", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Go to Pane to Down", new ui.item({ | |
command: "gotopanedown" | |
}), 1400, plugin); | |
- menus.addItemByPath("Window/Navigation/~", new ui.divider(), 1500, plugin); | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/~", new ui.divider(), 1500, plugin); | |
- menus.addItemByPath("Window/Navigation/Next Pane in History", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Next Pane in History", new ui.item({ | |
command: "nextpane" | |
}), 1600, plugin); | |
- menus.addItemByPath("Window/Navigation/Previous Pane in History", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Previous Pane in History", new ui.item({ | |
command: "previouspane" | |
}), 1700, plugin); | |
// Tab Helper Menu | |
- menus.addItemByPath("Window/~", new ui.divider(), 10000, plugin); | |
+ menus.addItemByPath("ウインドウ/~", new ui.divider(), 10000, plugin); | |
mnuTabs.addEventListener("prop.visible", function(e) { | |
if (e.value) { | |
@@ -410,31 +410,31 @@ define(function(require, exports, module) { | |
command: "clonetab" | |
}), 1010, mnuContext, plugin); | |
- menus.addItemByPath("View/~", new ui.divider(), 800, plugin); | |
+ menus.addItemByPath("ビュー/~", new ui.divider(), 800, plugin); | |
- menus.addItemByPath("View/Layout/", null, 900, plugin); | |
+ menus.addItemByPath("ビュー/レイアウト/", null, 900, plugin); | |
- menus.addItemByPath("View/Layout/Single", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Single", new ui.item({ | |
command: "nosplit" | |
}), 100, mnuContext, plugin); | |
- menus.addItemByPath("View/Layout/Vertical Split", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Vertical Split", new ui.item({ | |
command: "twovsplit" | |
}), 100, mnuContext, plugin); | |
- menus.addItemByPath("View/Layout/Horizontal Split", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Horizontal Split", new ui.item({ | |
command: "twohsplit" | |
}), 200, mnuContext, plugin); | |
- menus.addItemByPath("View/Layout/Cross Split", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Cross Split", new ui.item({ | |
command: "foursplit" | |
}), 300, mnuContext, plugin); | |
- menus.addItemByPath("View/Layout/Split 1:2", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Split 1:2", new ui.item({ | |
command: "threeright" | |
}), 400, mnuContext, plugin); | |
- menus.addItemByPath("View/Layout/Split 2:1", new ui.item({ | |
+ menus.addItemByPath("ビュー/レイアウト/Split 2:1", new ui.item({ | |
command: "threeleft" | |
}), 500, mnuContext, plugin); | |
diff --git a/plugins/c9.ide.clipboard/clipboard.js b/plugins/c9.ide.clipboard/clipboard.js | |
index ddb6ba7..b89a67a 100644 | |
--- a/plugins/c9.ide.clipboard/clipboard.js | |
+++ b/plugins/c9.ide.clipboard/clipboard.js | |
@@ -85,12 +85,12 @@ define(function(require, exports, module) { | |
passEvent: true | |
}, plugin); | |
- menus.addItemByPath("Edit/~", new ui.divider(), 300, plugin); | |
- menus.addItemByPath("Edit/Cut", | |
+ menus.addItemByPath("編集/~", new ui.divider(), 300, plugin); | |
+ menus.addItemByPath("編集/切り取り", | |
new ui.item({ command: "cut" }), 400, plugin); | |
- menus.addItemByPath("Edit/Copy", | |
+ menus.addItemByPath("編集/コピー", | |
new ui.item({ command: "copy" }), 500, plugin); | |
- menus.addItemByPath("Edit/Paste", | |
+ menus.addItemByPath("編集/貼り付け", | |
new ui.item({ command: "paste" }), 600, plugin); | |
} | |
diff --git a/plugins/c9.ide.configuration/configure.js b/plugins/c9.ide.configuration/configure.js | |
index 2b3e925..1eab4ed 100644 | |
--- a/plugins/c9.ide.configuration/configure.js | |
+++ b/plugins/c9.ide.configuration/configure.js | |
@@ -82,31 +82,31 @@ define(function(require, exports, module) { | |
}, plugin); | |
menus.addItemByPath("Cloud9/~", new ui.divider(), 300, plugin); | |
- menus.addItemByPath("Cloud9/Go To Your Dashboard", new ui.item({ | |
+ menus.addItemByPath("Cloud9/ダッシュボード", new ui.item({ | |
onclick: function() { window.open(options.dashboardUrl); } | |
}), 310, plugin); | |
menus.addItemByPath("Cloud9/~", new ui.divider(), 350, plugin); | |
- menus.addItemByPath("Cloud9/Open Your Project Settings", new ui.item({ | |
+ menus.addItemByPath("Cloud9/プロジェクト設定", new ui.item({ | |
onclick: editProjectSettings | |
}), 400, plugin); | |
- menus.addItemByPath("Cloud9/Open Your User Settings", new ui.item({ | |
+ menus.addItemByPath("Cloud9/ユーザ設定", new ui.item({ | |
onclick: editUserSettings | |
}), 400, plugin); | |
- menus.addItemByPath("Cloud9/Open Your Keymap", new ui.item({ | |
+ menus.addItemByPath("Cloud9/キーマップ", new ui.item({ | |
onclick: function() { | |
kbprefs.editUserKeys(); | |
} | |
}), 600, plugin); | |
- menus.addItemByPath("Cloud9/Open Your Init Script", new ui.item({ | |
+ menus.addItemByPath("Cloud9/初期化スクリプト", new ui.item({ | |
onclick: editInitJs | |
}), 700, plugin); | |
- menus.addItemByPath("Cloud9/Open Your Stylesheet", new ui.item({ | |
+ menus.addItemByPath("Cloud9/スタイルシート", new ui.item({ | |
onclick: editStylesCss | |
}), 800, plugin); | |
if (!c9.hosted) { | |
- menus.addItemByPath("Cloud9/Restart Cloud9", new apf.item({ | |
+ menus.addItemByPath("Cloud9/Cloud9の再起動", new apf.item({ | |
command: "restartc9" | |
}), 2000080, plugin); | |
} else { | |
diff --git a/plugins/c9.ide.console/console.js b/plugins/c9.ide.console/console.js | |
index 3c36865..ec3a4dc 100644 | |
--- a/plugins/c9.ide.console/console.js | |
+++ b/plugins/c9.ide.console/console.js | |
@@ -65,7 +65,7 @@ define(function(require, module, exports) { | |
}, plugin); | |
// Menus | |
- menus.addItemByPath("View/Console", new apf.item({ | |
+ menus.addItemByPath("ビュー/コンソール", new apf.item({ | |
type: "check", | |
command: "toggleconsole", | |
checked: "state/console/@expanded" | |
diff --git a/plugins/c9.ide.download/download.js b/plugins/c9.ide.download/download.js | |
index a3426ec..bdb943d 100644 | |
--- a/plugins/c9.ide.download/download.js | |
+++ b/plugins/c9.ide.download/download.js | |
@@ -31,7 +31,7 @@ define(function(require, exports, module) { | |
if (loaded) return false; | |
loaded = true; | |
- menus.addItemByPath("File/Download Project", new ui.item({ | |
+ menus.addItemByPath("ファイル/プロジェクトのダウンロード", new ui.item({ | |
onclick: downloadProject | |
}), 1300, plugin); | |
diff --git a/plugins/c9.ide.editors/editors.js b/plugins/c9.ide.editors/editors.js | |
index 8e291d1..59583b0 100644 | |
--- a/plugins/c9.ide.editors/editors.js | |
+++ b/plugins/c9.ide.editors/editors.js | |
@@ -31,7 +31,7 @@ define(function(require, module, exports) { | |
plugin.addElement(group = new ui.group()); | |
- menus.addItemByPath("View/Editors/", new ui.menu({ | |
+ menus.addItemByPath("ビュー/エディタ/", new ui.menu({ | |
"onprop.visible": function(e) { | |
if (!e.value) | |
return; | |
@@ -39,7 +39,7 @@ define(function(require, module, exports) { | |
emit("menuShow", { menu: this }); | |
} | |
}), 100, plugin); | |
- menus.addItemByPath("View/~", new ui.divider(), 200, plugin); | |
+ menus.addItemByPath("ビュー/~", new ui.divider(), 200, plugin); | |
} | |
function findEditor(type, editor) { | |
@@ -97,7 +97,7 @@ define(function(require, module, exports) { | |
if (extensions.length) { | |
//Add a menu item to the list of editors | |
- menus.addItemByPath("View/Editors/" + caption, | |
+ menus.addItemByPath("ビュー/エディタ/" + caption, | |
new ui.item({ | |
type: "radio", | |
value: type, | |
diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js | |
index 78c4c31..f1481d9 100644 | |
--- a/plugins/c9.ide.editors/tabmanager.js | |
+++ b/plugins/c9.ide.editors/tabmanager.js | |
@@ -84,7 +84,7 @@ define(function(require, module, exports) { | |
commands.on("getEditor", getEditor, plugin); | |
menus.on("getEditor", getEditor, plugin); | |
- menus.addItemByPath("View/Tab Buttons", new apf.item({ | |
+ menus.addItemByPath("ビュー/タブボタン", new apf.item({ | |
type: "check", | |
checked: "user/tabs/@show", | |
command: "toggleButtons" | |
diff --git a/plugins/c9.ide.find.infiles/findinfiles.js b/plugins/c9.ide.find.infiles/findinfiles.js | |
index cb1e867..b2e813c 100644 | |
--- a/plugins/c9.ide.find.infiles/findinfiles.js | |
+++ b/plugins/c9.ide.find.infiles/findinfiles.js | |
@@ -66,8 +66,8 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Find/~", new ui.divider(), 10000, plugin), | |
- menus.addItemByPath("Find/Find in Files...", new ui.item({ | |
+ menus.addItemByPath("検索/~", new ui.divider(), 10000, plugin), | |
+ menus.addItemByPath("検索/ファイル内を検索", new ui.item({ | |
command: "searchinfiles" | |
}), 20000, plugin); | |
diff --git a/plugins/c9.ide.find.replace/findreplace.js b/plugins/c9.ide.find.replace/findreplace.js | |
index 1dd98f4..205f65f 100644 | |
--- a/plugins/c9.ide.find.replace/findreplace.js | |
+++ b/plugins/c9.ide.find.replace/findreplace.js | |
@@ -140,26 +140,26 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Find/Find...", new ui.item({ | |
+ menus.addItemByPath("検索/検索", new ui.item({ | |
command: "find" | |
}), 100, plugin); | |
- menus.addItemByPath("Find/Find Next", new ui.item({ | |
+ menus.addItemByPath("検索/次を検索", new ui.item({ | |
command: "findnext" | |
}), 200, plugin); | |
- menus.addItemByPath("Find/Find Previous", new ui.item({ | |
+ menus.addItemByPath("検索/前を検索", new ui.item({ | |
command: "findprevious" | |
}), 300, plugin); | |
- menus.addItemByPath("Find/~", new ui.divider(), 400, plugin); | |
- menus.addItemByPath("Find/Replace...", new ui.item({ | |
+ menus.addItemByPath("検索/~", new ui.divider(), 400, plugin); | |
+ menus.addItemByPath("検索/置換", new ui.item({ | |
command: "replace" | |
}), 500, plugin); | |
- menus.addItemByPath("Find/Replace Next", new ui.item({ | |
+ menus.addItemByPath("検索/次を置換", new ui.item({ | |
command: "replacenext", | |
}), 600, plugin); | |
- menus.addItemByPath("Find/Replace Previous", new ui.item({ | |
+ menus.addItemByPath("検索/前を置換", new ui.item({ | |
command: "replaceprevious", | |
}), 700, plugin); | |
- menus.addItemByPath("Find/Replace All", new ui.item({ | |
+ menus.addItemByPath("検索/すべて置換", new ui.item({ | |
command: "replaceall" | |
}), 800, plugin); | |
diff --git a/plugins/c9.ide.format/format.js b/plugins/c9.ide.format/format.js | |
index 3d65904..fed4ebd 100644 | |
--- a/plugins/c9.ide.format/format.js | |
+++ b/plugins/c9.ide.format/format.js | |
@@ -54,15 +54,15 @@ define(function(require, exports, module) { | |
formatCode(e.value); | |
} | |
}); | |
- menus.addItemByPath("Edit/Code Formatting", mnuFormat, 1400, plugin); | |
+ menus.addItemByPath("編集/コードのフォーマット", mnuFormat, 1400, plugin); | |
- menus.addItemByPath("Edit/Code Formatting/Apply Code Formatting", new ui.item({ | |
+ menus.addItemByPath("編集/コードのフォーマット/Apply Code Formatting", new ui.item({ | |
selected: true, | |
value: "auto", | |
command: "formatcode" | |
}), 100, plugin); | |
- menus.addItemByPath("Edit/Code Formatting/Open Language & Formatting Preferences...", new ui.item({ | |
+ menus.addItemByPath("編集/コードのフォーマット/Open Language & Formatting Preferences...", new ui.item({ | |
selected: true, | |
value: "auto", | |
command: "formatprefs" | |
@@ -94,8 +94,8 @@ define(function(require, exports, module) { | |
function addFormatter(caption, mode, plugin) { | |
if (count === 300) | |
- menus.addItemByPath("Edit/Code Formatting/~", new ui.divider(), 300, plugin); | |
- menus.addItemByPath("Edit/Code Formatting/" + caption, new ui.item({ | |
+ menus.addItemByPath("編集/コードのフォーマット/~", new ui.divider(), 300, plugin); | |
+ menus.addItemByPath("編集/コードのフォーマット/" + caption, new ui.item({ | |
value: mode, | |
isAvailable: commands.commands.formatcode.isAvailable | |
}), count += 100, plugin); | |
diff --git a/plugins/c9.ide.help/help.js b/plugins/c9.ide.help/help.js | |
index b2acaf8..2df6ae7 100644 | |
--- a/plugins/c9.ide.help/help.js | |
+++ b/plugins/c9.ide.help/help.js | |
@@ -22,7 +22,7 @@ define(function(require, exports, module) { | |
var aboutDialog; | |
function load() { | |
- menus.addItemByPath("Cloud9/About Cloud9", new ui.item({ | |
+ menus.addItemByPath("Cloud9/Cloud9について", new ui.item({ | |
onclick: function() { showAbout(); } | |
}), 100, plugin); | |
diff --git a/plugins/c9.ide.immediate/immediate.js b/plugins/c9.ide.immediate/immediate.js | |
index 4368d5b..74b2466 100644 | |
--- a/plugins/c9.ide.immediate/immediate.js | |
+++ b/plugins/c9.ide.immediate/immediate.js | |
@@ -45,7 +45,7 @@ define(function(require, exports, module) { | |
) | |
); | |
- menus.addItemByPath("Window/New Immediate Window", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/新規イミディエイトウィンドウ", new ui.item({ | |
onclick: function() { | |
tabManager.open({ | |
active: true, | |
diff --git a/plugins/c9.ide.installer/gui.js b/plugins/c9.ide.installer/gui.js | |
index 91028f5..30b248c 100644 | |
--- a/plugins/c9.ide.installer/gui.js | |
+++ b/plugins/c9.ide.installer/gui.js | |
@@ -77,7 +77,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Window/Installer...", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/インストーラ", new ui.item({ | |
command: "showinstaller" | |
}), 38, plugin); | |
diff --git a/plugins/c9.ide.keys/commands.js b/plugins/c9.ide.keys/commands.js | |
index 5496a32..a627d58 100644 | |
--- a/plugins/c9.ide.keys/commands.js | |
+++ b/plugins/c9.ide.keys/commands.js | |
@@ -483,9 +483,9 @@ define(function(require, exports, module) { | |
* Commands are generally used by buttons and menu items to attach | |
* functionality to them: | |
* | |
- * menus.addItemByPath("Edit/Cut", new MenuItem({ command : "cut" }), 400, plugin); | |
- * menus.addItemByPath("Edit/Copy", new MenuItem({ command : "copy" }), 500, plugin); | |
- * menus.addItemByPath("Edit/Paste", new MenuItem({ command : "paste" }), 600, plugin); | |
+ * menus.addItemByPath("編集/切り取り", new MenuItem({ command : "cut" }), 400, plugin); | |
+ * menus.addItemByPath("編集/コピー", new MenuItem({ command : "copy" }), 500, plugin); | |
+ * menus.addItemByPath("編集/貼り付け", new MenuItem({ command : "paste" }), 600, plugin); | |
* | |
* Or to ui.button elements: | |
* | |
diff --git a/plugins/c9.ide.keys/editor.js b/plugins/c9.ide.keys/editor.js | |
index decb4cf..d9aff0f 100644 | |
--- a/plugins/c9.ide.keys/editor.js | |
+++ b/plugins/c9.ide.keys/editor.js | |
@@ -515,11 +515,11 @@ define(function(require, exports, module) { | |
customKeymaps[name] = keymap; | |
if (!Object.keys(customKeymaps).length) { | |
- menus.addItemByPath("Edit/Keyboard Mode/~", | |
+ menus.addItemByPath("編集/キーボード/~", | |
new ui.divider(), 10000, plugin); | |
} | |
- menus.addItemByPath("Edit/Keyboard Mode/" + name, new ui.item({ | |
+ menus.addItemByPath("編集/キーボード/" + name, new ui.item({ | |
type: "radio", | |
value: name.toLowerCase(), | |
onclick: function(e) { | |
diff --git a/plugins/c9.ide.keys/panel.js b/plugins/c9.ide.keys/panel.js | |
index 09f3b4d..32d61e4 100644 | |
--- a/plugins/c9.ide.keys/panel.js | |
+++ b/plugins/c9.ide.keys/panel.js | |
@@ -50,7 +50,7 @@ define(function(require, exports, module) { | |
}); | |
// Menus | |
- menus.addItemByPath("Goto/Goto Command...", new ui.item({ | |
+ menus.addItemByPath("移動/コマンドへ移動", new ui.item({ | |
command: "commands" | |
}), 250, plugin); | |
} | |
diff --git a/plugins/c9.ide.language.core/complete.js b/plugins/c9.ide.language.core/complete.js | |
index 6d843e5..546ea88 100644 | |
--- a/plugins/c9.ide.language.core/complete.js | |
+++ b/plugins/c9.ide.language.core/complete.js | |
@@ -147,8 +147,8 @@ define(function(require, exports, module) { | |
}); | |
}); | |
- menus.addItemByPath("Tools/~", new ui.divider(), 2000, plugin); | |
- menus.addItemByPath("Tools/Show Autocomplete", new ui.item({ | |
+ menus.addItemByPath("ツール/~", new ui.divider(), 2000, plugin); | |
+ menus.addItemByPath("ツール/オートコンプリートの表示", new ui.item({ | |
command: "complete" | |
}), 2100, plugin); | |
diff --git a/plugins/c9.ide.language.core/jumptodef.js b/plugins/c9.ide.language.core/jumptodef.js | |
index 200885f..54d690a 100644 | |
--- a/plugins/c9.ide.language.core/jumptodef.js | |
+++ b/plugins/c9.ide.language.core/jumptodef.js | |
@@ -80,7 +80,7 @@ define(function(require, exports, module) { | |
} | |
}); | |
}); | |
- menus.addItemByPath("Goto/Jump to Definition", mnuJumpToDef, 1450, plugin); | |
+ menus.addItemByPath("移動/定義位置へ移動", mnuJumpToDef, 1450, plugin); | |
// when the context menu pops up we'll ask the worker whether we've | |
// jumptodef available here | |
diff --git a/plugins/c9.ide.language.core/outline.js b/plugins/c9.ide.language.core/outline.js | |
index 81abdd1..a860d10 100644 | |
--- a/plugins/c9.ide.language.core/outline.js | |
+++ b/plugins/c9.ide.language.core/outline.js | |
@@ -79,7 +79,7 @@ define(function(require, exports, module) { | |
isActive = panels.isActive("outline"); | |
// Menus | |
- menus.addItemByPath("Goto/Goto Symbol...", | |
+ menus.addItemByPath("移動/記号へ移動", | |
new apf.item({ command: "outline" }), 110, plugin); | |
language.getWorker(function(err, worker) { | |
diff --git a/plugins/c9.ide.language.core/quickfix.js b/plugins/c9.ide.language.core/quickfix.js | |
index b814ed1..f29c9ed 100644 | |
--- a/plugins/c9.ide.language.core/quickfix.js | |
+++ b/plugins/c9.ide.language.core/quickfix.js | |
@@ -52,7 +52,7 @@ define(function(require, exports, module) { | |
}); | |
/* | |
- menus.addItemByPath("Tools/Quickfix", new apf.item({ | |
+ menus.addItemByPath("ツール/Quickfix", new apf.item({ | |
caption: "Quickfix", | |
command: "quickfix" | |
}), 20001, plugin) | |
diff --git a/plugins/c9.ide.language.core/refactor.js b/plugins/c9.ide.language.core/refactor.js | |
index f956dd9..e30db9e 100644 | |
--- a/plugins/c9.ide.language.core/refactor.js | |
+++ b/plugins/c9.ide.language.core/refactor.js | |
@@ -113,8 +113,8 @@ define(function(require, exports, module) { | |
caption: "Rename", | |
command: "renameVar" | |
}); | |
- menus.addItemByPath("Tools/~", new ui.divider(), 10000, plugin); | |
- menus.addItemByPath("Tools/Rename Variable", mnuRename, 2100, plugin); | |
+ menus.addItemByPath("ツール/~", new ui.divider(), 10000, plugin); | |
+ menus.addItemByPath("ツール/変数のリネーム", mnuRename, 2100, plugin); | |
// right click context item in ace | |
aceHandle.getElement("menu", function(menu) { | |
diff --git a/plugins/c9.ide.layout.classic/layout.js b/plugins/c9.ide.layout.classic/layout.js | |
index 6eb88fe..e28834d 100644 | |
--- a/plugins/c9.ide.layout.classic/layout.js | |
+++ b/plugins/c9.ide.layout.classic/layout.js | |
@@ -321,32 +321,41 @@ define(function(require, exports, module) { | |
function initMenus(menus) { | |
// Menus | |
- menus.setRootMenu("Cloud9", 50, plugin); | |
+/* menus.setRootMenu("Cloud9", 50, plugin); | |
menus.setRootMenu("File", 100, plugin); | |
menus.setRootMenu("Edit", 200, plugin); | |
menus.setRootMenu("Find", 300, plugin); | |
menus.setRootMenu("View", 400, plugin); | |
menus.setRootMenu("Goto", 500, plugin); | |
- // run plugin adds: menus.setRootMenu("Run", 600, plugin); | |
+ // run plugin adds: menus.setRootMenu("実行", 600, plugin); | |
menus.setRootMenu("Tools", 700, plugin); | |
- menus.setRootMenu("Window", 800, plugin); | |
+ menus.setRootMenu("Window", 800, plugin);*/ | |
+ menus.setRootMenu("Cloud9", 50, plugin); | |
+ menus.setRootMenu("ファイル", 100, plugin); | |
+ menus.setRootMenu("編集", 200, plugin); | |
+ menus.setRootMenu("検索", 300, plugin); | |
+ menus.setRootMenu("ビュー", 400, plugin); | |
+ menus.setRootMenu("移動", 500, plugin); | |
+ // run plugin adds: menus.setRootMenu("実行", 600, plugin); | |
+ menus.setRootMenu("ツール", 700, plugin); | |
+ menus.setRootMenu("ウインドウ", 800, plugin); | |
var amlNode = menus.get("Cloud9").item; | |
if (amlNode && amlNode.$ext) | |
amlNode.$ext.className += " c9btn"; | |
- menus.addItemByPath("File/~", new apf.divider(), 1000000, plugin); | |
+ menus.addItemByPath("ファイル/~", new apf.divider(), 1000000, plugin); | |
- menus.addItemByPath("View/~", new apf.divider(), 9999, plugin); | |
+ menus.addItemByPath("ビュー/~", new apf.divider(), 9999, plugin); | |
- menus.addItemByPath("Window/Presets", null, 10200, plugin); | |
- menus.addItemByPath("Window/Presets/Full IDE", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/プリセット", null, 10200, plugin); | |
+ menus.addItemByPath("ウインドウ/プリセット/Full IDE", new ui.item({ | |
onclick: function() { setBaseLayout("default"); } | |
}), 100, plugin); | |
- menus.addItemByPath("Window/Presets/Minimal Editor", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/プリセット/Minimal Editor", new ui.item({ | |
onclick: function() { setBaseLayout("minimal"); } | |
}), 200, plugin); | |
- menus.addItemByPath("Window/Presets/Sublime Mode", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/プリセット/Sublime Mode", new ui.item({ | |
onclick: function() { setBaseLayout("sublime"); } | |
}), 300, plugin); | |
} | |
diff --git a/plugins/c9.ide.local/open.js b/plugins/c9.ide.local/open.js | |
index af83a99..aa97e49 100644 | |
--- a/plugins/c9.ide.local/open.js | |
+++ b/plugins/c9.ide.local/open.js | |
@@ -31,7 +31,7 @@ define(function(require, exports, module) { | |
exec: function() { open(); } | |
}, plugin); | |
- menus.addItemByPath("File/Open...", new apf.item({ | |
+ menus.addItemByPath("ファイル/開く", new apf.item({ | |
command: "open" | |
}), 400, plugin); | |
} | |
diff --git a/plugins/c9.ide.local/projectmanager.js b/plugins/c9.ide.local/projectmanager.js | |
index 58a72d9..1f304e1 100644 | |
--- a/plugins/c9.ide.local/projectmanager.js | |
+++ b/plugins/c9.ide.local/projectmanager.js | |
@@ -69,7 +69,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("File/New Window", new ui.item({ | |
+ menus.addItemByPath("ファイル/New Window", new ui.item({ | |
value: "", | |
command: "newWindow" | |
}), 250, plugin); | |
diff --git a/plugins/c9.ide.local/windowframe.js b/plugins/c9.ide.local/windowframe.js | |
index 425b833..c232d6c 100644 | |
--- a/plugins/c9.ide.local/windowframe.js | |
+++ b/plugins/c9.ide.local/windowframe.js | |
@@ -53,18 +53,18 @@ define(function(require, exports, module) { | |
// Menu Items | |
menus.addItemByPath("Cloud9/~", new ui.divider(), 2000000, plugin); | |
- menus.addItemByPath("Cloud9/Quit Cloud9", new ui.item({ | |
+ menus.addItemByPath("Cloud9/Cloud9の終了", new ui.item({ | |
selector: "closeAllWindowsQuit:", | |
command: "exit" | |
}), 2000100, plugin); | |
- menus.addItemByPath("Window/Developer Tools", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/Developer Tools", new ui.item({ | |
onclick: function() { | |
win.showDevTools(); | |
} | |
}), 2000000, plugin); | |
- menus.addItemByPath("View/~", new ui.divider(), 800, plugin); | |
+ menus.addItemByPath("ビュー/~", new ui.divider(), 800, plugin); | |
var itemFullscreen = new ui.item({ | |
isAvailable: function() { | |
@@ -76,7 +76,7 @@ define(function(require, exports, module) { | |
}, | |
command: "toggleFullscreen" | |
}); | |
- menus.addItemByPath("View/Enter Full Screen", | |
+ menus.addItemByPath("ビュー/Enter Full Screen", | |
itemFullscreen, 900, plugin); | |
commands.addCommand({ | |
diff --git a/plugins/c9.ide.login/login.js b/plugins/c9.ide.login/login.js | |
index c6e54c6..411d582 100644 | |
--- a/plugins/c9.ide.login/login.js | |
+++ b/plugins/c9.ide.login/login.js | |
@@ -43,7 +43,7 @@ define(function(require, exports, module) { | |
if (!c9.local) { | |
menus.addItemByPath("Cloud9/~", new apf.divider(), 2000000, plugin); | |
- menus.addItemByPath("Cloud9/Quit Cloud9", new apf.item({ | |
+ menus.addItemByPath("Cloud9/Cloud9の終了", new apf.item({ | |
onclick: function() { | |
signout(); | |
} | |
diff --git a/plugins/c9.ide.navigate/navigate.js b/plugins/c9.ide.navigate/navigate.js | |
index efbec0c..a0763fd 100644 | |
--- a/plugins/c9.ide.navigate/navigate.js | |
+++ b/plugins/c9.ide.navigate/navigate.js | |
@@ -87,7 +87,7 @@ define(function(require, exports, module) { | |
}); | |
// Menus | |
- menus.addItemByPath("Goto/Goto Anything...", new ui.item({ | |
+ menus.addItemByPath("移動/移動", new ui.item({ | |
command: "navigate" | |
}), 100, plugin); | |
diff --git a/plugins/c9.ide.newresource/newresource.js b/plugins/c9.ide.newresource/newresource.js | |
index c4073ce..aba0ead 100644 | |
--- a/plugins/c9.ide.newresource/newresource.js | |
+++ b/plugins/c9.ide.newresource/newresource.js | |
@@ -53,19 +53,19 @@ define(function(require, exports, module) { | |
exec: function() { newFolder(); } | |
}, plugin); | |
- menus.addItemByPath("File/New File", new ui.item({ | |
+ menus.addItemByPath("ファイル/新規", new ui.item({ | |
disabled: readonly, | |
command: "newfile" | |
}), 100, plugin); | |
- menus.addItemByPath("File/New From Template", new ui.item({ | |
+ menus.addItemByPath("ファイル/新規フォームテンプレート", new ui.item({ | |
disabled: readonly, | |
}), 200, plugin); | |
- // menus.addItemByPath("File/New Folder", new ui.item({ | |
+ // menus.addItemByPath("ファイル/New Folder", new ui.item({ | |
// disabled: readonly, | |
// command: "newfolder" | |
// }), 300, plugin); | |
- // menus.addItemByPath("File/~", new ui.divider(), 400, plugin); | |
+ // menus.addItemByPath("ファイル/~", new ui.divider(), 400, plugin); | |
addFileTemplate(templates, plugin); | |
} | |
@@ -152,7 +152,7 @@ define(function(require, exports, module) { | |
var list = parse(data); | |
list.forEach(function(item) { | |
- menus.addItemByPath("File/New From Template/" + item.caption, new ui.item({ | |
+ menus.addItemByPath("ファイル/新規フォームテンプレート/" + item.caption, new ui.item({ | |
disabled: readonly, | |
onclick: function() { | |
newFile(item.filename, item.template.join("\n")); | |
diff --git a/plugins/c9.ide.newresource/open.js b/plugins/c9.ide.newresource/open.js | |
index ff1c995..6baef66 100644 | |
--- a/plugins/c9.ide.newresource/open.js | |
+++ b/plugins/c9.ide.newresource/open.js | |
@@ -19,7 +19,7 @@ define(function(require, exports, module) { | |
if (loaded) return false; | |
loaded = true; | |
- menus.addItemByPath("File/Open...", new ui.item({ | |
+ menus.addItemByPath("ファイル/開く", new ui.item({ | |
command: "navigate" | |
}), 400, plugin); | |
} | |
diff --git a/plugins/c9.ide.openfiles/openfiles.js b/plugins/c9.ide.openfiles/openfiles.js | |
index 352fe99..765cd99 100644 | |
--- a/plugins/c9.ide.openfiles/openfiles.js | |
+++ b/plugins/c9.ide.openfiles/openfiles.js | |
@@ -59,7 +59,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("View/Open Files", new ui.item({ | |
+ menus.addItemByPath("ビュー/ファイルを開く", new ui.item({ | |
type: "check", | |
checked: "user/openfiles/@show" | |
// command : "toggleOpenfiles" | |
diff --git a/plugins/c9.ide.panels/panel.js b/plugins/c9.ide.panels/panel.js | |
index 4744da2..7dcb8aa 100644 | |
--- a/plugins/c9.ide.panels/panel.js | |
+++ b/plugins/c9.ide.panels/panel.js | |
@@ -51,7 +51,7 @@ define(function(require, module, exports) { | |
mnuItem.panel = plugin; | |
- menus.addItemByPath("Window/" + caption, mnuItem, index, plugin); | |
+ menus.addItemByPath("ウインドウ/" + caption, mnuItem, index, plugin); | |
panels.on("showPanel" + uCaseFirst(plugin.name), function(e) { | |
lastPanel = e.lastPanel; | |
diff --git a/plugins/c9.ide.panels/panels.js b/plugins/c9.ide.panels/panels.js | |
index d568bb9..929e686 100644 | |
--- a/plugins/c9.ide.panels/panels.js | |
+++ b/plugins/c9.ide.panels/panels.js | |
@@ -43,7 +43,7 @@ define(function(require, exports, module) { | |
data: require("text!./skin.xml"), | |
}, plugin); | |
- menus.addItemByPath("Window/~", new ui.divider(), 40, plugin); | |
+ menus.addItemByPath("ウインドウ/~", new ui.divider(), 40, plugin); | |
} | |
/***** Methods *****/ | |
diff --git a/plugins/c9.ide.plugins/gui.js b/plugins/c9.ide.plugins/gui.js | |
index c83b3fc..953f1be 100644 | |
--- a/plugins/c9.ide.plugins/gui.js | |
+++ b/plugins/c9.ide.plugins/gui.js | |
@@ -78,11 +78,11 @@ define(function(require, exports, module) { | |
if (loaded) return false; | |
loaded = true; | |
- menus.addItemByPath("Tools/~", new ui.divider(), 100000, plugin); | |
- menus.addItemByPath("Tools/Developer", null, 100100, plugin); | |
+ menus.addItemByPath("ツール/~", new ui.divider(), 100000, plugin); | |
+ menus.addItemByPath("ツール/開発者", null, 100100, plugin); | |
if (!DEBUG) { | |
- menus.addItemByPath("Tools/Developer/Start in Debug Mode", new ui.item({ | |
+ menus.addItemByPath("ツール/開発者/Start in Debug Mode", new ui.item({ | |
onclick: function() { | |
var url = location.href + (location.href.indexOf("?") > -1 | |
? "&debug=2" | |
@@ -103,7 +103,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Tools/Developer/Open Plugin Explorer", new ui.item({ | |
+ menus.addItemByPath("ツール/開発者/Open Plugin Explorer", new ui.item({ | |
command: "openPluginManager" | |
}), 1100, plugin); | |
@@ -150,15 +150,15 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Tools/Developer/Reload Last Plugin", new ui.item({ | |
+ menus.addItemByPath("ツール/開発者/Reload Last Plugin", new ui.item({ | |
command: "reloadLastPlugin", | |
isAvailable: getLastReloaded | |
}), 1300, plugin); | |
} | |
- menus.addItemByPath("File/New Plugin", null, 210, plugin); | |
+ menus.addItemByPath("ファイル/New Plugin", null, 210, plugin); | |
Object.keys(TEMPLATES).forEach(function(name) { | |
- menus.addItemByPath("File/New Plugin/" + TEMPLATES[name], new ui.item({ | |
+ menus.addItemByPath("ファイル/New Plugin/" + TEMPLATES[name], new ui.item({ | |
onclick: function() { | |
pluginManager.createNewPlugin(name); | |
} | |
diff --git a/plugins/c9.ide.plugins/test.js b/plugins/c9.ide.plugins/test.js | |
index 0362e23..bd0ca3e 100644 | |
--- a/plugins/c9.ide.plugins/test.js | |
+++ b/plugins/c9.ide.plugins/test.js | |
@@ -34,10 +34,10 @@ define(function(require, exports, module) { | |
if (!ENABLED) return; | |
debug.once("ready", function() { | |
- menus.addItemByPath("Tools/Developer/Tests", null, 200, plugin); | |
+ menus.addItemByPath("ツール/開発者/Tests", null, 200, plugin); | |
debug.plugins.forEach(function(name, i) { | |
- menus.addItemByPath("Tools/Developer/Tests/" + name.replace(/\//g, "\\/"), new ui.item({ | |
+ menus.addItemByPath("ツール/開発者/Tests/" + name.replace(/\//g, "\\/"), new ui.item({ | |
onclick: function() { | |
run(name, function(err) { | |
if (err) console.error(err); | |
diff --git a/plugins/c9.ide.preferences/preferences.js b/plugins/c9.ide.preferences/preferences.js | |
index 4836239..9f03849 100644 | |
--- a/plugins/c9.ide.preferences/preferences.js | |
+++ b/plugins/c9.ide.preferences/preferences.js | |
@@ -105,7 +105,7 @@ define(function(require, exports, module) { | |
}), 500, handle); | |
menus.addItemByPath("Cloud9/~", new ui.divider(), 280, handle); | |
- menus.addItemByPath("Cloud9/Preferences", new ui.item({ | |
+ menus.addItemByPath("Cloud9/設定", new ui.item({ | |
command: "openpreferences" | |
}), 300, handle); | |
diff --git a/plugins/c9.ide.preview/preview.js b/plugins/c9.ide.preview/preview.js | |
index 7c546d2..143ffbd 100644 | |
--- a/plugins/c9.ide.preview/preview.js | |
+++ b/plugins/c9.ide.preview/preview.js | |
@@ -78,13 +78,13 @@ define(function(require, exports, module) { | |
}); | |
button && ui.insertByIndex(parent, button, 10, handle); | |
- menus.addItemByPath("Tools/Preview/", submenu, 1000, handle); | |
+ menus.addItemByPath("ツール/プレビュー/", submenu, 1000, handle); | |
liveMenuItem = new ui.item({ | |
onclick: function(e) { commands.exec("preview", null, { newTab: e && e.button == 1 }); } | |
}); | |
- menus.addItemByPath("Tools/Preview/Live Preview Files", | |
+ menus.addItemByPath("ツール/プレビュー/Live Preview Files", | |
liveMenuItem, 100, handle); | |
- menus.addItemByPath("Tools/Preview/Preview Running Application", new ui.item({ | |
+ menus.addItemByPath("ツール/プレビュー/Preview Running Application", new ui.item({ | |
onclick: function(e) { | |
commands.exec("preview", null, { | |
server: true, | |
@@ -92,12 +92,12 @@ define(function(require, exports, module) { | |
}); | |
} | |
}), 200, handle); | |
- menus.addItemByPath("Tools/Preview/~", new ui.divider({}), 2000, handle); | |
- menus.addItemByPath("Tools/Preview/~", new ui.divider({}), 4000, handle); | |
- menus.addItemByPath("Tools/Preview/Configure Preview URL...", new ui.item({ | |
+ menus.addItemByPath("ツール/プレビュー/~", new ui.divider({}), 2000, handle); | |
+ menus.addItemByPath("ツール/プレビュー/~", new ui.divider({}), 4000, handle); | |
+ menus.addItemByPath("ツール/プレビュー/Configure Preview URL...", new ui.item({ | |
onclick: function(e) { commands.exec("openpreferences", null, {panel: "project", section: "Run & Debug"}); } | |
}), 4200, handle); | |
- menus.addItemByPath("Tools/Preview/Show Active Servers...", new ui.item({ | |
+ menus.addItemByPath("ツール/プレビュー/Show Active Servers...", new ui.item({ | |
onclick: function(e) { commands.exec("showprocesslist", null, { mode: "lsof" }); } | |
}), 4300, handle); | |
} | |
@@ -113,7 +113,7 @@ define(function(require, exports, module) { | |
// Context menu for tree | |
tree.getElement("mnuCtxTree", function(mnuCtxTree) { | |
var itemCtxTreePreview = new ui.item({ | |
- match: "file", | |
+ match: "ファイル", | |
caption: "Preview", | |
isAvailable: function() { | |
return tree.selectedNode && !tree.selectedNode.isFolder | |
diff --git a/plugins/c9.ide.processlist/processlist.js b/plugins/c9.ide.processlist/processlist.js | |
index eca0e12..169e7c0 100644 | |
--- a/plugins/c9.ide.processlist/processlist.js | |
+++ b/plugins/c9.ide.processlist/processlist.js | |
@@ -63,7 +63,7 @@ define(function(require, exports, module) { | |
} | |
}, plugin); | |
- menus.addItemByPath("Tools/Process List", new ui.item({ | |
+ menus.addItemByPath("ツール/プロセスリスト", new ui.item({ | |
command: "showprocesslist" | |
}), 1100, plugin); | |
} | |
diff --git a/plugins/c9.ide.recentfiles/recentfiles.js b/plugins/c9.ide.recentfiles/recentfiles.js | |
index 2ccde60..42e58b1 100644 | |
--- a/plugins/c9.ide.recentfiles/recentfiles.js | |
+++ b/plugins/c9.ide.recentfiles/recentfiles.js | |
@@ -25,11 +25,11 @@ define(function(require, exports, module) { | |
loaded = true; | |
menu = new ui.menu(); | |
- menus.addItemByPath("File/Open Recent/", menu, 500, plugin), | |
+ menus.addItemByPath("ファイル/履歴から開く/", menu, 500, plugin), | |
divider = new ui.divider(); | |
- menus.addItemByPath("File/Open Recent/~", divider, 1000000, plugin); | |
+ menus.addItemByPath("ファイル/履歴から開く/~", divider, 1000000, plugin); | |
- menus.addItemByPath("File/Open Recent/Clear Menu", new ui.item({ | |
+ menus.addItemByPath("ファイル/履歴から開く/Clear Menu", new ui.item({ | |
onclick: function() { | |
clearMenu(); | |
} | |
diff --git a/plugins/c9.ide.run.build/gui.js b/plugins/c9.ide.run.build/gui.js | |
index 55e6694..ed29dd4 100644 | |
--- a/plugins/c9.ide.run.build/gui.js | |
+++ b/plugins/c9.ide.run.build/gui.js | |
@@ -74,7 +74,7 @@ define(function(require, module, exports) { | |
// Menus | |
var c = 10000; | |
- menus.addItemByPath("Run/~", new ui.divider(), c += 100, plugin); | |
+ menus.addItemByPath("実行/~", new ui.divider(), c += 100, plugin); | |
var mnuBuildSystem = new ui.menu({ | |
"onprop.visible": function(e) { | |
@@ -132,37 +132,37 @@ define(function(require, module, exports) { | |
} | |
}); | |
- menus.addItemByPath("Run/Build", new ui.item({ | |
+ menus.addItemByPath("実行/ビルド", new ui.item({ | |
command: "build" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Cancel Build", new ui.item({ | |
+ menus.addItemByPath("実行/ビルドの中止", new ui.item({ | |
command: "stopbuild" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Build System/", mnuBuildSystem, | |
+ menus.addItemByPath("実行/ビルドシステム/", mnuBuildSystem, | |
c += 100, plugin); | |
- menus.addItemByPath("Run/Show Build Result", new ui.item({ | |
+ menus.addItemByPath("実行/ビルド結果の表示", new ui.item({ | |
onclick: function() { | |
commands.exec("showoutput", null, { id: "build" }); | |
} | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/~", new ui.divider(), c += 100, plugin); | |
- menus.addItemByPath("Run/Automatically Build Supported Files", new ui.item({ | |
+ menus.addItemByPath("実行/~", new ui.divider(), c += 100, plugin); | |
+ menus.addItemByPath("実行/自動実行補助ファイル", new ui.item({ | |
type: "check", | |
checked: "user/build/@autobuild" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Save All on Build", new ui.item({ | |
+ menus.addItemByPath("実行/ビルド時にすべて保存", new ui.item({ | |
type: "check", | |
checked: "project/build/@saveall" | |
}), c += 100, plugin); | |
c = 0; | |
- menus.addItemByPath("Run/Build System/Automatic", new ui.item({ | |
+ menus.addItemByPath("実行/ビルドシステム/Automatic", new ui.item({ | |
type: "radio", | |
value: "auto" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Build System/~", new ui.divider(), c += 100, plugin); | |
- menus.addItemByPath("Run/Build System/~", new ui.divider(), c += 1000, plugin); | |
- menus.addItemByPath("Run/Build System/New Build System", new ui.item({ | |
+ menus.addItemByPath("実行/ビルドシステム/~", new ui.divider(), c += 100, plugin); | |
+ menus.addItemByPath("実行/ビルドシステム/~", new ui.divider(), c += 1000, plugin); | |
+ menus.addItemByPath("実行/ビルドシステム/New Build System", new ui.item({ | |
value: "new-build-system" | |
}), c += 100, plugin); | |
diff --git a/plugins/c9.ide.run/gui.js b/plugins/c9.ide.run/gui.js | |
index daa37a6..533f820 100644 | |
--- a/plugins/c9.ide.run/gui.js | |
+++ b/plugins/c9.ide.run/gui.js | |
@@ -116,7 +116,7 @@ define(function(require, module, exports) { | |
// Menus | |
var c = 1000; | |
- menus.setRootMenu("Run", 600, plugin); | |
+ menus.setRootMenu("実行", 600, plugin); | |
var itmRun = new ui.item({ | |
isAvailable: function() { | |
var tab = tabs.focussedTab; | |
@@ -131,25 +131,25 @@ define(function(require, module, exports) { | |
var runner = path && getRunner(path); | |
if (runner) { | |
itmRun.setAttribute("command", "run"); | |
- itmRun.setAttribute("caption", "Run " | |
+ itmRun.setAttribute("caption", "実行 " | |
+ basename(path) + " with " | |
+ runner.caption); | |
return true; | |
} | |
else { | |
itmRun.setAttribute("command", "run"); | |
- itmRun.setAttribute("caption", "Run"); | |
+ itmRun.setAttribute("caption", "実行"); | |
return false; | |
} | |
} | |
} | |
}); | |
- menus.addItemByPath("Run/Run", itmRun, c += 100, plugin); | |
+ menus.addItemByPath("実行/実行", itmRun, c += 100, plugin); | |
var itmRunLast = new ui.item({ | |
command: "runlast", | |
isAvailable: function() { | |
if (process && process.running || !lastRun) { | |
- itmRunLast.setAttribute("caption", "Run Last"); | |
+ itmRunLast.setAttribute("caption", "最後を実行"); | |
return false; | |
} | |
else { | |
@@ -157,15 +157,15 @@ define(function(require, module, exports) { | |
? getRunner(lastRun[1]) | |
: lastRun[0]; | |
- itmRunLast.setAttribute("caption", "Run Last (" | |
+ itmRunLast.setAttribute("caption", "最後を実行 (" | |
+ basename(lastRun[1]) + ", " | |
+ (runner.caption || "auto") + ")"); | |
return true; | |
} | |
} | |
}); | |
- menus.addItemByPath("Run/Run Last", itmRunLast, c += 100, plugin); | |
- menus.addItemByPath("Run/~", new ui.divider(), c += 100, plugin); | |
+ menus.addItemByPath("実行/最後を実行", itmRunLast, c += 100, plugin); | |
+ menus.addItemByPath("実行/~", new ui.divider(), c += 100, plugin); | |
var lastOpener, preventLoop; | |
var mnuRunAs = new ui.menu({ | |
@@ -321,37 +321,37 @@ define(function(require, module, exports) { | |
}); | |
plugin.addElement(mnuRunAs, mnuRunCfg); | |
- menus.addItemByPath("Run/Run With/", mnuRunAs, c += 100, plugin); | |
- menus.addItemByPath("Run/Run History/", new ui.item({ | |
+ menus.addItemByPath("実行/一緒に実行/", mnuRunAs, c += 100, plugin); | |
+ menus.addItemByPath("実行/履歴/", new ui.item({ | |
isAvailable: function() { return false; } | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Run Configurations/", mnuRunCfg, c += 100, plugin); | |
+ menus.addItemByPath("実行/設定を有効にする/", mnuRunCfg, c += 100, plugin); | |
- menus.addItemByPath("Run/~", new ui.divider(), c += 1000, plugin); | |
- // menus.addItemByPath("Run/Enable Source Maps", new ui.item({ | |
+ menus.addItemByPath("実行/~", new ui.divider(), c += 1000, plugin); | |
+ // menus.addItemByPath("実行/Enable Source Maps", new ui.item({ | |
// type : "check", | |
// checked : "project/debug/@sourcemaps" | |
// }), c += 100, plugin); | |
- menus.addItemByPath("Run/Show Debugger at Break", new ui.item({ | |
+ menus.addItemByPath("実行/ブレーク時デバッガを表示", new ui.item({ | |
type: "check", | |
checked: "user/debug/@autoshow" | |
}), c += 100, plugin); | |
c = 0; | |
- menus.addItemByPath("Run/Run Configurations/~", new ui.divider(), c += 1000, plugin); | |
- menus.addItemByPath("Run/Run Configurations/New Run Configuration", new ui.item({ | |
+ menus.addItemByPath("実行/設定を有効にする/~", new ui.divider(), c += 1000, plugin); | |
+ menus.addItemByPath("実行/設定を有効にする/New Run Configuration", new ui.item({ | |
value: "new-run-config" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Run Configurations/Manage...", new ui.item({ | |
+ menus.addItemByPath("実行/設定を有効にする/Manage...", new ui.item({ | |
value: "manage" | |
}), c += 100, plugin); | |
c = 0; | |
- menus.addItemByPath("Run/Run With/~", new ui.divider(), c += 1000, plugin); | |
- menus.addItemByPath("Run/Run With/New Runner", new ui.item({ | |
+ menus.addItemByPath("実行/一緒に実行/~", new ui.divider(), c += 1000, plugin); | |
+ menus.addItemByPath("実行/一緒に実行/New Runner", new ui.item({ | |
value: "new-run-system" | |
}), c += 100, plugin); | |
- menus.addItemByPath("Run/Run With/Edit Runner", new ui.item({ | |
+ menus.addItemByPath("実行/一緒に実行/Edit Runner", new ui.item({ | |
value: "edit-run-system" | |
}), c += 100, plugin); | |
diff --git a/plugins/c9.ide.save/save.js b/plugins/c9.ide.save/save.js | |
index b5444ab..2c4df3f 100644 | |
--- a/plugins/c9.ide.save/save.js | |
+++ b/plugins/c9.ide.save/save.js | |
@@ -204,24 +204,24 @@ define(function(require, exports, module) { | |
command: "save" | |
}), 1000, plugin); | |
- menus.addItemByPath("File/~", new ui.divider(), 600, plugin); | |
+ menus.addItemByPath("ファイル/~", new ui.divider(), 600, plugin); | |
- menus.addItemByPath("File/Save", new ui.item({ | |
+ menus.addItemByPath("ファイル/保存", new ui.item({ | |
command: "save" | |
}), 700, plugin); | |
- menus.addItemByPath("File/Save As...", new ui.item({ | |
+ menus.addItemByPath("ファイル/保存 As...", new ui.item({ | |
command: "saveas" | |
}), 800, plugin); | |
- menus.addItemByPath("File/Save All", new ui.item({ | |
+ menus.addItemByPath("ファイル/保存 All", new ui.item({ | |
command: "saveall" | |
}), 900, plugin); | |
- menus.addItemByPath("File/Revert to Saved", new ui.item({ | |
+ menus.addItemByPath("ファイル/保存済みに戻す", new ui.item({ | |
command: "reverttosaved" | |
}), 1000, plugin); | |
- menus.addItemByPath("File/Revert All to Saved", new ui.item({ | |
+ menus.addItemByPath("ファイル/すべて保存済みに戻す", new ui.item({ | |
command: "reverttosavedall" | |
}), 1100, plugin); | |
diff --git a/plugins/c9.ide.scm/scm.commit.js b/plugins/c9.ide.scm/scm.commit.js | |
index ad9ebf0..81a91b0 100644 | |
--- a/plugins/c9.ide.scm/scm.commit.js | |
+++ b/plugins/c9.ide.scm/scm.commit.js | |
@@ -633,9 +633,9 @@ define(function(require, exports, module) { | |
// Context Menu | |
// menuContext = new Menu({ items: [ | |
- // new MenuItem({ match: "file", class: "strong", caption: "Open Diff", onclick: openSelection }, plugin), | |
- // new MenuItem({ match: "file", caption: "Open", onclick: openSelectedFiles }, plugin), | |
- // new MenuItem({ match: "file", caption: "Reveal in File Tree", onclick: reveal }, plugin), | |
+ // new MenuItem({ match: "ファイル", class: "strong", caption: "Open Diff", onclick: openSelection }, plugin), | |
+ // new MenuItem({ match: "ファイル", caption: "Open", onclick: openSelectedFiles }, plugin), | |
+ // new MenuItem({ match: "ファイル", caption: "Reveal in File Tree", onclick: reveal }, plugin), | |
// ]}); | |
// opts.aml.setAttribute("contextmenu", menuContext.aml); | |
diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js | |
index d79e715..770b7f2 100644 | |
--- a/plugins/c9.ide.terminal/terminal.js | |
+++ b/plugins/c9.ide.terminal/terminal.js | |
@@ -173,12 +173,12 @@ define(function(require, exports, module) { | |
} | |
}), 200, handle); | |
- menus.addItemByPath("Window/New Terminal", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/新規ターミナル", new ui.item({ | |
command: "openterminal" | |
}), 30, handle); | |
- menus.addItemByPath("Window/Navigation/~", new ui.divider(), 1500, handle); | |
- menus.addItemByPath("Window/Navigation/Switch Between Editor and Terminal", new ui.item({ | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/~", new ui.divider(), 1500, handle); | |
+ menus.addItemByPath("ウインドウ/ナビゲーション/Switch Between Editor and Terminal", new ui.item({ | |
command: "switchterminal" | |
}), 1550, handle); | |
diff --git a/plugins/c9.ide.test/all.js b/plugins/c9.ide.test/all.js | |
index a0e6cc8..5b1f171 100644 | |
--- a/plugins/c9.ide.test/all.js | |
+++ b/plugins/c9.ide.test/all.js | |
@@ -440,7 +440,7 @@ define(function(require, exports, module) { | |
// Menu | |
menuContext = new Menu({ items: [ | |
- new MenuItem({ position: 100, command: "runtest", caption: "Run", class: "strong", hotkey: "Enter" }), | |
+ new MenuItem({ position: 100, command: "runtest", caption: "実行", class: "strong", hotkey: "Enter" }), | |
new MenuItem({ position: 200, command: "runtestwithcoverage", caption: "Run with Code Coverage", hotkey: "Shift-Enter" }), | |
new Divider({ position: 300 }), | |
new MenuItem({ position: 400, caption: "Open Test File", onclick: openTestFile, hotkey: "Space" }), | |
diff --git a/plugins/c9.ide.test/results.js b/plugins/c9.ide.test/results.js | |
index be1d3d2..0d783bc 100644 | |
--- a/plugins/c9.ide.test/results.js | |
+++ b/plugins/c9.ide.test/results.js | |
@@ -57,7 +57,7 @@ define(function(require, exports, module) { | |
}); | |
// Menus | |
- // menus.addItemByPath("Run/Test", new ui.item({ | |
+ // menus.addItemByPath("実行/Test", new ui.item({ | |
// command: "commands" | |
// }), 250, plugin); | |
diff --git a/plugins/c9.ide.test/test.js b/plugins/c9.ide.test/test.js | |
index e822b62..7192ad9 100644 | |
--- a/plugins/c9.ide.test/test.js | |
+++ b/plugins/c9.ide.test/test.js | |
@@ -331,10 +331,10 @@ define(function(require, exports, module) { | |
if (drawnMenu) return; | |
drawnMenu = true; | |
- menus.addItemByPath("Run/Run Test", new ui.item({ | |
+ menus.addItemByPath("実行/実行 Test", new ui.item({ | |
command: "runfocussedtest" | |
}), 1250, plugin); | |
- menus.addItemByPath("Run/Run Test with Code Coverage", new ui.item({ | |
+ menus.addItemByPath("実行/実行 Test with Code Coverage", new ui.item({ | |
command: "runfocussedtestwithcoverage" | |
}), 1260, plugin); | |
} | |
@@ -417,7 +417,7 @@ define(function(require, exports, module) { | |
// Buttons | |
btnRun = ui.insertByIndex(toolbar, new ui.splitbutton({ | |
- caption: "Run", | |
+ caption: "実行", | |
icon: "run.png", | |
skinset: "default", | |
skin: "c9-menu-btn", | |
diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js | |
index af26581..ef7e69f 100644 | |
--- a/plugins/c9.ide.tree/tree.js | |
+++ b/plugins/c9.ide.tree/tree.js | |
@@ -554,7 +554,7 @@ define(function(require, exports, module) { | |
menus.addItemByPath("context/tree/", mnuCtxTree, 0, plugin); | |
menus.addItemToMenu(mnuCtxTree, new ui.item({ | |
- match: "file", | |
+ match: "ファイル", | |
class: "strong", | |
caption: "Open", | |
onclick: openSelection | |
diff --git a/plugins/c9.ide.ui/menus.js b/plugins/c9.ide.ui/menus.js | |
index a619511..9904634 100644 | |
--- a/plugins/c9.ide.ui/menus.js | |
+++ b/plugins/c9.ide.ui/menus.js | |
@@ -195,7 +195,7 @@ define(function(require, exports, module) { | |
inited = true; | |
layout.initMenus(plugin); | |
- addItemByPath("View/Menu Bar", new ui.item({ | |
+ addItemByPath("ビュー/メニューバー", new ui.item({ | |
type: "check", | |
command: "toggleMenubar", | |
isAvailable: function() { | |
@@ -704,12 +704,12 @@ define(function(require, exports, module) { | |
* menus.setRootMenu("Edit", 200, plugin); | |
* | |
* // Add a divider to the Edit menu at position 300 | |
- * menus.addItemByPath("Edit/~", new Divider(), 300, plugin); | |
+ * menus.addItemByPath("編集/~", new Divider(), 300, plugin); | |
* | |
* // Add the cut, copy and paste menu items below the divider at positions 400 - 600 | |
- * menus.addItemByPath("Edit/Cut", new MenuItem({ command : "cut" }), 400, plugin); | |
- * menus.addItemByPath("Edit/Copy", new MenuItem({ command : "copy" }), 500, plugin); | |
- * menus.addItemByPath("Edit/Paste", new MenuItem({ command : "paste" }), 600, plugin); | |
+ * menus.addItemByPath("編集/切り取り", new MenuItem({ command : "cut" }), 400, plugin); | |
+ * menus.addItemByPath("編集/コピー", new MenuItem({ command : "copy" }), 500, plugin); | |
+ * menus.addItemByPath("編集/貼り付け", new MenuItem({ command : "paste" }), 600, plugin); | |
* | |
* You can visualize the index numbers that are used by the menus by | |
* starting Cloud9 with ?menus=1. This will show the index number as | |
@@ -795,19 +795,19 @@ define(function(require, exports, module) { | |
* Example: | |
* | |
* var item = new MenuItem({ command: "saveas" }); | |
- * menus.addItemByPath("File/Save As...", item, 400, plugin); | |
+ * menus.addItemByPath("ファイル/Save As...", item, 400, plugin); | |
* | |
* Your item will only show up if the higher elements are | |
* created. In the following example, the item won't show up, | |
* because the "Extra" item is not created. | |
* | |
* var item = new MenuItem({ command: "test" }); | |
- * menus.addItemByPath("File/Extra/Test", item, 100, plugin); | |
+ * menus.addItemByPath("ファイル/Extra/Test", item, 100, plugin); | |
* | |
* Any time after executing the code above you can create the | |
* "Extra" item: | |
* | |
- * menus.addItemByPath("File/Extra", null, 300, plugin); | |
+ * menus.addItemByPath("ファイル/Extra", null, 300, plugin); | |
* | |
* @param {String} path The captions of all elements | |
* that lead to the item to add, separated by a "/". | |
@@ -1509,4 +1509,4 @@ define(function(require, exports, module) { | |
Divider: Divider, | |
}); | |
} | |
-}); | |
\ No newline at end of file | |
+}); | |
diff --git a/plugins/c9.ide.ui/menus_test.js b/plugins/c9.ide.ui/menus_test.js | |
index 9c75fc4..7f989d3 100644 | |
--- a/plugins/c9.ide.ui/menus_test.js | |
+++ b/plugins/c9.ide.ui/menus_test.js | |
@@ -68,7 +68,9 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai) | |
var menubar = menus.getElement("menubar"); | |
expect.html(menubar, "invalid order") | |
- .text(/File[\s\S]*Edit[\s\S]*Selection[\s\S]*Find[\s\S]*View[\s\S]*Goto[\s\S]*Tools/); | |
+ // .text(/File[\s\S]*Edit[\s\S]*Selection[\s\S]*Find[\s\S]*View[\s\S]*Goto[\s\S]*Tools/); | |
+ .text(/ファイル[\s\S]*編集[\s\S]*Selection[\s\S]*検索[\s\S]*閲覧[\s\S]*移動[\s\S]*ツール/); | |
+ | |
expect(menubar.$ext.parentNode).to.ok; | |
@@ -77,11 +79,11 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai) | |
it('should create submenus stacked and ordered properly', function(done) { | |
var count = 0; | |
- menus.addItemByPath("File/~", new apf.divider(), 100, plugin); | |
- menus.addItemByPath("File/Quit", new apf.item({ | |
+ menus.addItemByPath("ファイル/~", new apf.divider(), 100, plugin); | |
+ menus.addItemByPath("ファイル/Quit", new apf.item({ | |
onclick: function() { count++; } | |
}), 200, plugin); | |
- menus.addItemByPath("File/Hello", new apf.item({ | |
+ menus.addItemByPath("ファイル/Hello", new apf.item({ | |
}), 10, plugin); | |
var menu = menus.expand("File"); | |
@@ -98,12 +100,12 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai) | |
it('should create submenus of depth 5', function(done) { | |
var count = 0; | |
- menus.addItemByPath("File/First", new apf.item(), plugin); | |
- menus.addItemByPath("File/First/Second", new apf.item(), plugin); | |
- menus.addItemByPath("File/First/Second/Third", new apf.item(), plugin); | |
- menus.addItemByPath("File/First/Second/Third/Fourth", new apf.item(), plugin); | |
+ menus.addItemByPath("ファイル/First", new apf.item(), plugin); | |
+ menus.addItemByPath("ファイル/First/Second", new apf.item(), plugin); | |
+ menus.addItemByPath("ファイル/First/Second/Third", new apf.item(), plugin); | |
+ menus.addItemByPath("ファイル/First/Second/Third/Fourth", new apf.item(), plugin); | |
- menus.addItemByPath("File/First/Second/Third/Fourth/Fifth", | |
+ menus.addItemByPath("ファイル/First/Second/Third/Fourth/Fifth", | |
new apf.item({ | |
onclick: function() { count++; } | |
}), 200, plugin); | |
@@ -216,4 +218,4 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai) | |
register(); | |
} | |
-}); | |
\ No newline at end of file | |
+}); | |
diff --git a/plugins/c9.ide.undo/undo.js b/plugins/c9.ide.undo/undo.js | |
index 871712b..811d536 100644 | |
--- a/plugins/c9.ide.undo/undo.js | |
+++ b/plugins/c9.ide.undo/undo.js | |
@@ -50,10 +50,10 @@ define(function(require, exports, module) { | |
bindKey: { mac: "Command-Shift-Z|Command-Y", win: "Ctrl-Shift-Z|Ctrl-Y" } | |
}, plugin); | |
- menus.addItemByPath("Edit/Undo", new apf.item({ | |
+ menus.addItemByPath("編集/元に戻す", new apf.item({ | |
command: "undo" | |
}), 100, plugin); | |
- menus.addItemByPath("Edit/Redo", new apf.item({ | |
+ menus.addItemByPath("編集/やり直し", new apf.item({ | |
command: "redo" | |
}), 200, plugin); | |
} | |
diff --git a/plugins/c9.ide.upload/upload.js b/plugins/c9.ide.upload/upload.js | |
index 84ffc81..ed42d46 100644 | |
--- a/plugins/c9.ide.upload/upload.js | |
+++ b/plugins/c9.ide.upload/upload.js | |
@@ -44,8 +44,8 @@ define(function(require, exports, module) { | |
loaded = true; | |
// Menus | |
- menus.addItemByPath("File/~", new ui.divider(), 1200, plugin); | |
- menus.addItemByPath("File/Upload Local Files...", new ui.item({ | |
+ menus.addItemByPath("ファイル/~", new ui.divider(), 1200, plugin); | |
+ menus.addItemByPath("ファイル/ファイルのアップロード", new ui.item({ | |
onclick: showUploadWindow | |
}), 1300, plugin); | |
diff --git a/plugins/c9.ide.welcome/welcome.js b/plugins/c9.ide.welcome/welcome.js | |
index 9c34f26..e301d87 100644 | |
--- a/plugins/c9.ide.welcome/welcome.js | |
+++ b/plugins/c9.ide.welcome/welcome.js | |
@@ -49,7 +49,7 @@ define(function(require, exports, module) { | |
if (loaded) return false; | |
loaded = true; | |
- menus.addItemByPath("Cloud9/Welcome Page", new ui.item({ | |
+ menus.addItemByPath("Cloud9/ようこそ", new ui.item({ | |
onclick: function() { tabManager.openEditor("welcome", true, function() {}); } | |
}), 320, handle); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment