COMMUNITY-SQUEEZE-WEB-1-32.20130415GIT19ABDF9
I'll leave this in the testing repo for the moment, as I have had to
make changes to just about every source file and I haven't had time yet
to really test it. Anyway, it's ready for anyone who wants to add a
language translation.
Changes...
Code:
--------------------
* Mon Apr 15 2013 - 1-32.20130415git19abdf9
- Latest git revision 19abdf9.
- Add i18n template.
--------------------
Install...
Code:
--------------------
sudo yum --enablerepo=community-squeeze-testing update community-squeeze-web
--------------------
[image: http://www.communitysqueeze.org/logos/i18n_fr.png]
On the index page, top right hand corner, for the moment we have
English/French/Dutch. (I'll change this to a combo-box, but it'll do for
the moment.) Once you select a language it will remain in the session
context, so any other page you navigate to from that point onwards, the
locale will remain in the session context.
The global default properties file is ApplicationResources.properties. I
have created dummy files for ApplicationResources_fr.properties and
ApplicationResources_nl.properties. I'd suggest as a starting point for
anyone who wants to create a translation, just rename a local copy of
the base 'ApplicationResource.properties'
(https://github.com/CommunitySqueeze/Web-GUI/raw/master/CommunitySqueeze/resources/ApplicationResources.properties)
to ApplicationResource_XX.properties, where XX is the 2 digit lang code.
Then edit to taste. Any properties that you don't wish to translate,
just remove the property. If it isn't there in the lang specific file
the default from the global default properties file (English) will be
used.
If you wish to test your changes, assuming you have installed version 32
of the web-gui (above), the war is deployed to
/usr/share/tomcat/webapps/CommunitySqueeze. I'll use French properties
file as an example.....
Code:
--------------------
sudo systemctl stop tomcat
sudo cp ApplicationResources_fr.properties
/usr/share/tomcat/webapps/CommunitySqueeze/WEB-INF/classes
sudo systemctl start tomcat
--------------------
If you wish to test a language file that isn't covered by the current
index page options, (fr / nl), eg. German, and you have created an
ApplicationResources_de.properties, copy the file into the deployed war
directory as above, then put the locale param into the session context
from the browser manually.....
Code:
--------------------
http://<wandboard_ip_address>:8080/CommunitySqueeze/Index.action?request_locale=de
--------------------
If you are comfortable with git, (and aren't going to screw up our
repo), send me a PM with your github username and email address and I'll
add you so you can check in your language property files directly, or
just email them to me and I'll add them.
Hope that makes sense. Any questions? ;)
------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98544
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix