we can do way better -- and simpler. Just something like

GT = new Array()
GT_add("xxx","xxx")
GT_add("xxx","xxx")
GT_add("xxx","xxx")
GT_add("xxx","xxx")
GT_add("xxx","xxx")
GT_add("xxx","xxx")



then an overlay of the language-specific .js file instead of this one from
within Jmol and away we go. In the code we would just use


var my message = GT_("......",var1,var2,...)


very simple.

Bob





On 8/27/08, Nicolas Vervelle <[EMAIL PROTECTED]> wrote:
>
>
>
> On Wed, Aug 27, 2008 at 11:47 PM, Robert Hanson <[EMAIL PROTECTED]>wrote:
>
>> right -- the translations are only in the .html files. Jonathan, what we
>> should do is create a GT equivalent for the JavaScript -- that is, a .js
>> file that is inserted IF there is language dependence, and JavaScript to
>> look up a phrase in that code.
>>
>> Angel, maybe you can suggest a way of doing that.
>>
>
> Maybe tools like gettext-js ?
>
> *http*://gettext-js.googlecode.com/svn/trunk/
>
> 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
Northfield, MN
http://www.stolaf.edu/people/hansonr


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

Reply via email to