RFR: 8373119: JDK 26 RDP1 L10n resource files update [v2]

Weijun Wang weijun at openjdk.org
Fri Dec 12 23:53:59 UTC 2025


On Fri, 12 Dec 2025 22:34:10 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

>> Open l10n drop. Files have been updated with translated versions.
>
> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revert Chinese preview change

src/java.base/share/classes/sun/launcher/resources/launcher_zh_CN.properties line 53:

> 51: java.launcher.cls.error4=错误: 加载主类 {0} 时出现 LinkageError\n\t{1}
> 52: java.launcher.cls.error5=错误: 无法初始化主类 {0}\n原因: {1}: {2}
> 53: java.launcher.cls.error6=错误:在类 {0} 中未找到 non-private 零参数构造器\n请从现有构造器中删除 private,或者定义为:\n   public {0}()

Shall we translate "non-private" into Chinese?

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler_zh_CN.properties line 1637:

> 1635: # 0: symbol, 1: file object
> 1636: # lint: classfile
> 1637: compiler.warn.inconsistent.inner.classes={1} 中 {0} 的 InnerClasses 属性与源代码不一致\n(可能需要使用 {0} 重新编译 {1})

I am a little unsure of this. The English value has "({1} may need to be recompiled with {0})", which can be interpreted as "compiling 1 along with 0" but the Chinese translation sounds like "compiling 1 using 0". I tried to find where this is used but cannot.

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets_zh_CN.properties line 251:

> 249: doclet.filter_table_of_contents=筛选目录
> 250: doclet.filter_reset=重置
> 251: doclet.sort_table_of_contents=按字典顺序对成员详细信息进行排序

Seems incorrectly copied from line 244.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28802#discussion_r2615834067
PR Review Comment: https://git.openjdk.org/jdk/pull/28802#discussion_r2615850080
PR Review Comment: https://git.openjdk.org/jdk/pull/28802#discussion_r2615854313


More information about the core-libs-dev mailing list