They have to be in separate packages. Once one class of a package is
accessed, all classes of that package must be loaded. So each has to be in
its own package. It's own name space.
BUT
I have another idea.
We don't necessarily have to use the gettext routines for creating classes
this way. We could just have have flat property files and load them
directly. Like we can do with menus. In essence, read the .po files
directly.
The class for Catalonian, for example, is 46K uncompressed, 22K compressed.
The simple flat list of msgid/msgstr for that is 28K uncompressed. I don't
see what the big deal is in creating a class to handle these. It's just a
property table, really. Who needs a whole class?
For example, we might consider just making the property files and then using
a PropertyResourceBundle instead. (
http://java.sun.com/j2se/1.4.2/docs/api/java/util/PropertyResourceBundle.html
).
I guess I don't see why it couldn't be simply a file on the host that is
read when a language is accessed. If the file isn't there, it just isn't
there. No translation.
In fact, the signed applet or application could even just load these from
sourceforge on the fly if we wanted that. No need to install ever.
Bob
On Wed, Oct 8, 2008 at 1:40 PM, Nicolas Vervelle <[EMAIL PROTECTED]>wrote:
>
>
> On Wed, Oct 8, 2008 at 12:17 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>
>> -- translation en_GB
>>
>> -- commented out in GT.java
>> -- will be back in as soon as we can get those translations spun off out
>> of one large JAR file. I'm hoping Nico can tackle that.
>>
>
> Hi Bob,
>
> What are the conditions for the .jar indexing to work ?
> If we have a .jar for each language (JmolApplet_i18n_XX.jar), does the
> indexing work if all the languages classes are in the same namespace ? or do
> we need to put them in different namespaces ?
>
> Nico
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers