On Tue, 24 Jan 2023 22:20:22 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:

>> src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/messages_zh_CN.properties
>>  line 174:
>> 
>>> 172: 
>>> MBEANS_TAB_UNSUBSCRIBE_NOTIFICATIONS_BUTTON=\u53D6\u6D88\u8BA2\u9605(&U)
>>> 173: 
>>> MBEANS_TAB_UNSUBSCRIBE_NOTIFICATIONS_BUTTON_TOOLTIP=\u505C\u6B62\u76D1\u542C\u901A\u77E5
>>> 174: 
>>> MANAGE_HOTSPOT_MBEANS_IN_COLON_=\u7BA1\u7406\u4EE5\u4E0B\u4F4D\u7F6E\u7684 
>>> HotSpot MBean:
>> 
>> This looks like a prefix, so instead of removing the space, it should be 
>> replaced with `\u0020` like other locations.
>> Also, it seems that other l10n files (de, ja) do not seem to have spaces in 
>> the first place.
>
> OK, I can make the manual edit for this

This change was made because it was compared to the original 
messages.properties. In that file, the respective line is given as 
`MANAGE_HOTSPOT_MBEANS_IN_COLON_=Manage Hotspot MBeans in:` with no trailing 
space. That's why in this file, to ensure consistency, the trailing space was 
stripped.

I think either this space should be removed, or all 4 (en, ja, de, zh) should 
have the `\u0020` appended. I agree that since it is a prefix it would make 
sense for a space to be there, but there is no guarantee that what comes after, 
or even the code that loads the .properties file does not already handles that 
necessary space.

Should the space remain removed like in the English source file and the other 
l10n files, or do you think all 4 should be changed to add `\u0020`?

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

PR: https://git.openjdk.org/jdk20/pull/116

Reply via email to