Re: [Jmol-developers] localization of Export to Web module..no compression message

2008-08-29 Thread Angel Herráez
On 29 Aug 2008 at 12:14, Jonathan Gutow wrote: > Angel, > Are you sure that it is not using already compressed files? We try > to just copy files we've already processed. Try again starting from > scratch with a new file and let me know. It looks like it works for me. You're right, I

Re: [Jmol-developers] localization of Export to Web module

2008-08-29 Thread Robert Hanson
it's not set up to do more than one language switch -- the idea is that if it started in a language you did not want, you can switch. As I recall there are other issues as well with multiple switching. (Should work, but I never tracked that down.) On Fri, Aug 29, 2008 at 10:20 AM, Jonathan Gutow <

Re: [Jmol-developers] localization of Export to Web module..no compression message

2008-08-29 Thread Angel Herráez
On 29 Aug 2008 at 12:14, Jonathan Gutow wrote: > Another question. How are you specifying accented characters. They > don't all show up correctly on the translated web pages for me. I > suspect it is a text encoding issue. Do we need to change that in > the translated templates as w

Re: [Jmol-developers] localization of Export to Web module..no compression message

2008-08-29 Thread Jonathan Gutow
On Aug 28, 2008, at 8:22 AM, Angel Herráez wrote: > A single caveat: it seems that the "compressing large data file to" > message is no longer > appearing at the log. The file gets compressed and sevaed correctly. > Please, check that, Jonathan. > Angel, Are you sure that it is not using

Re: [Jmol-developers] localization of Export to Web module

2008-08-29 Thread Jonathan Gutow
On Aug 28, 2008, at 6:42 AM, Robert Hanson wrote: > 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 re

Re: [Jmol-developers] localization of Export to Web module

2008-08-28 Thread Angel Herráez
On 28 Aug 2008 at 6:42, Robert Hanson wrote: > > 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. I have downloaded revision 9796 from SVN, updated the PO file and built the app, and everything seems

Re: [Jmol-developers] localization of Export to Web module

2008-08-28 Thread Robert Hanson
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

Re: [Jmol-developers] localization of Export to Web module

2008-08-28 Thread Angel Herráez
> 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 re

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
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 s

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Robert Hanson
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 other

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
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 > worke

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Angel Herráez
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 chec

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
On Aug 27, 2008, at 5:58 PM, Robert Hanson wrote: > why not just store it as JavaScript, say: > > GT_SP_es.js > > and then read that and stuff it in the HTML file the way we do > other replacements? > > Bob I think this is what makes sense. If I see where your going, it's only necessary to d

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Robert Hanson
why not just store it as JavaScript, say: GT_SP_es.js and then read that and stuff it in the HTML file the way we do other replacements? Bob On 8/27/08, Jonathan Gutow <[EMAIL PROTECTED]> wrote: > > I've been poking around to see what options we might have. > Implementing something like GT_ i

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
I've been poking around to see what options we might have. Implementing something like GT_ is one option. Alternatively, can we put the text that needs to be translated in an invisible div in the templates and then use that text as the overlay text? Another alternative would be to keep

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Robert Hanson
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 g

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Nicolas Vervelle
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 t

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Robert Hanson
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

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
I would prefer not to have to translate JmolPopIn.js. I think we should put the strings that need translating somewhere else. While looking into this I found some other messages that end up in the generated pages that should be translated. I will update the these. I will try to do this

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Angel Herráez
The fixes are working great. I'm getting fully-Spanish Export to Web dialogs, help pages and template-based web pages. But for it to be perfect, we need also the JmolPopIn.js to be localized (JmolPopIn_xx.js), since it holds an important message, i.e. telling the user to click in order to get t

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Robert Hanson
fixed for RC11 -- thanks for spotting that Angel. On Wed, Aug 27, 2008 at 9:24 AM, Angel Herráez <[EMAIL PROTECTED]> wrote: > On 11.6.RC10, the Export to Web module fails to save the template files. > On the saved folder, I only have JmolPopIn.js, the PNG file and the SPT > file. > Error in the J

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
Thanks bob. On Aug 27, 2008, at 9:43 AM, Robert Hanson wrote: > fixed for RC11 -- thanks for spotting that Angel. > > Dr. Jonathan H. Gutow Chemistry Department [EMAIL PROTECTED] UW-Oshkosh Office:

Re: [Jmol-developers] localization of Export to Web module

2008-08-27 Thread Jonathan Gutow
On Aug 27, 2008, at 9:24 AM, Angel Herráez wrote: > On 11.6.RC10, the Export to Web module fails to save the template > files. > On the saved folder, I only have JmolPopIn.js, the PNG file and the > SPT file. > Error in the Jmol Java console is > couldn't find file: pop_in_template > > I thin