Author Topic: Atomic Spectra of Hydrogen and red shift  (Read 50452 times)

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Atomic Spectra of Hydrogen and red shift
« Reply #15 on: September 01, 2009, 11:46:58 pm »
The translation should also work for files uploaded to your server.
Please reply and click "Upload new EJS jar file" next to the "spell check" button.
Select jar files you have download /translated and saved.
I will try to help you solve the problem, but I need those translated jar file.

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #16 on: September 02, 2009, 04:11:23 am »
Sorry to disturb you with my ignorance.
I am sending you the zipped packake,
Sandor

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Atomic Spectra of Hydrogen and red shift
« Reply #17 on: September 02, 2009, 11:29:51 am »
I unpack your file and rename hydrogen_en.properties to hydrogen_hu.properties (I hope hu is the correct language code for your language)

If you download the jar again and run it. You will find magyar as one of item under GUI options->language

If the language code is correct, you should find the default in the above simulation.
For example: I also add hydrogen_zh.properties for chinese language. And the applet will load it automatically when I view it.


NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #18 on: September 02, 2009, 01:43:00 pm »
I am sorry, but I am just not able to set "magyar" as the default language. If I open the jar directly or by the index.html or by the hydrogen.html, it is always the English version that comes out. If opened with the html files I cannot even change the language manually.
Can you please help me. The best would be if you changed the zipped package and sent it back to me because I am just not able to handle this.

Also when I did the translation from GUI, I opened the Help in the left lower corner. It explains the translation with nice pictures which I cannot see when I am doing the translation. I have no idea what I am doing wrong.
Sandor

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: Atomic Spectra of Hydrogen and red shift
« Reply #19 on: September 02, 2009, 02:37:23 pm »
is your computer OS language in Hungarian?

http://www.um.es/fem/EjsWiki/Main/DeploymentLocalization
its user interface will appear in the default language of your operating system. You can switch to a different language by using the drawing panel’s popup menu GUI options ? Language option.

According to the http://www.um.es/fem/EjsWiki/Main/DeploymentLocalization the Ejs applet detects the language of the computer default language and display it as default.

Maybe you need to check your computer OS language.

For me, i can see only default english cos my computer is English OS, the other 2 language chinese (??????=0.00000 c ??????) and (hungary) Távolodási sebesség: 0.00000 c available as options to be chosen.

Hope this info helps ;D
« Last Edit: September 02, 2009, 02:40:39 pm by lookang »

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #20 on: September 02, 2009, 04:16:15 pm »
Hi "lookang",
Thanks for trying to help me.
At home I have English operation system. At the university I have Hungarian. Some of my students may have German. In Hungary people use all kinds of operation systems (except, maybe, Chinese, but I am not sure :-). It does not mean that they command the language of the computer, but they all speak Hungarian. So I needed a solution, which is independent of the language of the OS, and makes sure that the language of the applet is Hungarian no matter what computer is used. Otherwise I have no idea how I am supposed to explain to the reader what they see on the applet surface because I don't know it either.
Sandor
PS: Going global is a hard thing.

lookang

  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: Atomic Spectra of Hydrogen and red shift
« Reply #21 on: September 02, 2009, 07:15:33 pm »
Maybe you need to contact ejs creator prof paco to enable setting of any language as default. Currently I only can see English as default.

I am glad more people are tapping on educator community to advance the teaching profession. Going global is the future in my view.
Keep it up man! You are on the right track.  ;D
 

 

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Atomic Spectra of Hydrogen and red shift
« Reply #22 on: September 02, 2009, 11:34:59 pm »
The translation of string in applet is a feature of java itself.
As far as I understand: The language default is chosen when you install java in your O.S.
Because I have chinese OS so the default language is Chinese. And the language code for us is tw.
If xxxx_tw.properties is found, it will be used to translate all the string. Otherwise, no translation will be done.

The best way to do is you make the translation in the EJS and remove those properties files, since your students might use different OS and different language setting.

Because I was not able to recognize those character in your translated file, you need to do the translation by your self with your computer.
Please do the following steps:
1. You need to install EJS. (download either EJS4.1 or EJS4.2 )
2. Unzip it to your computer. For example: C: or D:
3. Click the EjsConsole.jar in the EJS installed directory for example: c:ejs_4.1EjsConsole.jar to setup initial file (This only need to be done once)
3. Download the attached jar file.  ejs_hydrogen2.jar
4. Double click the jar file to run it. Right Click in the simulation region and select "Open EJS Model".
then The file will be opened in EJS (The tool I used to create the simulation).
5.  Click the View at the top to show the GUI elements as a tree.
6. Find all the slider elements, right click the slider element to show menu and select "properties" (the first one), a popup window will open and you will find string you need to translate (as "format" property)
7. Do all the translation and click green right triangle to compile the program. You will find new generated simulation. Check out if ererything is fine.
8. Right Click the button below previous green button, select package current simulation only.
And new jar file will be generate under export directory.  Double the file to run it.
Upload it to your server and change the name hydrogen to hydrogen2 in the html file.
(If you do not want to change the name in html file, you need to save the ejs source as hydrogen.xml before you recompile it).

If you can not do it. It seems that lookang can view the language code in your file.
May be he can help to do it for you.

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #23 on: September 03, 2009, 03:36:17 am »
Thank you,
I will try it tomorrow, upload it on Friday and let you know whether I succeeded.
Best,
Sandor

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #24 on: September 03, 2009, 04:37:58 pm »
I have just tried to download EJS4.1 and  EJS4.2 but I got a message that the link is broken. I had no problem with downloading the attached ejs_hydrogen2.jar though.
Sandor

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Atomic Spectra of Hydrogen and red shift
« Reply #25 on: September 03, 2009, 10:52:34 pm »
I am sorry. I just upload those files to my server. Please download it again.

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #26 on: September 04, 2009, 04:33:40 am »
Thanks, I have just downloaded it. I will try it out tomorrow.
Sandor

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #27 on: September 05, 2009, 02:23:55 am »
Thanks for the detailed instructions. It works locally now the way I wanted. I can only upload it on Monday because our system only allows that from IP addresses belonging to the university. I hope it would work from the server too.
Best,
Sandor

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Atomic Spectra of Hydrogen and red shift
« Reply #28 on: September 05, 2009, 11:46:16 am »
Let me know if you have any problem with the uploaded EJS file on your server.

-*-

NagySandorIstvan

  • Newbie
  • *
  • Posts: 19
Re: Atomic Spectra of Hydrogen and red shift
« Reply #29 on: September 10, 2009, 12:47:21 am »
Dear Prof. Hwang,
I have uploaded the file today. I have checked it both from the university and from home and it works perfectly. You can judge it for yourself:
http://www.chem.elte.hu/Sandor.Nagy/NewClearGlossy/Java/Hubble_Hwang/index.html
Last time I forgot to tell you something that I mentioned you in an earlier message.
I think that the distance values in the English version are to be understood not in "light years" but in "millions of light years" for the given redshift values. Please check it.
Thank you again for the  tremendous energy that you spent on helping me.
Very best regards,
Sandor