| Summary: | XText is not NL-enabled | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Samantha Chan <chanskw> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow, sven.efftinge, tmf.xtext-inbox |
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Samantha Chan
Hi Samantha, I've exernalized the mentioned string in ToggleSLCommentAction. Could you please list any other hard coded strings you found? (In reply to comment #1) > Could you please list any other hard coded strings you found? There are soem progress-monitor messages hard-coded in the builder bundle. If you run the Externalize Strings wizard, you will see a list of hard-coded strings in your plugins. The wizard works for both Java source and plugin.xml. Basically, all human-readable strings need to be externalized, including action labels, tooltips, dialog labels, error messages, etc. If you go through all the strings in the wizard, that should get your plugins NL-enabled. I have not run the wizard recently to see what other strings are not externalized. I will take another look in the next few days. Thanks. Samantha Of course we know the Externalize Strings tool and used it to externalize the messages we consider to be read by the users of Xtext editors. Note that about 95% of our strings are not displayed to the user in the UI: They are technical or appear e.g. as exception messages (in the log only). To keep our code readable, we deliberately decided *not* to add NON-NLS messages so the tool is not too much help for us. I've externalized the strings in o.e.x.builder. If you spot more non-internationalzed messages in the UI, feel free to reopen this bug. Thank you. I ran through the externalize string wizard with this version of the plugin - 1.0.0.v201006010502 and here's what I found: org.eclipse.xtext.ui: DirtyStateEditorSupport - found error messages not externalized DocumentBasedDirtyResource - found error messages not externalized. Not sure if these exceptions are caught and display in error dialogs. UpdateEditorImageJob - job label not externalized - if this is not a system job, this will show up in the progress monitor PreferenceConstants - EDITOR_NODE_NAME - does this show up in the preference node? XTextReconciler ToggleSLCommentAction - error message OpenXtextElementHandler - error message - not sure if exception is caught and if msg will be shown to user JavaProjectFactory - "Configure java project" - think this will show up in progress monitor XtextNewProjectWizard - message dialog title org.eclipse.xtext.builderstate MarkerUpdaterImpl - submonitor may show up in progress monitor ResourceDescriptionUpdator - submonitor strings PersistableResourceDescriptionsImpl - submonitor strings TobeBuiltConverter - submonitor strings XTextBuilder - monitor strings ProjectOpenedOrClosedListener - job title string BuildScheduler - job title string NatureAddingEditorCallBack - dialog strings (In reply to comment #5) typo: The second plugin is this: org.eclipse.xtext.builder ... > Thank you. > > I ran through the externalize string wizard with this version of the plugin - > 1.0.0.v201006010502 and here's what I found: > > org.eclipse.xtext.ui: > DirtyStateEditorSupport - found error messages not externalized > DocumentBasedDirtyResource - found error messages not externalized. Not sure > if these exceptions are caught and display in error dialogs. > UpdateEditorImageJob - job label not externalized - if this is not a system > job, this will show up in the progress monitor > PreferenceConstants - EDITOR_NODE_NAME - does this show up in the preference > node? > XTextReconciler > ToggleSLCommentAction - error message > OpenXtextElementHandler - error message - not sure if exception is caught and > if msg will be shown to user > JavaProjectFactory - "Configure java project" - think this will show up in > progress monitor > XtextNewProjectWizard - message dialog title > > > org.eclipse.xtext.builderstate > MarkerUpdaterImpl - submonitor may show up in progress monitor > ResourceDescriptionUpdator - submonitor strings > PersistableResourceDescriptionsImpl - submonitor strings > TobeBuiltConverter - submonitor strings > XTextBuilder - monitor strings > ProjectOpenedOrClosedListener - job title string > BuildScheduler - job title string > NatureAddingEditorCallBack - dialog strings Fixed in HEAD. Closing bug which were set to RESOLVED before Eclipse Neon.0. |