Skip to content

Commit b124094

Browse files
authored
[JAVSCODE-253] localisation support - adding japanese and simplified chinese (#254)
1 parent 2f9b2f4 commit b124094

19 files changed

+769
-179
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/
22
netbeans/
33
.DS_STORE
4+
.idea/

THIRD_PARTY_LICENSES.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10396,6 +10396,36 @@ SOFTWARE.
1039610396
------------------ END OF DEPENDENCY LICENSE --------------------
1039710397

1039810398

10399+
Dependency: VS Code tooling for localizing Visual Studio Code extensions
10400+
========================================================================
10401+
10402+
------------------ START OF DEPENDENCY LICENCE --------------------
10403+
- @vscode/l10n
10404+
10405+
MIT License
10406+
10407+
Copyright (c) Microsoft Corporation.
10408+
10409+
Permission is hereby granted, free of charge, to any person obtaining a copy
10410+
of this software and associated documentation files (the "Software"), to deal
10411+
in the Software without restriction, including without limitation the rights
10412+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10413+
copies of the Software, and to permit persons to whom the Software is
10414+
furnished to do so, subject to the following conditions:
10415+
10416+
The above copyright notice and this permission notice shall be included in all
10417+
copies or substantial portions of the Software.
10418+
10419+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10420+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10421+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
10422+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10423+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10424+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
10425+
SOFTWARE
10426+
10427+
------------------ END OF DEPENDENCY LICENCE --------------------
10428+
1039910429

1040010430
Dependency: VS Code Debug Protocol and Debug Adapter
1040110431
====================================================

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
patches/rename-debugger.diff
5656
patches/remove-db.diff
5757
patches/nbjavac-not-required.diff
58+
patches/l10n-liscence.diff
5859
</string>
5960
<filterchain>
6061
<tokenfilter delimoutput=" ">

patches/l10n-liscence.diff

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/@vscode/l10n-0.0.18-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/@vscode/l10n-0.0.18-license
2+
new file mode 100644
3+
index 0000000000..9e841e7a26
4+
--- /dev/null
5+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/@vscode/l10n-0.0.18-license
6+
@@ -0,0 +1,21 @@
7+
+ MIT License
8+
+
9+
+ Copyright (c) Microsoft Corporation.
10+
+
11+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12+
+ of this software and associated documentation files (the "Software"), to deal
13+
+ in the Software without restriction, including without limitation the rights
14+
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
+ copies of the Software, and to permit persons to whom the Software is
16+
+ furnished to do so, subject to the following conditions:
17+
+
18+
+ The above copyright notice and this permission notice shall be included in all
19+
+ copies or substantial portions of the Software.
20+
+
21+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
+ SOFTWARE

vscode/l10n/bundle.l10n.en.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
3+
"jdk.downloader.heading": "JDK Downloader",
4+
5+
"jdk.downloader.html.details":"<p>This tool enables you to download either the latest Oracle Java SE JDK with <a href='https://www.java.com/freeuselicense'>Oracle No-Fee Terms and Conditions</a> or the Oracle OpenJDK builds under the <a href='https://openjdk.org/legal/gplv2+ce.html'>GNU Public License with ClassPath Exception</a></p> <p>It will then handle the installation and configuration on your behalf.</p> <p>This enables you to take full advantage of all the features offered by this extension.</p>",
6+
7+
"jdk.downloader.button.label.oracleJdk": "Download Oracle Java SE JDK",
8+
"jdk.downloader.label.or": "or",
9+
"jdk.downloader.button.label.openJdk": "Download Oracle OpenJDK",
10+
"jdk.downloader.button.label.selectJdkFromSystem": "Select installed JDK from my system",
11+
"jdk.downloader.label.selectOracleJdkVersion": "Select Oracle Java SE Version",
12+
"jdk.downloader.label.detectedOs": "Detected OS",
13+
"jdk.downloader.label.windows": "Microsoft Windows",
14+
"jdk.downloader.label.mac": "macOS",
15+
"jdk.downloader.label.linux": "Linux",
16+
"jdk.downloader.label.detectedMachineArchitecture": "Detected Machine Architecture",
17+
"jdk.downloader.button.label.downloadAndInstall": "Install and start setup",
18+
"jdk.downloader.label.selectOpenJdkVersion": "Select Oracle OpenJDK Version",
19+
"jdk.downloader.message.downloadingAndCompletingSetup": "Downloading and completing setup of {jdkType} {jdkVersion}...",
20+
"jdk.downloader.message.downloadCompleted":"{jdkType} {jdkVersion} for {osType} download completed!",
21+
"jdk.downloader.error_message.whileSavingFile": "Error while saving the file: {error}",
22+
"jdk.downloader.error_message.whileDownloading": "Error while downloading the : {jdkType} {error}",
23+
"jdk.downloader.message.downloadFailed": "{jdkType} {jdkVersion} for {osType} download failed, wrong checksum.",
24+
"jdk.downloader.error_message.downloadFailedHttpError": "HTTP Error {statusCode} - {statusMessage}",
25+
"jdk.downloader.error_message.jdkExtractionError": "Error: {error}",
26+
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"Cannot install {jdkType} {jdkVersion}. Cannot delete {newDirName}",
27+
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name} is already present. Do you want to delete it and create with new contents?",
28+
"jdk.downloader.message.confirmation.yes":"Yes",
29+
"jdk.downloader.message.confirmation.no":"No",
30+
"jdk.downloader.label.selectJdk":"Select installed JDK",
31+
"jdk.downloader.label.installJdk": "Install in selected location",
32+
"jdk.downloader.message.noLocationSelected": "No location selected.",
33+
"jdk.downloader.message.completedInstallingJdk": "Completed installing JDK. Please reload Visual Studio Code to enable it.",
34+
"jdk.downloader.message.addedJdkPath": "Added JDK Path to the configuration settings. Please reload Visual Studio Code to enable it.",
35+
"jdk.downloader.message.reload": "Reload now",
36+
"jdk.explorer.error_message":"Cannot delete node {label}",
37+
"jdk.extension.label.openInNewWindow": "Open in new window",
38+
"jdk.extension.label.addToWorkSpace": "Add to current workspace",
39+
"jdk.extension.message.newProjectCreated": "New project created",
40+
"jdk.extension.fileSelector.label.selectFiles": "Select files to open",
41+
"jdk.extension.fileSelector.label.testFilesOrSourceFiles": "Test files or source files associated to each other",
42+
"jdk.extension.fileSelector.label.noFileSelected": "No file selected",
43+
"jdk.extension.fileSelector.label.noTestFound": "No Test or Tested class found",
44+
"jdk.extension.cache.message.confirmToDeleteCache": "Are you sure you want to delete cache for this workspace?",
45+
"jdk.extension.cache.label.confirmation.yes":"Yes",
46+
"jdk.extension.cache.label.confirmation.cancel":"Cancel",
47+
"jdk.extension.cache.message.cacheCleared":"Cache cleared successfully for this workspace",
48+
"jdk.extension.cache.label.reloadWindow":"Reload window",
49+
"jdk.extension.cache.message.noUserDir":"Cannot find userdir path",
50+
"jdk.extension.command.progress.compilingWorkSpace": "Compiling workspace...",
51+
"jdk.extension.command.progress.compilingProject": "Compiling...",
52+
"jdk.extension.command.progress.cleaningWorkSpace": "Cleaning workspace...",
53+
"jdk.extension.command.progress.cleaningProject": "Cleaning...",
54+
"jdk.extension.command.progress.quickOpen": "Opening type...",
55+
"jdk.extension.command.quickPick.placeholder.surroundWith": "Surround with ...",
56+
"jdk.extension.command.statusBar.message.restartingServer": "Restarting {SERVER_NAME}",
57+
"jdk.extension.lspServer.statusBar.message.launching": "Launching {SERVER_NAME} with {requiredJdk} and userdir {userdir}",
58+
"jdk.extension.lspServer.warning_message.serverExited": "{SERVER_NAME} exited with {code}",
59+
"jdk.extension.lspServer.message.noJdkFound": "No JDK found!",
60+
"jdk.extension.lspServer.label.downloadAndSetup": "Download JDK and setup automatically",
61+
"jdk.extension.lspServer.error_message": "Error initializing {reason}",
62+
"jdk.extension.nbjavac.message.supportedVersionRequired": "Supported version of javac needed. Please either enable the nb-javac library, or use JDK 22+",
63+
"jdk.extension.nbjavac.label.enableNbjavac": "Enable the nb-javac library",
64+
"jdk.extension.nbjavac.label.openSettings": "Open settings",
65+
"jdk.extension.javaSupport.label.installGpl": "Install GPLv2+CPEx code",
66+
"jdk.extension.javaSupport.message.needAdditionalSupport": "Additional Java Support is needed",
67+
"jdk.extension.runConfig.label.updateExistingLaunchJson": "Update the existing launch.json file(s)",
68+
"jdk.extension.runConfig.warning_message.renamedDebugConfig": "Java 8+ debug configuration has been renamed to Java+",
69+
"jdk.extension.runConfig.default.label":"<default>",
70+
"jdk.extension.runConfig.example.label":"Example: {data}",
71+
"jdk.extension.runConfig.arguments.label": "Arguments:",
72+
"jdk.extension.runConfig.arguments.prompt": "Customize arguments",
73+
"jdk.extension.runConfig.vmoptions.label": "VM Options:",
74+
"jdk.extension.runConfig.vmoptions.prompt": "Customize VM options",
75+
"jdk.extension.runConfig.env.label": "Environment:",
76+
"jdk.extension.runConfig.env.prompt": "Customize environment variables",
77+
"jdk.extension.runConfig.wrkdir.label": "Working Dir:",
78+
"jdk.extension.runConfig.wrkdir.prompt": "Customize working directory",
79+
"jdk.extenstion.notInstalled.label":"Extension not installed.",
80+
"jdk.extenstion.error_msg.clientNotAvailable":"Client not available",
81+
"jdk.extenstion.progressBar.error_msg.cannotRun":"cannot run ${lsCommand}; client is ${client}",
82+
"jdk.extenstion.error_msg.doesntSupportNewTeamplate":"Client ${client} doesn't support new from template",
83+
"jdk.extenstion.error_msg.doesntSupportNewProject":"Client ${client} doesn't support new project",
84+
"jdk.extenstion.error_msg.doesntSupportGoToTest":"Client ${client} doesn't support go to test",
85+
"jdk.extenstion.error_msg.noSuperImpl":"No super implementation found",
86+
"jdk.extenstion.error_msg.cacheDeletionError":"Error deleting the cache",
87+
"jdk.extenstion.message.cacheDeleted":"Cache deleted successfully",
88+
"jdk.extenstion.cache.error_msg.cannotFindWrkSpacePath":"Cannot find workspace path",
89+
"jdk.extenstion.debugger.error_msg.debugAdapterNotInitialized":"Oracle Java SE Debug Server Adapter not yet initialized. Please wait for a while and try again.",
90+
"jdk.workspace.new.prompt": "Input the directory path where the new file will be generated"
91+
92+
}

