Hi all,

I was wondering wether using Gettext [1] for internationalisation/localisation 
would be something to give a try. Gettext is GNU's well established system 
for translation software; it's the PO file system. Good utils are available 
for translating and maintaining PO files, like KBabel [3].

I don't have practical experience with it, other than translating the 
chemicalMIME package. I am exploring this, but it should not be that hard.

For example, the following was generated with 'xgettext 
-kGettextResource.gettext src/org/openscience/jmol/app/AboutDialog.java':

---------------------------------------------------------------------------------------------------------
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <[EMAIL PROTECTED]>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-05-16 08:41+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n"
"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/org/openscience/jmol/app/AboutDialog.java:55
msgid "About Jmol"
msgstr ""
---------------------------------------------------------------------------------------------------------

And that file can be translated to anyfile... But I haven't compiled things 
yet... it just gives an idea of how it works...

Egon

1. http://www.gnu.org/software/gettext/
2. http://www.gnu.org/software/gettext/manual/html_node/gettext_205.html
3. http://i18n.kde.org/tools/kbabel/

-- 
[EMAIL PROTECTED]
GPG: 1024D/D6336BA6


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to