Skip to content

adding localisation support - merging into 23.0 release branch #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
netbeans/
.DS_STORE
.idea/
30 changes: 30 additions & 0 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10396,6 +10396,36 @@ SOFTWARE.
------------------ END OF DEPENDENCY LICENSE --------------------


Dependency: VS Code tooling for localizing Visual Studio Code extensions
========================================================================

------------------ START OF DEPENDENCY LICENCE --------------------
- @vscode/l10n

MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

------------------ END OF DEPENDENCY LICENCE --------------------


Dependency: VS Code Debug Protocol and Debug Adapter
====================================================
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
patches/rename-debugger.diff
patches/remove-db.diff
patches/nbjavac-not-required.diff
patches/l10n-liscence.diff
</string>
<filterchain>
<tokenfilter delimoutput=" ">
Expand Down
27 changes: 27 additions & 0 deletions patches/l10n-liscence.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
new file mode 100644
index 0000000000..9e841e7a26
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/@vscode/l10n-0.0.18-license
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
92 changes: 92 additions & 0 deletions vscode/l10n/bundle.l10n.en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{

"jdk.downloader.heading": "JDK Downloader",

"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>",

"jdk.downloader.button.label.oracleJdk": "Download Oracle Java SE JDK",
"jdk.downloader.label.or": "or",
"jdk.downloader.button.label.openJdk": "Download Oracle OpenJDK",
"jdk.downloader.button.label.selectJdkFromSystem": "Select installed JDK from my system",
"jdk.downloader.label.selectOracleJdkVersion": "Select Oracle Java SE Version",
"jdk.downloader.label.detectedOs": "Detected OS",
"jdk.downloader.label.windows": "Microsoft Windows",
"jdk.downloader.label.mac": "macOS",
"jdk.downloader.label.linux": "Linux",
"jdk.downloader.label.detectedMachineArchitecture": "Detected Machine Architecture",
"jdk.downloader.button.label.downloadAndInstall": "Install and start setup",
"jdk.downloader.label.selectOpenJdkVersion": "Select Oracle OpenJDK Version",
"jdk.downloader.message.downloadingAndCompletingSetup": "Downloading and completing setup of {jdkType} {jdkVersion}...",
"jdk.downloader.message.downloadCompleted":"{jdkType} {jdkVersion} for {osType} download completed!",
"jdk.downloader.error_message.whileSavingFile": "Error while saving the file: {error}",
"jdk.downloader.error_message.whileDownloading": "Error while downloading the : {jdkType} {error}",
"jdk.downloader.message.downloadFailed": "{jdkType} {jdkVersion} for {osType} download failed, wrong checksum.",
"jdk.downloader.error_message.downloadFailedHttpError": "HTTP Error {statusCode} - {statusMessage}",
"jdk.downloader.error_message.jdkExtractionError": "Error: {error}",
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"Cannot install {jdkType} {jdkVersion}. Cannot delete {newDirName}",
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name} is already present. Do you want to delete it and create with new contents?",
"jdk.downloader.message.confirmation.yes":"Yes",
"jdk.downloader.message.confirmation.no":"No",
"jdk.downloader.label.selectJdk":"Select installed JDK",
"jdk.downloader.label.installJdk": "Install in selected location",
"jdk.downloader.message.noLocationSelected": "No location selected.",
"jdk.downloader.message.completedInstallingJdk": "Completed installing JDK. Please reload Visual Studio Code to enable it.",
"jdk.downloader.message.addedJdkPath": "Added JDK Path to the configuration settings. Please reload Visual Studio Code to enable it.",
"jdk.downloader.message.reload": "Reload now",
"jdk.explorer.error_message":"Cannot delete node {label}",
"jdk.extension.label.openInNewWindow": "Open in new window",
"jdk.extension.label.addToWorkSpace": "Add to current workspace",
"jdk.extension.message.newProjectCreated": "New project created",
"jdk.extension.fileSelector.label.selectFiles": "Select files to open",
"jdk.extension.fileSelector.label.testFilesOrSourceFiles": "Test files or source files associated to each other",
"jdk.extension.fileSelector.label.noFileSelected": "No file selected",
"jdk.extension.fileSelector.label.noTestFound": "No Test or Tested class found",
"jdk.extension.cache.message.confirmToDeleteCache": "Are you sure you want to delete cache for this workspace?",
"jdk.extension.cache.label.confirmation.yes":"Yes",
"jdk.extension.cache.label.confirmation.cancel":"Cancel",
"jdk.extension.cache.message.cacheCleared":"Cache cleared successfully for this workspace",
"jdk.extension.cache.label.reloadWindow":"Reload window",
"jdk.extension.cache.message.noUserDir":"Cannot find userdir path",
"jdk.extension.command.progress.compilingWorkSpace": "Compiling workspace...",
"jdk.extension.command.progress.compilingProject": "Compiling...",
"jdk.extension.command.progress.cleaningWorkSpace": "Cleaning workspace...",
"jdk.extension.command.progress.cleaningProject": "Cleaning...",
"jdk.extension.command.progress.quickOpen": "Opening type...",
"jdk.extension.command.quickPick.placeholder.surroundWith": "Surround with ...",
"jdk.extension.command.statusBar.message.restartingServer": "Restarting {SERVER_NAME}",
"jdk.extension.lspServer.statusBar.message.launching": "Launching {SERVER_NAME} with {requiredJdk} and userdir {userdir}",
"jdk.extension.lspServer.warning_message.serverExited": "{SERVER_NAME} exited with {code}",
"jdk.extension.lspServer.message.noJdkFound": "No JDK found!",
"jdk.extension.lspServer.label.downloadAndSetup": "Download JDK and setup automatically",
"jdk.extension.lspServer.error_message": "Error initializing {reason}",
"jdk.extension.nbjavac.message.supportedVersionRequired": "Supported version of javac needed. Please either enable the nb-javac library, or use JDK 22+",
"jdk.extension.nbjavac.label.enableNbjavac": "Enable the nb-javac library",
"jdk.extension.nbjavac.label.openSettings": "Open settings",
"jdk.extension.javaSupport.label.installGpl": "Install GPLv2+CPEx code",
"jdk.extension.javaSupport.message.needAdditionalSupport": "Additional Java Support is needed",
"jdk.extension.runConfig.label.updateExistingLaunchJson": "Update the existing launch.json file(s)",
"jdk.extension.runConfig.warning_message.renamedDebugConfig": "Java 8+ debug configuration has been renamed to Java+",
"jdk.extension.runConfig.default.label":"<default>",
"jdk.extension.runConfig.example.label":"Example: {data}",
"jdk.extension.runConfig.arguments.label": "Arguments:",
"jdk.extension.runConfig.arguments.prompt": "Customize arguments",
"jdk.extension.runConfig.vmoptions.label": "VM Options:",
"jdk.extension.runConfig.vmoptions.prompt": "Customize VM options",
"jdk.extension.runConfig.env.label": "Environment:",
"jdk.extension.runConfig.env.prompt": "Customize environment variables",
"jdk.extension.runConfig.wrkdir.label": "Working Dir:",
"jdk.extension.runConfig.wrkdir.prompt": "Customize working directory",
"jdk.extenstion.notInstalled.label":"Extension not installed.",
"jdk.extenstion.error_msg.clientNotAvailable":"Client not available",
"jdk.extenstion.progressBar.error_msg.cannotRun":"cannot run ${lsCommand}; client is ${client}",
"jdk.extenstion.error_msg.doesntSupportNewTeamplate":"Client ${client} doesn't support new from template",
"jdk.extenstion.error_msg.doesntSupportNewProject":"Client ${client} doesn't support new project",
"jdk.extenstion.error_msg.doesntSupportGoToTest":"Client ${client} doesn't support go to test",
"jdk.extenstion.error_msg.noSuperImpl":"No super implementation found",
"jdk.extenstion.error_msg.cacheDeletionError":"Error deleting the cache",
"jdk.extenstion.message.cacheDeleted":"Cache deleted successfully",
"jdk.extenstion.cache.error_msg.cannotFindWrkSpacePath":"Cannot find workspace path",
"jdk.extenstion.debugger.error_msg.debugAdapterNotInitialized":"Oracle Java SE Debug Server Adapter not yet initialized. Please wait for a while and try again.",
"jdk.workspace.new.prompt": "Input the directory path where the new file will be generated"

}
76 changes: 76 additions & 0 deletions vscode/l10n/bundle.l10n.ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{

"jdk.downloader.heading": "JDKダウンローダ",

"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>",

"jdk.downloader.button.label.oracleJdk": "Oracle Java SE JDKのダウンロード",
"jdk.downloader.label.or": "または",
"jdk.downloader.button.label.openJdk": "Oracle OpenJDKのダウンロード",
"jdk.downloader.button.label.selectJdkFromSystem": "システムからインストール済JDKの選択",
"jdk.downloader.label.selectOracleJdkVersion": "Oracle Java SEバージョンの選択",
"jdk.downloader.label.detectedOs": "検出済OS",
"jdk.downloader.label.windows": "Microsoft Windows",
"jdk.downloader.label.mac": "macOS",
"jdk.downloader.label.linux": "Linux",
"jdk.downloader.label.detectedMachineArchitecture": "検出済マシン・アーキテクチャ",
"jdk.downloader.button.label.downloadAndInstall": "インストールおよび設定の開始",
"jdk.downloader.label.selectOpenJdkVersion": "Oracle OpenJDKバージョンの選択",
"jdk.downloader.message.downloadingAndCompletingSetup": "{jdkType} {jdkVersion}の設定をダウンロードおよび完了しています...",
"jdk.downloader.error_message.whileSavingFile": "ファイルの保存中にエラーが発生しました:{error}",
"jdk.downloader.error_message.whileDownloading": "ダウンロード中にエラーが発生しました: {jdkType} {error}",
"jdk.downloader.message.downloadFailed": "{osType}用の{jdkType} {jdkVersion}のダウンロードに失敗しました。間違ったチェックサム。",
"jdk.downloader.error_message.downloadFailedHttpError": "HTTPエラー{statusCode} - {statusMessage}",
"jdk.downloader.error_message.jdkExtractionError": "エラー: {error}",
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"{jdkType} {jdkVersion}をインストールできません。{newDirName}を削除できません",
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name}はすでに存在しています。削除して新しいコンテンツを作成しますか。",
"jdk.downloader.message.confirmation.yes":"はい",
"jdk.downloader.message.confirmation.no":"いいえ",
"jdk.downloader.label.selectJdk":"インストール済JDKの選択",
"jdk.downloader.label.installJdk": "選択した場所にインストール",
"jdk.downloader.message.noLocationSelected": "場所が選択されていません",
"jdk.downloader.message.completedInstallingJdk": "JDKのインストールが完了しました。有効にするには、Visual Studio Codeをリロードしてください。",
"jdk.downloader.message.addedJdkPath": "構成設定にJDKパスを追加しました。有効にするには、Visual Studio Codeをリロードしてください。",
"jdk.downloader.message.reload": "すぐにリロード",
"jdk.explorer.error_message":"ノード{label}を削除できません",
"jdk.extension.label.openInNewWindow": "新規ウィンドウで開く",
"jdk.extension.label.addToWorkSpace": "現在のワークスペースに追加",
"jdk.extension.message.newProjectCreated": "作成された新規プロジェクト",
"jdk.extension.fileSelector.label.selectFiles": "開くファイルを選択",
"jdk.extension.fileSelector.label.testFilesOrSourceFiles": "互いに関連付けられているテスト・ファイルまたはソース・ファイル",
"jdk.extension.fileSelector.label.noFileSelected": "ファイルが選択されていません",
"jdk.extension.fileSelector.label.noTestFound": "テストまたはテスト済のクラスが見つかりません",
"jdk.extension.cache.message.confirmToDeleteCache": "このワークスペースのキャッシュを削除しますか。",
"jdk.extension.cache.label.confirmation.yes":"はい",
"jdk.extension.cache.label.confirmation.cancel":"取消",
"jdk.extension.cache.message.cacheCleared":"このワークスペースのキャッシュは正常に消去されました",
"jdk.extension.cache.label.reloadWindow":"ウィンドウのリロード",
"jdk.extension.cache.message.noUserDir":"userdirパスが見つかりません",
"jdk.extension.command.progress.compilingWorkSpace": "ワークスペースのコンパイル中...",
"jdk.extension.command.progress.compilingProject": "コンパイル中...",
"jdk.extension.command.progress.cleaningWorkSpace": "ワークスペースのクリーニング...",
"jdk.extension.command.progress.cleaningProject": "クリーニング...",
"jdk.extension.command.progress.quickOpen": "タイプを開く...",
"jdk.extension.command.quickPick.placeholder.surroundWith": "囲む...",
"jdk.extension.command.statusBar.message.restartingServer": "{SERVER_NAME}の再起動中",
"jdk.extension.lspServer.statusBar.message.launching": "{requiredJdk}およびuserdir {userdir}を使用して{SERVER_NAME}を起動",
"jdk.extension.lspServer.warning_message.serverExited": "{SERVER_NAME}は{code}で終了しました",
"jdk.extension.lspServer.message.noJdkFound": "JDKが見つかりません!",
"jdk.extension.lspServer.label.downloadAndSetup": "JDKをダウンロードして自動的に設定",
"jdk.extension.lspServer.error_message": "初期化中にエラーが発生しました {reason}",
"jdk.extension.nbjavac.message.supportedVersionRequired": "サポートされているバージョンのjavacが必要です。nb-javacライブラリを有効にするか、JDK 22+を使用してください",
"jdk.extension.nbjavac.label.enableNbjavac": "nb-javacライブラリの有効化",
"jdk.extension.nbjavac.label.openSettings": "設定を開く",
"jdk.extension.javaSupport.label.installGpl": "GPLv2+CPExコードのインストール",
"jdk.extension.javaSupport.message.needAdditionalSupport": "追加のJavaサポートが必要です",
"jdk.extension.runConfig.label.updateExistingLaunchJson": "既存のlaunch.jsonファイルの更新",
"jdk.extension.runConfig.warning_message.renamedDebugConfig": "Java 8+デバッグ構成はJava+に名前変更されています",
"jdk.extension.runConfig.arguments.label": "引数:",
"jdk.extension.runConfig.arguments.prompt": "引数のカスタマイズ",
"jdk.extension.runConfig.vmoptions.label": "VMオプション:",
"jdk.extension.runConfig.vmoptions.prompt": "VMオプションのカスタマイズ",
"jdk.extension.runConfig.env.label": "環境:",
"jdk.extension.runConfig.env.prompt": "環境変数のカスタマイズ",
"jdk.extension.runConfig.wrkdir.label": "作業ディレクトリ:",
"jdk.extension.runConfig.wrkdir.prompt": "作業ディレクトリのカスタマイズ"
}
Loading