Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331416

Summary: Template variable description for all variables in org.eclipse.jface.text.templates.GlobalTemplateVariables are not getting localized on other than english builds
Product: [Eclipse Project] Platform Reporter: Anshul <anshulg>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, pwebster
Version: 3.6Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Picture showing translated description none

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
.