Bug 102294 - [templates] Use $nl$ in the path to the template translations - TVT 3.1 - TCT 478
Summary: [templates] Use $nl$ in the path to the template translations - TVT 3.1 - TCT...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: JDT-Text-Inbox CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 07:12 EDT by Tom Hofmann CLA Friend
Modified: 2005-09-02 12:10 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA Friend 2005-06-30 07:12:03 EDT
Our usage of the templates extension point specifies include files and their
translatable properties - we should use $nl$ in the path to the properties file
in order to enable translations.
Comment 1 Amy Wu CLA Friend 2005-07-11 12:32:31 EDT
fyi, i just opened bug 103345 which points out using $nl$ does not work 
for .properties files.
Comment 2 Kit Lo CLA Friend 2005-08-15 12:08:30 EDT
This has been marked as must fix for translation sign off.
Translated JDT templates cannot be displayed.
Please change severity to major and add "TVT 3.1 - TCT 478" to the summary. 
Thanks.
Comment 3 Dani Megert CLA Friend 2005-08-15 13:31:51 EDT
I've already fixed in the R3_1_maintenance branch and it will be in the next
M-build.

IMPORTANT NOTE TO THE TRANSLATORS: the translation files are not treated as
resource bundles and hence the file name has to be left as (at least until bug
103345 has been fixed) is i.e. do not add the locale to the name. The translated
files must be in the 'nl' directory i.e. if a <plugin> defines a template
translations file in its plugin.xml like:
...
  translations=$nl$/<plugin-relative path to file>
...
then the translations must go into:
<plugin's nl fragment>\nl\<locale>\templates\<plugin-relative path to file>
Comment 4 Markus Keller CLA Friend 2005-09-02 11:40:26 EDT
start verifying...
Comment 5 Markus Keller CLA Friend 2005-09-02 12:10:24 EDT
Verified in M20050831-1200 + ZRH plugins from R3_1_maintenance that file
/nl/geek/templates/default-templates.properties is picked up in a fragment with
the "geek" locale.

Added "TVT 3.1 - TCT 478" to summary as requested in comment 2.