It's not a secret anymore!*
The moose likes JForum and the fly likes How to translate ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "How to translate ?" Watch "How to translate ?" New topic
Author

How to translate ?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i'd like to contiribute like italian translator, how can i ?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Get the en_US.properties file ( WEB-INF/config/languages ) and translate the keys. I suggest you to get the latest version from CVS in the following link:

https://jforum.dev.java.net/source/browse/jforum/WEB-INF/config/languages/

There, click in the link which has the revision number ( "Rev" column ) of the file "en_US.properties". This will be the latest version.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
thanx, i'm near to finish.

and so? must i post the zipped file here?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Please send to rafaelsteil#at#gmail.com

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Can we have a prefix before language setting, like jforum_en_US.properties, jforum_zh_TW.properties?
I'm currently use Zaval JRC Editor to do Chinese Traditonal translating. I have to add a jforum perfix before I use Zaval JRC Editor to load both of them together. And after uploading to my server, I have to change back the filename to no-prefix version.
I think it's no harm to the current architecture. Just change the code for fetching the language file.
[originally posted on jforum.net by andowson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, you don't need to rename the files every time. You can keep them as jforum_xxxx.properties as long you also update the file "locales.properties". That's all that need to be done.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
OK, thanks. I'll try it.
[originally posted on jforum.net by andowson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Great...it works :lol: . Just copy back the locales.properties and no need for reloading the webapp. I'll speed up my translation now .
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Oh,I think u only translate the config.xml file to itianly....
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ciao,

vorei fare una prova da tua traduzione.

As you can see, .my italian is pretty crap... but my users will help find
mistakes and don't mind if it is not 100% complete.

Could you email me a copy?

gregw(at)mortbay.com

saluti
[originally posted on jforum.net by gregwilkins]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i haven't found italian translation so i'm trying to write one.
I put it_IT.properties file under JForum-2.1.4\WEB-INF\config\languages
dir and updated local.properties file. After restarting tomcat no changes were made.

can you explaining me why?

I'll send you the file when will be finished.


[originally posted on jforum.net by Sienda]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
What do you mean by "no changes were made"?

To use it_IT as default language, change the key "i18n.board.default" in SystemGlobals.properties

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I tried but with the same result

i've done these steps:

created a file named it_IT.properties (and filled it with italian translation of course...)
put it into JForum-2.1.4\WEB-INF\config\languages
added the entry it_IT = it_IT.properties into local.properties and
changed the key "i18n.board.default" in SystemGlobals.properties as you suggested.

finally i restarted tomcat but the language remains english. what' s wrong?

thanx
[originally posted on jforum.net by Sienda]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i almost forgot...

jforum 2.4.1

tomcat 4.1

postgres 8.0


[originally posted on jforum.net by Sienda]
 
Consider Paul's rocket mass heater.
 
subject: How to translate ?