Hi there !
I created a new project with SpringRoo 1.2.
I used the reverse engineering to generate all the BO objects, the service layer and the UI pages.
Now I try to internationalize my application.
I added the 6 languages handled by default by SpringRoo without any trouble.
Now I have several questions :
1) why are there only 6 languages handled by default ? I saw several properties files for other languages on internet : maybe they could be added ?
2) I tried to add new languages but it is very hard (at least for me...). I didn't understand the story about creating an i18n project ... but I found two existing project around French and Russian. I tried to add them using those two Roo commands :
... but this didn't work :'(
osgi start --url http://spring-roo-addon-mvc-i18n-russian.googlecode.com/svn/repo/net/dzmitryb/roo/addon/mvc/russian/net.dzmitryb.roo.addon.mvc.russian/0.1.0.BUILD/net.dzmitryb.roo.addon.mvc.russian-0.1.0.BUILD.jar
osgi start --url http://code.google.com/p/fr-test/source/browse/repo/org/springframework/roo/addon/i18n/french/org.springframework.roo.addon.i18n.french/0.1.0.RELEASE/org.springframework.roo.addon.i18n.french-0.1.0.RELEASE.jar
The first one added the messages_ru.properties file, the russian flag icon and changed the footer.jspx file ! But when I cliqued on the flag, I had the english language ...
I created the messages_fr.properties file, added the expected icon and changed the footer.jspx file ... same result !
I tried a lot of changes, install, uninstall, and ... suddenly, I don't know why, but it worked !
3) now I try to add portuguese language ... I added the properties file, the icon and changed the footer.jspx file ... but it doesn't work :'(
My question main is : all the structure is set so that the application can switch from one language to another, just by specifying the 2 letters country code :
So why isn't it possible to simply add a new property file and a new button to make it works ?
<util:language label="English" locale="en"/>
<util:language label="Franšais" locale="fr"/>
Thanks in advance for attention.