2010/12/14 Angel Herráez <angel.herr...@uah.es>
> On a separate thread, I keep being uneasy about the language names
> being translated. I have discussed this before (either in Jmol or
> JChemPaint lists), and I know it's the standard practice in
> localization, but I see little advantage in changing to another
> language by accident and then being nearly unable to go back to my
> language because I don't understand the words for "language" and
> "Spanish" in Chinese. There's always the language two.letter code,
> but that's minimal.
> I think if would be more practical to have each language name in the
> original laguage and not localized. May be hard to implement, or
> others may think it inappropriate. I may rise this sometime in a
> separate thread or poll.
>
>
I see two ways to implement this :
- A "clean" way, by using the translations existing in the .po files, so
that the texts in the menu are always up to date with the .po files. Major
drawback is that Jmol would have to load all the i18n jars, so it's not a
viable solution at least for the applet...
- A "dirty" way, by adding a new field to the Language class for the
language name in its own language : for exemple, for French we would have an
attribute with a value "French" and an other attribute with a value
"Français". The menu construction would simply use the correct attribute to
display the menu. This way should be quite simple to implement, but requires
that we check from time to time that the second attribute is coherent with
the translation in the .po files.
I would rather see 3 things in the menu : the language code, the language
name in English, the language name in its own language.
Nico
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers