diff --git a/NOTICE b/NOTICE index 0d6c0299..b6c2fe73 100644 --- a/NOTICE +++ b/NOTICE @@ -6,6 +6,10 @@ contributors as part of the IntelliJ Platform (https://github.com/JetBrains/inte https://github.com/JetBrains/intellij-plugins), licensed under the Apache License 2.0. Copyright 2000-2026 JetBrains s.r.o. and contributors. +Some Simplified Chinese UI terms follow the Visual Studio Code Simplified Chinese +language pack (https://github.com/microsoft/vscode-loc), Copyright (c) Microsoft +Corporation, licensed under the MIT License. + OpenIDEA is not affiliated with, endorsed by or sponsored by JetBrains s.r.o. IntelliJ and IntelliJ IDEA are trademarks of JetBrains s.r.o. diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index 8b25ee29..202e475b 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -250,3 +250,42 @@ 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. ``` + + +## Chinese UI terminology from Visual Studio Code + +Some Simplified Chinese terms in `src/platform/locales/text/zh.json` follow the +wording of the Visual Studio Code Simplified Chinese language pack +([microsoft/vscode-loc](https://github.com/microsoft/vscode-loc), MIT), e.g. +"未跟踪" (untracked), "合并冲突" (merge conflicts), "当前" (current), "已修改" +(modified), "已过时" (outdated), "中止" (abort), "正在卸载" (uninstalling), +"深色" / "浅色" (dark / light) and "只读" (read-only). The remaining translations +are written for this project. + +``` +Visual Studio Code Localization Packs + +Copyright (c) Microsoft Corporation + +All rights reserved. + +MIT License + +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 +``` diff --git a/src/editor/core/view/Banner.tsx b/src/editor/core/view/Banner.tsx index daa147df..c8891131 100644 --- a/src/editor/core/view/Banner.tsx +++ b/src/editor/core/view/Banner.tsx @@ -3,6 +3,7 @@ import { Icon, T } from "@/ui"; import { useEditorBanners, type EditorBannerContribution } from "@/workbench/contributions"; import { useDocMeta } from "../model/document"; import styles from "./EditorArea.module.css"; +import { tx } from "@/platform/i18n"; const TEXT = { binary: "This file appears to be binary and is shown read-only.", @@ -30,7 +31,7 @@ export function VirtualBanner({ decompiled, description }: { decompiled: boolean