Do I understand this correctly?

1. Jmol uses GNU xgettext to extract the text. It does this by 
identifying to xgettext the function name that is doing the calling: 
GT._ in:

          <arg value="-kGT._" />

2. xgettext reads the compiled class files for arguments to this function.

3. Since I move the string literals out, they are not there, and 
xgettext is not finding them.

4. OK, what xgettext creates is a set of .po files. These or the related 
.pot files are the points where the translations are entered.

5. It's not clear to me what msgmerge does, but I think it is only 
acting at the post-translation level, on .po and .pot files.

6. Msgfmt then creates the .class files from the .po or .pot files. 
These class files are simple Java ResourceBundles.


BUT

We can't have GT._ references in the static String[][] arrays that are 
in the popup resource class. Those make it impossible to
switch languages. We want to apply the localization in such a way that 
it is done on the fly, yet the internationalization part is also
done.

THE SOLUTION

I've added a "dummy" GT class in the popup package that gets processed 
instead of org.jmol.i18n.GT. All it does is
mark the string for later processing by the real GT class. But since it 
LOOKS like a GT.() call, I'm betting that
xgettext will be fooled and catalog it anyway.

If this doesn't work, I have another solution.

I don't have python on my computer, so I can't do the 
internationalization. Can someone else do that and confirm that

msgid "Language"

is created now?

Thanks,

Bob






Angel Herraez wrote:

>On 4 May 2007 at 18:20, Bob Hanson wrote:
>  
>
>>Should be ok -- Capital L - - Language
>>    
>>
>
>"Language" is not in Jmol.pot or JmolApplet.pot
>
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Jmol-users mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to