Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Babel » Babel PTT
Babel PTT [message #26461] Wed, 08 April 2009 11:50 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi everyone,

as a member of the CDO component, we are trying to fulfill our
localization needs for the Galileo release. I'll try to expose here what
I've understood.

(Please correct me if wrong) The steps to properly prepare our project
for babel are:

1. Externalize all Strings that are subject to be shown in the UI from
our plugins (in our case, I expect only UI and Exceptions are subject to
be shown). Use JDT and PDE tooling to externalize strings.

2. Create a babel map. If I understand it correctly, this is kind of a
file that exposes which externalized Strings can be translated by the
Babel community. I saw this is done through a webapp. The first thing I
see is our project does not appear, which I understand since we are not
top level project under modeling, but rather under modeling.emf. How can
we add our component to this list? Is there anything we should do?

4. Perform PTT to see everything is fine?

How is exactly the Pseudo Translation Test performed? I believe I should
download the PTT plugin and then configure eclipse.ini to use it? Which
is the flag I should use? If I understood correctly:

a. Hard-coded strings don't have prefix
b. Externalized Strings have prefix. If the string has the prefix, what
does it exactly mean?

Question: where is the index file that maps prefix to file containing
the string?

Thanks in advance :D

Víctor.
Re: Babel PTT [message #26607 is a reply to message #26461] Mon, 13 April 2009 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

I too am interested in knowing how exactly to use the Babel PTT to satisfy
the localization should-do for DTP for the Galileo simultaneous release.
We're already good as far as getting everything into Babel (map files and so
on), but I can't find anything on the wiki or newsgroups or doing a Google
search to figure out what exactly is necessary to use the Babel PTT.

Any suggestions would be very helpful.

--Fitz

DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead

"V
Re: Babel PTT [message #26724 is a reply to message #26607] Mon, 13 April 2009 19:10 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
While I am not the best person to answer this, I managed to dig out this
mailing list posting. It may be a good start:

http://dev.eclipse.org/mhonarc/lists/babel-dev/msg00448.html


Denis

Brian Fitzpatrick wrote:
> I too am interested in knowing how exactly to use the Babel PTT to satisfy
> the localization should-do for DTP for the Galileo simultaneous release.
> We're already good as far as getting everything into Babel (map files and so
> on), but I can't find anything on the wiki or newsgroups or doing a Google
> search to figure out what exactly is necessary to use the Babel PTT.
>
> Any suggestions would be very helpful.
>
> --Fitz
>
> DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead
>
> "Víctor Roldán Betancort" <vroldan@opencanarias.com> wrote in message
> news:gri31v$pki$1@build.eclipse.org...
>> Hi everyone,
>>
>> as a member of the CDO component, we are trying to fulfill our
>> localization needs for the Galileo release. I'll try to expose here what
>> I've understood.
>>
>> (Please correct me if wrong) The steps to properly prepare our project for
>> babel are:
>>
>> 1. Externalize all Strings that are subject to be shown in the UI from our
>> plugins (in our case, I expect only UI and Exceptions are subject to be
>> shown). Use JDT and PDE tooling to externalize strings.
>>
>> 2. Create a babel map. If I understand it correctly, this is kind of a
>> file that exposes which externalized Strings can be translated by the
>> Babel community. I saw this is done through a webapp. The first thing I
>> see is our project does not appear, which I understand since we are not
>> top level project under modeling, but rather under modeling.emf. How can
>> we add our component to this list? Is there anything we should do?
>>
>> 4. Perform PTT to see everything is fine?
>>
>> How is exactly the Pseudo Translation Test performed? I believe I should
>> download the PTT plugin and then configure eclipse.ini to use it? Which is
>> the flag I should use? If I understood correctly:
>>
>> a. Hard-coded strings don't have prefix
>> b. Externalized Strings have prefix. If the string has the prefix, what
>> does it exactly mean?
>>
>> Question: where is the index file that maps prefix to file containing the
>> string?
>>
>> Thanks in advance :D
>>
>> Víctor.
>
>
Re: Babel PTT [message #26762 is a reply to message #26724] Tue, 14 April 2009 08:30 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi Denis,

thanks for pointing out this. I actually read this mail before posting
here, since I believe it does not answer the questions I've posted. Just
wanted to have everything clear before "babelizing" the CDO project :P

Cheers,
Víctor.

Denis Roy escribió:
> While I am not the best person to answer this, I managed to dig out this
> mailing list posting. It may be a good start:
>
> http://dev.eclipse.org/mhonarc/lists/babel-dev/msg00448.html
>
>
> Denis
>
> Brian Fitzpatrick wrote:
>> I too am interested in knowing how exactly to use the Babel PTT to
>> satisfy the localization should-do for DTP for the Galileo
>> simultaneous release. We're already good as far as getting everything
>> into Babel (map files and so on), but I can't find anything on the
>> wiki or newsgroups or doing a Google search to figure out what exactly
>> is necessary to use the Babel PTT.
>>
>> Any suggestions would be very helpful.
>>
>> --Fitz
>>
>> DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead
>>
>> "Víctor Roldán Betancort" <vroldan@opencanarias.com> wrote in message
>> news:gri31v$pki$1@build.eclipse.org...
>>> Hi everyone,
>>>
>>> as a member of the CDO component, we are trying to fulfill our
>>> localization needs for the Galileo release. I'll try to expose here
>>> what I've understood.
>>>
>>> (Please correct me if wrong) The steps to properly prepare our
>>> project for babel are:
>>>
>>> 1. Externalize all Strings that are subject to be shown in the UI
>>> from our plugins (in our case, I expect only UI and Exceptions are
>>> subject to be shown). Use JDT and PDE tooling to externalize strings.
>>>
>>> 2. Create a babel map. If I understand it correctly, this is kind of
>>> a file that exposes which externalized Strings can be translated by
>>> the Babel community. I saw this is done through a webapp. The first
>>> thing I see is our project does not appear, which I understand since
>>> we are not top level project under modeling, but rather under
>>> modeling.emf. How can we add our component to this list? Is there
>>> anything we should do?
>>>
>>> 4. Perform PTT to see everything is fine?
>>>
>>> How is exactly the Pseudo Translation Test performed? I believe I
>>> should download the PTT plugin and then configure eclipse.ini to use
>>> it? Which is the flag I should use? If I understood correctly:
>>>
>>> a. Hard-coded strings don't have prefix
>>> b. Externalized Strings have prefix. If the string has the prefix,
>>> what does it exactly mean?
>>>
>>> Question: where is the index file that maps prefix to file containing
>>> the string?
>>>
>>> Thanks in advance :D
>>>
>>> Víctor.
>>
>>
Re: Babel PTT [message #26798 is a reply to message #26762] Tue, 14 April 2009 15:45 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Víctor, let me try to answer your questions.

1. Externalize all Strings that are subject to be shown in the UI from our
plugins (in our case, I expect only UI and Exceptions are subject to be
shown). Use JDT and PDE tooling to externalize strings.

Answer: correct

2. Create a babel map. If I understand it correctly, this is kind of a
file that exposes which externalized Strings can be translated by the
Babel community. I saw this is done through a webapp. The first thing I
see is our project does not appear, which I understand since we are not
top level project under modeling, but rather under modeling.emf. How can
we add our component to this list? Is there anything we should do?

Answer: We pull the information from a data bridge to Eclipse Bugzilla. If
you don't see your project, please open a bug against Babel/Server.

4. Perform PTT to see everything is fine?

How is exactly the Pseudo Translation Test performed? I believe I should
download the PTT plugin and then configure eclipse.ini to use it? Which is
the flag I should use? If I understood correctly:

a. Hard-coded strings don't have prefix
b. Externalized Strings have prefix. If the string has the prefix, what
does it exactly mean?

Question: where is the index file that maps prefix to file containing the
string?

Answer: There are 2 ways to get the pseudo translation language packs,
either through the Babel update site, or the downlable zips. See
http://www.eclipse.org/babel/downloads.php for more info. After installing
the language packs, start Eclipse with -nl en_AA. After that, just run
your project normally. You will see most of the strings with a special
prefix like "eclipse123456:". If a string does not have a prefix, it
usually means the string is hard-coded in the code. The added length of
the prefix will help you test truncation problems. For example, if a
button is not coded correctly, the new label "eclipse123456:OK" will be
truncated. The prefix can also tell you which project does the string come
from. The index number can be used to locate the exact key in the
properties that it's coming from. The index file can be found in the
pesudo translation feature for the project. This is the path for the
Eclipse index file for example:
eclipse\features\org.eclipse.babel.nls_eclipse_en_AA_3.5.0.v 20090406043401\BabelPseudoTranslationsIndex-eclipse.html
Re: Babel PTT [message #26838 is a reply to message #26798] Tue, 14 April 2009 17:16 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

thanks you very much for your answer, things are more clear to me now. I
just submitted the bug to include CDO in Babel Map definition webapp
(see #272181). The pseudo test is also more clear now, I'll start
externalizing strings ASAP!

Cheers!
ViK

Kit Lo escribió:
> Víctor, let me try to answer your questions.
>
> 1. Externalize all Strings that are subject to be shown in the UI from
> our plugins (in our case, I expect only UI and Exceptions are subject to
> be shown). Use JDT and PDE tooling to externalize strings.
>
> Answer: correct
>
> 2. Create a babel map. If I understand it correctly, this is kind of a
> file that exposes which externalized Strings can be translated by the
> Babel community. I saw this is done through a webapp. The first thing I
> see is our project does not appear, which I understand since we are not
> top level project under modeling, but rather under modeling.emf. How can
> we add our component to this list? Is there anything we should do?
>
> Answer: We pull the information from a data bridge to Eclipse Bugzilla.
> If you don't see your project, please open a bug against Babel/Server.
>
> 4. Perform PTT to see everything is fine?
>
> How is exactly the Pseudo Translation Test performed? I believe I should
> download the PTT plugin and then configure eclipse.ini to use it? Which
> is the flag I should use? If I understood correctly:
>
> a. Hard-coded strings don't have prefix
> b. Externalized Strings have prefix. If the string has the prefix, what
> does it exactly mean?
>
> Question: where is the index file that maps prefix to file containing
> the string?
>
> Answer: There are 2 ways to get the pseudo translation language packs,
> either through the Babel update site, or the downlable zips. See
> http://www.eclipse.org/babel/downloads.php for more info. After
> installing the language packs, start Eclipse with -nl en_AA. After that,
> just run your project normally. You will see most of the strings with a
> special prefix like "eclipse123456:". If a string does not have a
> prefix, it usually means the string is hard-coded in the code. The added
> length of the prefix will help you test truncation problems. For
> example, if a button is not coded correctly, the new label
> "eclipse123456:OK" will be truncated. The prefix can also tell you which
> project does the string come from. The index number can be used to
> locate the exact key in the properties that it's coming from. The index
> file can be found in the pesudo translation feature for the project.
> This is the path for the Eclipse index file for example:
> eclipse\features\org.eclipse.babel.nls_eclipse_en_AA_3.5.0.v 20090406043401\BabelPseudoTranslationsIndex-eclipse.html
>
>
Re: Babel PTT [message #26996 is a reply to message #26798] Wed, 15 April 2009 16:02 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi Kit,

I just finished doing some part of the string externalization work, and
two questions has popped up in my mind, I hope you could answer:

- Does the used externalization mechanism matter for Babel? I mean, does
Babel require Messages class to extend NLS, or does it work as well with
the ResourceBundle way? We we were concerned about this issue because we
want CDO to run in standalone as well, and NLS seems to come from some
OSGi bundle...

- How can I launch an eclipse runtime instance with certain locale? I
managed to activate the pseudo locale in the first eclipse instance, but
when one I need to be with this local is the second. I've tried to use
arguments -nl ${target.nl:en_AA} and also with -nl en_AA in the launch
configurations, but none work. Does the pseudo transaction fragment need
to be installed in the second instance in some way for this to work? I
realized that fragments cannot be selected in the launch configuration
plugin list (they are just not listed there)

Cheers,
ViK.
Re: Babel PTT [message #27075 is a reply to message #26996] Mon, 20 April 2009 14:06 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Víctor,

- Either the NLS class or Java ResourceBundle way will work. The NLS class
is actually just a convenient wrapper of the Java ResourceBundle.

- "-nl en_AA" should work. In the launch configuration dialog, there is a
"Plug-ins" tab. You can select to load just the plugins in the workspace,
from the target platform, or both. Make sure it's loading the Babel pseudo
translation language packs.

Kit
Re: Babel PTT [message #27114 is a reply to message #27075] Tue, 21 April 2009 10:20 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,
> - "-nl en_AA" should work. In the launch configuration dialog, there is
> a "Plug-ins" tab. You can select to load just the plugins in the
> workspace, from the target platform, or both. Make sure it's loading the
> Babel pseudo translation language packs.

I've installed some bundles from the update site, but these do not
appear in the plugin list in my launch configuration. Are fragments
excluded from this listing?

Cheers,
Víctor.
Re: Babel PTT [message #27153 is a reply to message #27114] Tue, 21 April 2009 19:11 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
I installed eclipse-jee-galileo-M6-win32.zip and connected to
http://download.eclipse.org/technology/babel/update-site/gal ileo babel
update site to get the language packs. I was able to see the language
packs in the plug-ins tab. Could you describe your setup?
Re: Babel PTT [message #27192 is a reply to message #27153] Tue, 21 April 2009 21:46 Go to previous messageGo to next message
Werner Keil is currently offline Werner KeilFriend
Messages: 1087
Registered: July 2009
Senior Member
Is Mylyn 3.2 also part of that already?
Re: Babel PTT [message #27229 is a reply to message #27153] Wed, 22 April 2009 08:38 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

Kit Lo escribió:
> I installed eclipse-jee-galileo-M6-win32.zip and connected to
> http://download.eclipse.org/technology/babel/update-site/gal ileo babel
> update site to get the language packs. I was able to see the language
> packs in the plug-ins tab. Could you describe your setup?
>

I use base Eclipse SDK and downloaded the pseudo translation packs for
Eclipse and EMF. Nothing else. Is there any other feature I should install?
Re: Babel PTT [message #27266 is a reply to message #27229] Thu, 23 April 2009 03:10 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
1) I installed the following zips:
- eclipse-SDK-3.5M6-win32.zip
- emf-runtime-2.5.0M6.zip
2) Launch Eclispe
3) Click on "Debug>Debug Configurations..." toolbar button
4) Create a new configuration for Eclipse Application
5) On the "Arguments" tab, I change the program arguments to:
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl en_AA
6) On the "Plug-ins" tab, I can see a list of the code plug-ins and
NL plug-ins (but grayed out)
7) I select "plug-ins selected below only"
8) I did run into a problem launching this configuration the first time,
therefore, I deselect the following plug-ins
- org.eclipse.core.net.win32.x86.nl_en_AA
- org.eclipse.equinox.launcher.win32.win32.x86.nl_en_AA
(I will open a separate bug and investigate this)
9) Then, I just click on the "Debug" button, the second instance of Eclipse
is launched

Is you setup different from mine? Please try this.
Re: Babel PTT [message #27301 is a reply to message #27192] Thu, 23 April 2009 03:15 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Werner Keil wrote:

> Is Mylyn 3.2 also part of that already?

Yes, pseudo translations for tools.mylyn for Galileo are available. Other
translations will depend on each country's participation.
Re: Babel PTT [message #27771 is a reply to message #27266] Mon, 27 April 2009 09:03 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

I'm afraid I still don't see those fragments in the plugin tab in my
launch configuration. The do appear as installed, according to my
"Installation details" dialog, and both the OSGi console and PDE Plugin
Registry corroborate it. But for reason unknown to me, the don't appear
in the launch configuration. In fact, I can't recognize the fragment
icon the plugin list, so I fear there is no single fragment in that list.

Is there anything special that should be done here?

I'm using these same eclipse installation as you, the same zips.

I must admit this is quite confusing. Fragments seem to be installed
according to the different views and other facilities. Could it be a
platform bug?

Thanks for your feedback, Kit.

Víctor.

Kit Lo escribió:
> 1) I installed the following zips:
> - eclipse-SDK-3.5M6-win32.zip
> - emf-runtime-2.5.0M6.zip
> 2) Launch Eclispe
> 3) Click on "Debug>Debug Configurations..." toolbar button
> 4) Create a new configuration for Eclipse Application
> 5) On the "Arguments" tab, I change the program arguments to:
> -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl en_AA
> 6) On the "Plug-ins" tab, I can see a list of the code plug-ins and
> NL plug-ins (but grayed out)
> 7) I select "plug-ins selected below only"
> 8) I did run into a problem launching this configuration the first time,
> therefore, I deselect the following plug-ins
> - org.eclipse.core.net.win32.x86.nl_en_AA
> - org.eclipse.equinox.launcher.win32.win32.x86.nl_en_AA
> (I will open a separate bug and investigate this)
> 9) Then, I just click on the "Debug" button, the second instance of Eclipse
> is launched
>
> Is you setup different from mine? Please try this.
>
Re: Babel PTT [message #27807 is a reply to message #27771] Mon, 27 April 2009 13:23 Go to previous messageGo to next message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
A few more questions to see if we can debug this:
- are you running Windows XP or Vista? What SP level?
- FAT file system or NTFS? (it's probably not related, but just in case)
- Java Runtime level? From Sun?
- do you see the translations if you start the first instance of Eclipse?
- how about downloading just Eclipse and the Eclipse language packs (no
EMF)? any better?
Re: Babel PTT [message #27887 is a reply to message #27807] Mon, 27 April 2009 17:27 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit Lo escribió:
> A few more questions to see if we can debug this:
> - are you running Windows XP or Vista? What SP level?

Windows XP

> - FAT file system or NTFS? (it's probably not related, but just in case)

NTFS

> - Java Runtime level? From Sun?

I was using J2SE-1.5

> - do you see the translations if you start the first instance of Eclipse?

If I use -nl_AA for the first instance, I see the translations (in the
first instance). However, if using this instance, I run a launch
configuration, the second instance is not translated.

> - how about downloading just Eclipse and the Eclipse language packs (no
> EMF)? any better?

I removed the translation packages I installed using P2. Then I
installed only Eclipse translation pack. Same behaviour :(

I'll try a new clean eclipse installation and let you know what happens.
Re: Babel PTT [message #28091 is a reply to message #27807] Thu, 07 May 2009 09:33 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

finally managed to get the fragments recognized. For some reason, the
eclipse installation was not set as target platform :(

Sorry for all the inconveniences!
Re: Babel PTT [message #578040 is a reply to message #26461] Mon, 13 April 2009 15:42 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
I too am interested in knowing how exactly to use the Babel PTT to satisfy
the localization should-do for DTP for the Galileo simultaneous release.
We're already good as far as getting everything into Babel (map files and so
on), but I can't find anything on the wiki or newsgroups or doing a Google
search to figure out what exactly is necessary to use the Babel PTT.

Any suggestions would be very helpful.

--Fitz

DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead

"V
Re: Babel PTT [message #578170 is a reply to message #26607] Mon, 13 April 2009 19:10 Go to previous message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
While I am not the best person to answer this, I managed to dig out this
mailing list posting. It may be a good start:

http://dev.eclipse.org/mhonarc/lists/babel-dev/msg00448.html


Denis

Brian Fitzpatrick wrote:
> I too am interested in knowing how exactly to use the Babel PTT to satisfy
> the localization should-do for DTP for the Galileo simultaneous release.
> We're already good as far as getting everything into Babel (map files and so
> on), but I can't find anything on the wiki or newsgroups or doing a Google
> search to figure out what exactly is necessary to use the Babel PTT.
>
> Any suggestions would be very helpful.
>
> --Fitz
>
> DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead
>
> "Víctor Roldán Betancort" <vroldan@opencanarias.com> wrote in message
> news:gri31v$pki$1@build.eclipse.org...
>> Hi everyone,
>>
>> as a member of the CDO component, we are trying to fulfill our
>> localization needs for the Galileo release. I'll try to expose here what
>> I've understood.
>>
>> (Please correct me if wrong) The steps to properly prepare our project for
>> babel are:
>>
>> 1. Externalize all Strings that are subject to be shown in the UI from our
>> plugins (in our case, I expect only UI and Exceptions are subject to be
>> shown). Use JDT and PDE tooling to externalize strings.
>>
>> 2. Create a babel map. If I understand it correctly, this is kind of a
>> file that exposes which externalized Strings can be translated by the
>> Babel community. I saw this is done through a webapp. The first thing I
>> see is our project does not appear, which I understand since we are not
>> top level project under modeling, but rather under modeling.emf. How can
>> we add our component to this list? Is there anything we should do?
>>
>> 4. Perform PTT to see everything is fine?
>>
>> How is exactly the Pseudo Translation Test performed? I believe I should
>> download the PTT plugin and then configure eclipse.ini to use it? Which is
>> the flag I should use? If I understood correctly:
>>
>> a. Hard-coded strings don't have prefix
>> b. Externalized Strings have prefix. If the string has the prefix, what
>> does it exactly mean?
>>
>> Question: where is the index file that maps prefix to file containing the
>> string?
>>
>> Thanks in advance :D
>>
>> Víctor.
>
>
Re: Babel PTT [message #578190 is a reply to message #26724] Tue, 14 April 2009 08:30 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi Denis,

thanks for pointing out this. I actually read this mail before posting
here, since I believe it does not answer the questions I've posted. Just
wanted to have everything clear before "babelizing" the CDO project :P

Cheers,
Víctor.

Denis Roy escribió:
> While I am not the best person to answer this, I managed to dig out this
> mailing list posting. It may be a good start:
>
> http://dev.eclipse.org/mhonarc/lists/babel-dev/msg00448.html
>
>
> Denis
>
> Brian Fitzpatrick wrote:
>> I too am interested in knowing how exactly to use the Babel PTT to
>> satisfy the localization should-do for DTP for the Galileo
>> simultaneous release. We're already good as far as getting everything
>> into Babel (map files and so on), but I can't find anything on the
>> wiki or newsgroups or doing a Google search to figure out what exactly
>> is necessary to use the Babel PTT.
>>
>> Any suggestions would be very helpful.
>>
>> --Fitz
>>
>> DTP PMC Lead/Connectivity sub-project lead/Enablement sub-project lead
>>
>> "Víctor Roldán Betancort" <vroldan@opencanarias.com> wrote in message
>> news:gri31v$pki$1@build.eclipse.org...
>>> Hi everyone,
>>>
>>> as a member of the CDO component, we are trying to fulfill our
>>> localization needs for the Galileo release. I'll try to expose here
>>> what I've understood.
>>>
>>> (Please correct me if wrong) The steps to properly prepare our
>>> project for babel are:
>>>
>>> 1. Externalize all Strings that are subject to be shown in the UI
>>> from our plugins (in our case, I expect only UI and Exceptions are
>>> subject to be shown). Use JDT and PDE tooling to externalize strings.
>>>
>>> 2. Create a babel map. If I understand it correctly, this is kind of
>>> a file that exposes which externalized Strings can be translated by
>>> the Babel community. I saw this is done through a webapp. The first
>>> thing I see is our project does not appear, which I understand since
>>> we are not top level project under modeling, but rather under
>>> modeling.emf. How can we add our component to this list? Is there
>>> anything we should do?
>>>
>>> 4. Perform PTT to see everything is fine?
>>>
>>> How is exactly the Pseudo Translation Test performed? I believe I
>>> should download the PTT plugin and then configure eclipse.ini to use
>>> it? Which is the flag I should use? If I understood correctly:
>>>
>>> a. Hard-coded strings don't have prefix
>>> b. Externalized Strings have prefix. If the string has the prefix,
>>> what does it exactly mean?
>>>
>>> Question: where is the index file that maps prefix to file containing
>>> the string?
>>>
>>> Thanks in advance :D
>>>
>>> Víctor.
>>
>>
Re: Babel PTT [message #578202 is a reply to message #26762] Tue, 14 April 2009 15:45 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Víctor, let me try to answer your questions.

1. Externalize all Strings that are subject to be shown in the UI from our
plugins (in our case, I expect only UI and Exceptions are subject to be
shown). Use JDT and PDE tooling to externalize strings.

Answer: correct

2. Create a babel map. If I understand it correctly, this is kind of a
file that exposes which externalized Strings can be translated by the
Babel community. I saw this is done through a webapp. The first thing I
see is our project does not appear, which I understand since we are not
top level project under modeling, but rather under modeling.emf. How can
we add our component to this list? Is there anything we should do?

Answer: We pull the information from a data bridge to Eclipse Bugzilla. If
you don't see your project, please open a bug against Babel/Server.

4. Perform PTT to see everything is fine?

How is exactly the Pseudo Translation Test performed? I believe I should
download the PTT plugin and then configure eclipse.ini to use it? Which is
the flag I should use? If I understood correctly:

a. Hard-coded strings don't have prefix
b. Externalized Strings have prefix. If the string has the prefix, what
does it exactly mean?

Question: where is the index file that maps prefix to file containing the
string?

Answer: There are 2 ways to get the pseudo translation language packs,
either through the Babel update site, or the downlable zips. See
http://www.eclipse.org/babel/downloads.php for more info. After installing
the language packs, start Eclipse with -nl en_AA. After that, just run
your project normally. You will see most of the strings with a special
prefix like "eclipse123456:". If a string does not have a prefix, it
usually means the string is hard-coded in the code. The added length of
the prefix will help you test truncation problems. For example, if a
button is not coded correctly, the new label "eclipse123456:OK" will be
truncated. The prefix can also tell you which project does the string come
from. The index number can be used to locate the exact key in the
properties that it's coming from. The index file can be found in the
pesudo translation feature for the project. This is the path for the
Eclipse index file for example:
eclipse\features\org.eclipse.babel.nls_eclipse_en_AA_3.5.0.v 20090406043401\BabelPseudoTranslationsIndex-eclipse.html
Re: Babel PTT [message #578213 is a reply to message #26798] Tue, 14 April 2009 17:16 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

thanks you very much for your answer, things are more clear to me now. I
just submitted the bug to include CDO in Babel Map definition webapp
(see #272181). The pseudo test is also more clear now, I'll start
externalizing strings ASAP!

Cheers!
ViK

Kit Lo escribió:
> Víctor, let me try to answer your questions.
>
> 1. Externalize all Strings that are subject to be shown in the UI from
> our plugins (in our case, I expect only UI and Exceptions are subject to
> be shown). Use JDT and PDE tooling to externalize strings.
>
> Answer: correct
>
> 2. Create a babel map. If I understand it correctly, this is kind of a
> file that exposes which externalized Strings can be translated by the
> Babel community. I saw this is done through a webapp. The first thing I
> see is our project does not appear, which I understand since we are not
> top level project under modeling, but rather under modeling.emf. How can
> we add our component to this list? Is there anything we should do?
>
> Answer: We pull the information from a data bridge to Eclipse Bugzilla.
> If you don't see your project, please open a bug against Babel/Server.
>
> 4. Perform PTT to see everything is fine?
>
> How is exactly the Pseudo Translation Test performed? I believe I should
> download the PTT plugin and then configure eclipse.ini to use it? Which
> is the flag I should use? If I understood correctly:
>
> a. Hard-coded strings don't have prefix
> b. Externalized Strings have prefix. If the string has the prefix, what
> does it exactly mean?
>
> Question: where is the index file that maps prefix to file containing
> the string?
>
> Answer: There are 2 ways to get the pseudo translation language packs,
> either through the Babel update site, or the downlable zips. See
> http://www.eclipse.org/babel/downloads.php for more info. After
> installing the language packs, start Eclipse with -nl en_AA. After that,
> just run your project normally. You will see most of the strings with a
> special prefix like "eclipse123456:". If a string does not have a
> prefix, it usually means the string is hard-coded in the code. The added
> length of the prefix will help you test truncation problems. For
> example, if a button is not coded correctly, the new label
> "eclipse123456:OK" will be truncated. The prefix can also tell you which
> project does the string come from. The index number can be used to
> locate the exact key in the properties that it's coming from. The index
> file can be found in the pesudo translation feature for the project.
> This is the path for the Eclipse index file for example:
> eclipse\features\org.eclipse.babel.nls_eclipse_en_AA_3.5.0.v 20090406043401\BabelPseudoTranslationsIndex-eclipse.html
>
>
Re: Babel PTT [message #578289 is a reply to message #26798] Wed, 15 April 2009 16:02 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi Kit,

I just finished doing some part of the string externalization work, and
two questions has popped up in my mind, I hope you could answer:

- Does the used externalization mechanism matter for Babel? I mean, does
Babel require Messages class to extend NLS, or does it work as well with
the ResourceBundle way? We we were concerned about this issue because we
want CDO to run in standalone as well, and NLS seems to come from some
OSGi bundle...

- How can I launch an eclipse runtime instance with certain locale? I
managed to activate the pseudo locale in the first eclipse instance, but
when one I need to be with this local is the second. I've tried to use
arguments -nl ${target.nl:en_AA} and also with -nl en_AA in the launch
configurations, but none work. Does the pseudo transaction fragment need
to be installed in the second instance in some way for this to work? I
realized that fragments cannot be selected in the launch configuration
plugin list (they are just not listed there)

Cheers,
ViK.
Re: Babel PTT [message #578322 is a reply to message #26996] Mon, 20 April 2009 14:06 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Víctor,

- Either the NLS class or Java ResourceBundle way will work. The NLS class
is actually just a convenient wrapper of the Java ResourceBundle.

- "-nl en_AA" should work. In the launch configuration dialog, there is a
"Plug-ins" tab. You can select to load just the plugins in the workspace,
from the target platform, or both. Make sure it's loading the Babel pseudo
translation language packs.

Kit
Re: Babel PTT [message #578342 is a reply to message #27075] Tue, 21 April 2009 10:20 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,
> - "-nl en_AA" should work. In the launch configuration dialog, there is
> a "Plug-ins" tab. You can select to load just the plugins in the
> workspace, from the target platform, or both. Make sure it's loading the
> Babel pseudo translation language packs.

I've installed some bundles from the update site, but these do not
appear in the plugin list in my launch configuration. Are fragments
excluded from this listing?

Cheers,
Víctor.
Re: Babel PTT [message #578359 is a reply to message #27114] Tue, 21 April 2009 19:11 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
I installed eclipse-jee-galileo-M6-win32.zip and connected to
http://download.eclipse.org/technology/babel/update-site/gal ileo babel
update site to get the language packs. I was able to see the language
packs in the plug-ins tab. Could you describe your setup?
Re: Babel PTT [message #578375 is a reply to message #27153] Tue, 21 April 2009 21:46 Go to previous message
Werner Keil is currently offline Werner KeilFriend
Messages: 1087
Registered: July 2009
Senior Member
Is Mylyn 3.2 also part of that already?
Re: Babel PTT [message #578400 is a reply to message #27153] Wed, 22 April 2009 08:38 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

Kit Lo escribió:
> I installed eclipse-jee-galileo-M6-win32.zip and connected to
> http://download.eclipse.org/technology/babel/update-site/gal ileo babel
> update site to get the language packs. I was able to see the language
> packs in the plug-ins tab. Could you describe your setup?
>

I use base Eclipse SDK and downloaded the pseudo translation packs for
Eclipse and EMF. Nothing else. Is there any other feature I should install?
Re: Babel PTT [message #578426 is a reply to message #27229] Thu, 23 April 2009 03:10 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
1) I installed the following zips:
- eclipse-SDK-3.5M6-win32.zip
- emf-runtime-2.5.0M6.zip
2) Launch Eclispe
3) Click on "Debug>Debug Configurations..." toolbar button
4) Create a new configuration for Eclipse Application
5) On the "Arguments" tab, I change the program arguments to:
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl en_AA
6) On the "Plug-ins" tab, I can see a list of the code plug-ins and
NL plug-ins (but grayed out)
7) I select "plug-ins selected below only"
8) I did run into a problem launching this configuration the first time,
therefore, I deselect the following plug-ins
- org.eclipse.core.net.win32.x86.nl_en_AA
- org.eclipse.equinox.launcher.win32.win32.x86.nl_en_AA
(I will open a separate bug and investigate this)
9) Then, I just click on the "Debug" button, the second instance of Eclipse
is launched

Is you setup different from mine? Please try this.
Re: Babel PTT [message #578451 is a reply to message #27192] Thu, 23 April 2009 03:15 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
Werner Keil wrote:

> Is Mylyn 3.2 also part of that already?

Yes, pseudo translations for tools.mylyn for Galileo are available. Other
translations will depend on each country's participation.
Re: Babel PTT [message #578521 is a reply to message #27266] Mon, 27 April 2009 09:03 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

I'm afraid I still don't see those fragments in the plugin tab in my
launch configuration. The do appear as installed, according to my
"Installation details" dialog, and both the OSGi console and PDE Plugin
Registry corroborate it. But for reason unknown to me, the don't appear
in the launch configuration. In fact, I can't recognize the fragment
icon the plugin list, so I fear there is no single fragment in that list.

Is there anything special that should be done here?

I'm using these same eclipse installation as you, the same zips.

I must admit this is quite confusing. Fragments seem to be installed
according to the different views and other facilities. Could it be a
platform bug?

Thanks for your feedback, Kit.

Víctor.

Kit Lo escribió:
> 1) I installed the following zips:
> - eclipse-SDK-3.5M6-win32.zip
> - emf-runtime-2.5.0M6.zip
> 2) Launch Eclispe
> 3) Click on "Debug>Debug Configurations..." toolbar button
> 4) Create a new configuration for Eclipse Application
> 5) On the "Arguments" tab, I change the program arguments to:
> -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl en_AA
> 6) On the "Plug-ins" tab, I can see a list of the code plug-ins and
> NL plug-ins (but grayed out)
> 7) I select "plug-ins selected below only"
> 8) I did run into a problem launching this configuration the first time,
> therefore, I deselect the following plug-ins
> - org.eclipse.core.net.win32.x86.nl_en_AA
> - org.eclipse.equinox.launcher.win32.win32.x86.nl_en_AA
> (I will open a separate bug and investigate this)
> 9) Then, I just click on the "Debug" button, the second instance of Eclipse
> is launched
>
> Is you setup different from mine? Please try this.
>
Re: Babel PTT [message #578533 is a reply to message #27771] Mon, 27 April 2009 13:23 Go to previous message
Kit Lo is currently offline Kit LoFriend
Messages: 137
Registered: July 2009
Senior Member
A few more questions to see if we can debug this:
- are you running Windows XP or Vista? What SP level?
- FAT file system or NTFS? (it's probably not related, but just in case)
- Java Runtime level? From Sun?
- do you see the translations if you start the first instance of Eclipse?
- how about downloading just Eclipse and the Eclipse language packs (no
EMF)? any better?
Re: Babel PTT [message #578573 is a reply to message #27807] Mon, 27 April 2009 17:27 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit Lo escribió:
> A few more questions to see if we can debug this:
> - are you running Windows XP or Vista? What SP level?

Windows XP

> - FAT file system or NTFS? (it's probably not related, but just in case)

NTFS

> - Java Runtime level? From Sun?

I was using J2SE-1.5

> - do you see the translations if you start the first instance of Eclipse?

If I use -nl_AA for the first instance, I see the translations (in the
first instance). However, if using this instance, I run a launch
configuration, the second instance is not translated.

> - how about downloading just Eclipse and the Eclipse language packs (no
> EMF)? any better?

I removed the translation packages I installed using P2. Then I
installed only Eclipse translation pack. Same behaviour :(

I'll try a new clean eclipse installation and let you know what happens.
Re: Babel PTT [message #578656 is a reply to message #27807] Thu, 07 May 2009 09:33 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Kit,

finally managed to get the fragments recognized. For some reason, the
eclipse installation was not set as target platform :(

Sorry for all the inconveniences!
Previous Topic:No version for MAT project in translation tool
Next Topic:Missing Pseudo Translation packs for CDO and net4j
Goto Forum:
  


Current Time: Thu Mar 28 19:56:42 GMT 2024

Powered by FUDForum. Page generated in 0.04010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top