Am Freitag, den 04.05.2007, 23:27 -0500 schrieb Bob Hanson: > 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._" />
Yes. > 2. xgettext reads the compiled class files for arguments to this function. I maybe misunderstand you, but it doesn't read the compiled class file. It reads the source. > 3. Since I move the string literals out, they are not there, and > xgettext is not finding them. I don't know, what this exactly means. > 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. The .pot is the (portable object) template file. This file shall not be changed by the user. It's the template created by xgettext. Users wanting to translate the application, shall copy the (latest) .pot as MYLANG.po and work with this file then. > 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. msgmerge (btw it has like the others manpage and info-documentation, also available via WWW) "updates" the .po files by merging them with the created .pot file. This is necessary, if something related in the source changes. Then the content of the template (.pot) changes and to merge these changes into the .po files for the translators, you run msgmerge. > 6. Msgfmt then creates the .class files from the .po or .pot files. > These class files are simple Java ResourceBundles. Yes. That's the idea behind. > BUT [snip] > 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? #: org/jmol/popup/PopupResourceBundle.java:833 msgid "Language" msgstr "" Regards, Daniel ------------------------------------------------------------------------- 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