vscode/l10n/bundle.l10n.ja.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
3+
"jdk.downloader.heading": "JDKダウンローダ",
4+
5+
"jdk.downloader.html.details":"<p>このツールは、<a href='https://www.java.com/freeuselicense'>Oracle No-Fee Terms and Conditions</a>の最新のOracle Java SE JDKまたは、<a href='https://openjdk.org/legal/gplv2+ce.html'>クラスパス例外付きGNU Public License</a>に基づいたOracle OpenJDKビルドのいずれかをダウンロードできます</p> <p>次に、インストールおよび構成をかわりに処理します。</p> <p>これにより、この拡張によって提供されたすべての機能を最大限活用できます。</p>",
6+
7+
"jdk.downloader.button.label.oracleJdk": "Oracle Java SE JDKのダウンロード",
8+
"jdk.downloader.label.or": "または",
9+
"jdk.downloader.button.label.openJdk": "Oracle OpenJDKのダウンロード",
10+
"jdk.downloader.button.label.selectJdkFromSystem": "システムからインストール済JDKの選択",
11+
"jdk.downloader.label.selectOracleJdkVersion": "Oracle Java SEバージョンの選択",
12+
"jdk.downloader.label.detectedOs": "検出済OS",
13+
"jdk.downloader.label.windows": "Microsoft Windows",
14+
"jdk.downloader.label.mac": "macOS",
15+
"jdk.downloader.label.linux": "Linux",
16+
"jdk.downloader.label.detectedMachineArchitecture": "検出済マシン・アーキテクチャ",
17+
"jdk.downloader.button.label.downloadAndInstall": "インストールおよび設定の開始",
18+
"jdk.downloader.label.selectOpenJdkVersion": "Oracle OpenJDKバージョンの選択",
19+
"jdk.downloader.message.downloadingAndCompletingSetup": "{jdkType} {jdkVersion}の設定をダウンロードおよび完了しています...",
20+
"jdk.downloader.error_message.whileSavingFile": "ファイルの保存中にエラーが発生しました:{error}",
21+
"jdk.downloader.error_message.whileDownloading": "ダウンロード中にエラーが発生しました: {jdkType} {error}",
22+
"jdk.downloader.message.downloadFailed": "{osType}用の{jdkType} {jdkVersion}のダウンロードに失敗しました。間違ったチェックサム。",
23+
"jdk.downloader.error_message.downloadFailedHttpError": "HTTPエラー{statusCode} - {statusMessage}",
24+
"jdk.downloader.error_message.jdkExtractionError": "エラー: {error}",
25+
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"{jdkType} {jdkVersion}をインストールできません。{newDirName}を削除できません",
26+
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name}はすでに存在しています。削除して新しいコンテンツを作成しますか。",
27+
"jdk.downloader.message.confirmation.yes":"はい",
28+
"jdk.downloader.message.confirmation.no":"いいえ",
29+
"jdk.downloader.label.selectJdk":"インストール済JDKの選択",
30+
"jdk.downloader.label.installJdk": "選択した場所にインストール",
31+
"jdk.downloader.message.noLocationSelected": "場所が選択されていません",
32+
"jdk.downloader.message.completedInstallingJdk": "JDKのインストールが完了しました。有効にするには、Visual Studio Codeをリロードしてください。",
33+
"jdk.downloader.message.addedJdkPath": "構成設定にJDKパスを追加しました。有効にするには、Visual Studio Codeをリロードしてください。",
34+
"jdk.downloader.message.reload": "すぐにリロード",
35+
"jdk.explorer.error_message":"ノード{label}を削除できません",
36+
"jdk.extension.label.openInNewWindow": "新規ウィンドウで開く",
37+
"jdk.extension.label.addToWorkSpace": "現在のワークスペースに追加",
38+
"jdk.extension.message.newProjectCreated": "作成された新規プロジェクト",
39+
"jdk.extension.fileSelector.label.selectFiles": "開くファイルを選択",
40+
"jdk.extension.fileSelector.label.testFilesOrSourceFiles": "互いに関連付けられているテスト・ファイルまたはソース・ファイル",
41+
"jdk.extension.fileSelector.label.noFileSelected": "ファイルが選択されていません",
42+
"jdk.extension.fileSelector.label.noTestFound": "テストまたはテスト済のクラスが見つかりません",
43+
"jdk.extension.cache.message.confirmToDeleteCache": "このワークスペースのキャッシュを削除しますか。",
44+
"jdk.extension.cache.label.confirmation.yes":"はい",
45+
"jdk.extension.cache.label.confirmation.cancel":"取消",
46+
"jdk.extension.cache.message.cacheCleared":"このワークスペースのキャッシュは正常に消去されました",
47+
"jdk.extension.cache.label.reloadWindow":"ウィンドウのリロード",
48+
"jdk.extension.cache.message.noUserDir":"userdirパスが見つかりません",
49+
"jdk.extension.command.progress.compilingWorkSpace": "ワークスペースのコンパイル中...",
50+
"jdk.extension.command.progress.compilingProject": "コンパイル中...",
51+
"jdk.extension.command.progress.cleaningWorkSpace": "ワークスペースのクリーニング...",
52+
"jdk.extension.command.progress.cleaningProject": "クリーニング...",
53+
"jdk.extension.command.progress.quickOpen": "タイプを開く...",
54+
"jdk.extension.command.quickPick.placeholder.surroundWith": "囲む...",
55+
"jdk.extension.command.statusBar.message.restartingServer": "{SERVER_NAME}の再起動中",
56+
"jdk.extension.lspServer.statusBar.message.launching": "{requiredJdk}およびuserdir {userdir}を使用して{SERVER_NAME}を起動",
57+
"jdk.extension.lspServer.warning_message.serverExited": "{SERVER_NAME}は{code}で終了しました",
58+
"jdk.extension.lspServer.message.noJdkFound": "JDKが見つかりません!",
59+
"jdk.extension.lspServer.label.downloadAndSetup": "JDKをダウンロードして自動的に設定",
60+
"jdk.extension.lspServer.error_message": "初期化中にエラーが発生しました {reason}",
61+
"jdk.extension.nbjavac.message.supportedVersionRequired": "サポートされているバージョンのjavacが必要です。nb-javacライブラリを有効にするか、JDK 22+を使用してください",
62+
"jdk.extension.nbjavac.label.enableNbjavac": "nb-javacライブラリの有効化",
63+
"jdk.extension.nbjavac.label.openSettings": "設定を開く",
64+
"jdk.extension.javaSupport.label.installGpl": "GPLv2+CPExコードのインストール",
65+
"jdk.extension.javaSupport.message.needAdditionalSupport": "追加のJavaサポートが必要です",
66+
"jdk.extension.runConfig.label.updateExistingLaunchJson": "既存のlaunch.jsonファイルの更新",
67+
"jdk.extension.runConfig.warning_message.renamedDebugConfig": "Java 8+デバッグ構成はJava+に名前変更されています",
68+
"jdk.extension.runConfig.arguments.label": "引数:",
69+
"jdk.extension.runConfig.arguments.prompt": "引数のカスタマイズ",
70+
"jdk.extension.runConfig.vmoptions.label": "VMオプション:",
71+
"jdk.extension.runConfig.vmoptions.prompt": "VMオプションのカスタマイズ",
72+
"jdk.extension.runConfig.env.label": "環境:",
73+
"jdk.extension.runConfig.env.prompt": "環境変数のカスタマイズ",
74+
"jdk.extension.runConfig.wrkdir.label": "作業ディレクトリ:",
75+
"jdk.extension.runConfig.wrkdir.prompt": "作業ディレクトリのカスタマイズ"
76+
}

0 commit comments

Comments
 (0)