Community
Participate
Working Groups
Build Identifier: Eclipse Platform-3.6.2.r362_v20110210 onwards We had used Eclipse for developing a Eclipse based RCP application and had localised it for zh locale as well. The About dialog picks up the application name from the plugin.xml (locale file) and pre-pends \u5173\u4e8e to it. However there is no space between the locale string and the application name. On we trying to add space, since it is in a .properties file, the white-space is getting ignored. I would request either a fix or a work-around for this problem. Thanks Reproducible: Always Steps to Reproduce: 1. Build a basic Eclipse RCP application and translated to zh_CN locale with About dialog extension point used (org.eclipse.ui.help.aboutAction) and customised for the sample application. 2. Launch the application in zh_CN locale. 3. Launch the About dialog and check the dialog title reading as \u5173\u4e8e<ApplicationName> P.S : I am not able to type the characters since my machine works in English locale and hence providing the unicode equivalents.
Created attachment 202202 [details] The actual string in About dialog which is pre-pended without space with the application name The actual string in About dialog which is pre-pended without space with the application name
I'm wondering if you could use a unicode space character in the properties file to force the appending of a space?
Hi Remy, Since the same product name string is being used in both the Application title as well as the about dialog application name, adding additional space using unicode would show up as space between the icon and application name in the main application title and this would be seen as regression. That was the reason why were were not able to pursue the work-around. Is there a way to specify to Eclipse to use a different string for application title and that of about dialog title? This can help us separate the two (one with space for about dialog and another without for the main application title) and thereby continue using the work-around. Thanks
The current code is: newShell.setText(NLS.bind(WorkbenchMessages.AboutDialog_shellTitle,productName )); the text in the messages.properties file is AboutDialog_shellTitle = About {0} So (in english at least) there is a space... Shankar, could you look to make sure that there's a space in the ZN version of the messages.properties between the text and the opening { ? path /org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/messages.properties It may be that there's been a mis-translation of the workbench text for this locale...
(In reply to comment #4) > The current code is: > > > newShell.setText(NLS.bind(WorkbenchMessages.AboutDialog_shellTitle,productName > )); > > the text in the messages.properties file is > > AboutDialog_shellTitle = About {0} > > So (in english at least) there is a space... > > Shankar, could you look to make sure that there's a space in the ZN version of > the messages.properties between the text and the opening { ? > > path /org.eclipse.ui.workbench/Eclipse > UI/org/eclipse/ui/internal/messages.properties > > It may be that there's been a mis-translation of the workbench text for this > locale... The english properties file has the change as you had mentioned in the plugins integrated in the product. (Below) AboutAction_text = &About {0} Hi Eric, Please find the values of zh languahes messages_zh.properties AboutAction_text=\u5173\u4E8E {0}(&A) messages_zh_TW.properties AboutAction_text=\u95DC\u65BC {0}(&A) messages_zh_HK.properties AboutAction_text=\u95DC\u65BC {0}(&A) I am not sure why then it is not coming in the display. I had taken these changes from the org.eclipse.ui.workbench.nl1_3.5.2.v201002231411.jar file integrated with the product. Please let me know if there is some other input which you think might be useful. Regards Shankar
Created attachment 205473 [details] Jar file for nl used by product Check the Jar file attached containing the strings for zh languages
Shankar, If you create an SWT snippet using the translated text in a Label does it exhibit the same behavior. I'm just wondering whether SWT has a issue with that particular string. You might be able to get the string by putting a breakpoint on the part of the AboutDialog code that is setting the text. If there's a variable containing it you can copy the text directly from the Variables View...
(In reply to comment #7) > Shankar, If you create an SWT snippet using the translated text in a Label does > it exhibit the same behavior. I'm just wondering whether SWT has a issue with > that particular string. > > You might be able to get the string by putting a breakpoint on the part of the > AboutDialog code that is setting the text. If there's a variable containing it > you can copy the text directly from the Variables View... Hi, I have put the string's unicode equivalent as \u5173\u4e8e in the issue title itself.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag.