Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331416 - Template variable description for all variables in org.eclipse.jface.text.templates.GlobalTemplateVariables are not getting localized on other than english builds
Summary: Template variable description for all variables in org.eclipse.jface.text.tem...
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-11-30 06:56 EST by Anshul CLA
Modified: 2010-11-30 08:42 EST (History)
2 users (show)

See Also:


Attachments
Picture showing translated description (13.31 KB, image/png)
2010-11-30 08:11 EST, Dani Megert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anshul CLA 2010-11-30 06:56:49 EST
Build Identifier: 3.6

resource bundle TextTemplateMessages.class is not picking right resource for other languages than English.

Reproducible: Always

Steps to Reproduce:
1. Use template variables in org.eclipse.jface.text.templates.GlobalTemplateVariables class
2. Change system language to non English
3. make sure to have nl1 plugin for org.eclipse.text
Strings mentioned for the description of the template variables such as dollar,time,user etc are still displayed in English
Comment 1 Dani Megert CLA 2010-11-30 07:31:06 EST
>2. Change system language to non English
Why language exactly? If you choose a language that's not in the nl pack then of course it won't work

>3. make sure to have nl1 plugin for org.eclipse.text
Which one did you use (please provide the download link).
Comment 2 Anshul CLA 2010-11-30 07:50:03 EST
Actually our product bundles nl1 jar. And other strings are getting localized however these are not. I tried Japanese and Deutsch both. attaching nl1 plugin that we use.

(In reply to comment #1)
> >2. Change system language to non English
> Why language exactly? If you choose a language that's not in the nl pack then
> of course it won't work
> 
> >3. make sure to have nl1 plugin for org.eclipse.text
> Which one did you use (please provide the download link).
Comment 3 Anshul CLA 2010-11-30 08:01:59 EST
The jar version i have is org.eclipse.text_3.5.0.v20100601-1300.jar
and nl1 is org.eclipse.text.nl1_3.6.0.v20091121043401.jar

May be this is the issue ?

(In reply to comment #2)
> Actually our product bundles nl1 jar. And other strings are getting localized
> however these are not. I tried Japanese and Deutsch both. attaching nl1 plugin
> that we use.
> 
> (In reply to comment #1)
> > >2. Change system language to non English
> > Why language exactly? If you choose a language that's not in the nl pack then
> > of course it won't work
> > 
> > >3. make sure to have nl1 plugin for org.eclipse.text
> > Which one did you use (please provide the download link).
Comment 4 Dani Megert CLA 2010-11-30 08:10:24 EST
(In reply to comment #3)
> The jar version i have is org.eclipse.text_3.5.0.v20100601-1300.jar
> and nl1 is org.eclipse.text.nl1_3.6.0.v20091121043401.jar
> 
> May be this is the issue
No clue since I don't know where you got  org.eclipse.text.nl1_3.6.0.v20091121043401.jar.

This works fine for me using
http://www.eclipse.org/downloads/download.php?file=/technology/babel/babel_language_packs/R0.8.0/BabelLanguagePack-eclipse-de_3.6.0.v20100814043401.zip

with -nl de.
Comment 5 Dani Megert CLA 2010-11-30 08:11:02 EST
Created attachment 184119 [details]
Picture showing translated description
Comment 6 Anshul CLA 2010-11-30 08:41:22 EST
thanks looks like packaging issue.
you can close this bug.

(In reply to comment #5)
> Created an attachment (id=184119) [details]
> Picture showing translated description
Comment 7 Dani Megert CLA 2010-11-30 08:42:55 EST
.