Here is the test :
- I’ve downloaded jsmol (extracted from jmol-14.3.16_2015.09.14.zip) and copied 
the folder in a repository on my local Apache web server
- from the browser (same results with Firefox, Safari and Chrome on Mac OS X 
10.10.5), I run the test2.htm page
- I get the 4 following alert messages :

1st :
"[Java2Script] The required class file 

j2s/J/translation/Jmol/fr/Messages_fr.js
could not be loaded. Script error: expected expression, got '<' 

data:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /jmol/jsmol/j2s/J/translation/Jmol/fr/Messages_fr.js was 
not found on this server.</p>
<hr>
<address>Apache Server at chemapps.stolaf.edu Port 80</address>
</body></html>



0 function (file, file0, js) 
1 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
2 function (name, onLoaded, forced, async, mode) 
3 function (clazzName, applet, state) 
4 J.api.Interface.getInterface(name, vwr, state) 
5 J.i18n.Resource.getResource(vwr, className, name) 
6 J.i18n.GT.addBundle(vwr, className, name) 
7 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
8 construct(vwr, langCode) 
9 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
10 function (id, objThis, claxxRef, fxName, args, _saem) 
11 function () 
12 function (objThis, args) 
13 function () 
14 J.i18n.GT.getTextWrapper() 
15 J.i18n.GT._(string) 
16 function () 
17 function (node, _updateNode) 
<recursing> »

2nd message :
"SyntaxError: Unexpected token '<' loading file 
j2s/J/translation/Jmol/fr/Messages_fr.js J.translation.Jmol.fr.Messages_fr 
0 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
1 function (name, onLoaded, forced, async, mode) 
2 function (clazzName, applet, state) 
3 J.api.Interface.getInterface(name, vwr, state) 
4 J.i18n.Resource.getResource(vwr, className, name) 
5 J.i18n.GT.addBundle(vwr, className, name) 
6 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
7 construct(vwr, langCode) 
8 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
9 function (id, objThis, claxxRef, fxName, args, _saem) 
10 function () 
11 function (objThis, args) 
12 function () 
13 J.i18n.GT.getTextWrapper() 
14 J.i18n.GT._(string) 
15 function () 
16 function (node, _updateNode) 
<recursing> »

3rd message :
"[Java2Script] The required class file 

j2s/J/translation/JmolApplet/fr/Messages_fr.js
could not be loaded. Script error: Unexpected token '<' 

data:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL 
/jsmol/jmol-14.3.16_2015.09.14/jsmol/j2s/J/translation/JmolApplet/fr/Messages_fr.js
 was not found on this server.</p>
</body></html>



0 function (file, file0, js) 
1 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
2 function (name, onLoaded, forced, async, mode) 
3 function (clazzName, applet, state) 
4 J.api.Interface.getInterface(name, vwr, state) 
5 J.i18n.Resource.getResource(vwr, className, name) 
6 J.i18n.GT.addBundle(vwr, className, name) 
7 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
8 construct(vwr, langCode) 
9 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
10 function (id, objThis, claxxRef, fxName, args, _saem) 
11 function () 
12 function (objThis, args) 
13 function () 
14 J.i18n.GT.getTextWrapper() 
15 J.i18n.GT._(string) 
16 function () 
17 function (node, _updateNode) 
<recursing> »

4th message :
"SyntaxError: Unexpected token '<' loading file 
j2s/J/translation/JmolApplet/fr/Messages_fr.js 
J.translation.JmolApplet.fr.Messages_fr 
0 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
1 function (name, onLoaded, forced, async, mode) 
2 function (clazzName, applet, state) 
3 J.api.Interface.getInterface(name, vwr, state) 
4 J.i18n.Resource.getResource(vwr, className, name) 
5 J.i18n.GT.addBundle(vwr, className, name) 
6 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
7 construct(vwr, langCode) 
8 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
9 function (id, objThis, claxxRef, fxName, args, _saem) 
10 function () 
11 function (objThis, args) 
12 function () 
13 J.i18n.GT.getTextWrapper() 
14 J.i18n.GT._(string) 
15 function () 
16 function (node, _updateNode) 
<recursing>
« 

The interactive menu appears in french and I am finding striking that there is 
no j2s/J/translation folder at all (even if the script apparently search for a 
js file in that folder) ?!

If I switch the browser language preference to english first, I don’t get any 
error message.
If I switch it to spanish ([es]), I get the 4 alert messages (see infra). Same 
for German ([de]) (see infra).

1st message for spanish
"Java2Script] The required class file 

j2s/J/translation/Jmol/es/Messages_es.js
could not be loaded. Script error: expected expression, got '<' 

data:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL 
/jsmol/jmol-14.3.16_2015.09.14/jsmol/j2s/J/translation/Jmol/es/Messages_es.js 
was not found on this server.</p>
</body></html>



0 function (file, file0, js) 
1 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
2 function (name, onLoaded, forced, async, mode) 
3 function (clazzName, applet, state) 
4 J.api.Interface.getInterface(name, vwr, state) 
5 J.i18n.Resource.getResource(vwr, className, name) 
6 J.i18n.GT.addBundle(vwr, className, name) 
7 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
8 construct(vwr, langCode) 
9 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
10 function (id, objThis, claxxRef, fxName, args, _saem) 
11 function () 
12 function (objThis, args) 
13 function () 
14 J.i18n.GT.getTextWrapper() 
15 J.i18n.GT._(string) 
16 function () 
17 function (node, _updateNode) 
<recursing>"

1st message for german.
"[Java2Script] The required class file 

j2s/J/translation/Jmol/de/Messages_de.js
could not be loaded. Script error: expected expression, got '<' 

data:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL 
/jsmol/jmol-14.3.16_2015.09.14/jsmol/j2s/J/translation/Jmol/de/Messages_de.js 
was not found on this server.</p>
</body></html>



0 function (file, file0, js) 
1 function (node, file, why, ignoreOnload, fSuccess, _loadScript) 
2 function (name, onLoaded, forced, async, mode) 
3 function (clazzName, applet, state) 
4 J.api.Interface.getInterface(name, vwr, state) 
5 J.i18n.Resource.getResource(vwr, className, name) 
6 J.i18n.GT.addBundle(vwr, className, name) 
7 J.i18n.GT.addBundles(vwr, type, la_co_va, la_co, la) 
8 construct(vwr, langCode) 
9 function (id, fxName, objThis, clazzFun, params, args, fx, _ttsaem) 
10 function (id, objThis, claxxRef, fxName, args, _saem) 
11 function () 
12 function (objThis, args) 
13 function () 
14 J.i18n.GT.getTextWrapper() 
15 J.i18n.GT._(string) 
16 function () 
17 function (node, _updateNode) 
<recursing>
« 

-Paul

 

> Le 15-09-2015 à 15:36, Angel Herráez <angel.herr...@uah.es> a écrit :
> 
> Paul, I don't experience the problem: both application, Jmol/Java and 
> JSmol/Html5 display the menu in Spanish in my system
> 
> I don't think the language of the browser is responsible. At least 
> classically 
> (i.e. for the Java applet) the detection was for the operating system 
> language.
> 
> 

------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to