Actually, I was thinking, this is quite tricky to set up. I've checked in
modifications. The templates and .js have no English text now.

Jonathan, before Angel gets going, you should check over this list in
WebExport and see if it suffices. Get the wording and punctuation just the
way you want. If you need more translations, just follow my lead here. I put
the file references in the tag just to make it easier to find where these
are being inserted.

Note that now when you change languages, the WebExport frame closes and
reopens with updated translation (I think).

  private static String[] translations;
  private static void setTranslations() {
    // for all templates and JmolPopIn.js
    translations = new String[] {
        "GT_JmolPopIn.js_TOGETA3DMODEL", GT._("To get a 3-D model you can
manipulate, click {0}here{1}. Download time may be significant the first
time the applet is loaded.", new String[] {"<a href=\"HREF\">", "</a>"}),

        "GT_pop_in_template.html_INSERTTITLE", GT._("Insert the page TITLE
here."),
        "GT_pop_in_template.html_INSERTINTRO", GT._("Insert the page
INTRODUCTION here."),

        "GT_pop_in_template2.html_INSERTCAPTION", GT._("Insert a caption for
{0} here.","@NAME@"),
        "GT_pop_in_template2.html_INSERTADDITIONAL", GT._("Insert additonal
explanatory text here. Long text will wrap around Jmol model {0}.","@NAME@
"),

        "GT_script_button_template.html_INSERT", GT._("Insert your TITLE and
INTRODUCTION here."),

        "GT_script_button_template2.html_BUTTONINFO", GT._("The button {0}
will appear in the box below.  Insert information for {0} here and below.",
"@NAME@"),
        "GT_script_button_template2.html_MORE", GT._("Insert more
information for {0} here.", "@NAME@"),
    };
  }



On Wed, Aug 27, 2008 at 9:03 PM, Jonathan Gutow <[EMAIL PROTECTED]> wrote:

> That seems like the answer.  I may have some time to look into it
> tomorrow.  I have a few handouts to get ready for the start of
> classes first, but I will see what I can do.
>
> Jonathan
> On Aug 27, 2008, at 7:50 PM, Robert Hanson wrote:
>
> > another option is even better, I think. We just set up a set of GT._
> > (...) terms in Jmol and then bulk-load them into the JavaScript on
> > the fly. In the JavaScript we simply put in a set of keys, like
> > $MSG1$ that are then replaced on the fly. The GT system will
> > recognize all these just like any others - then there are not
> > additional files to futz with.
> >
> > Bob
> >
> >
> > On Wed, Aug 27, 2008 at 6:36 PM, Jonathan Gutow <[EMAIL PROTECTED]>
> > wrote:
> >
> > On Aug 27, 2008, at 6:32 PM, Angel Herráez wrote:
> >
> > > On 27 Aug 2008 at 16:34, Jonathan Gutow wrote:
> > >> While
> > >> looking into this I found some other messages that end up in the
> > >> generated pages that should be translated.
> > >
> > > I haven't seen any more. It may be those which I have already
> > > worked on. I haven't
> > > commited them yet since I wanted to check that they work. A list
> > > follows; they already have
> > > GT entries in my copy.
> > > You'd better wait before working on that.
> > >
> > >
> > This one
> > > Page skeleton and JavaScript generated by export to
> > > web function of
> > >
> > >
> > and this one
> > > Based on template by A. Herr&aacute;ez as modified
> > > by J. Gutow
> > >
> > are the ones I'm worried about.  In the latest version I find
> > examples that aren't wrapped in the GT_ function.  It's possible I've
> > got them two places, but I can't find them now.  When you've
> > committed your changes, we should double check those two.  If they
> > work, I've got some extra code to remove.
> >
> > Jonathan
> >                          Dr. Jonathan H. Gutow
> > Chemistry Department                                 [EMAIL PROTECTED]
> > UW-Oshkosh                                           Office:
> > 920-424-1326
> > 800 Algoma Boulevard                                 FAX:920-424-2042
> > Oshkosh, WI 54901
> >                  http://www.uwosh.edu/faculty_staff/gutow/
> >
> >
> >
> >
> >
> > ----------------------------------------------------------------------
> > ---
> > 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
> > [email protected]
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>                          Dr. Jonathan H. Gutow
> Chemistry Department                                 [EMAIL PROTECTED]
> UW-Oshkosh                                           Office:920-424-1326
> 800 Algoma Boulevard                                 FAX:920-424-2042
> Oshkosh, WI 54901
>                  http://www.uwosh.edu/faculty_staff/gutow/
>
>
>
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to