[
http://jira.jboss.com/jira/browse/JBSEAM-1206?page=all ]
Pierre Raoul updated JBSEAM-1206:
---------------------------------
Attachment: i18n(2).patch
i18n_seam-gen(2).zip
i18n_src-gen(2).zip
Herewith a new patch to get 18n crud interface by reverse engeneering from data bases.
It doesn't use any new library (fmpp or other). And it doesn't rely on JBSEAM
843.
The patch is generated against today cvs. The files in i18n_seam-gen(2).zip are to be
copied in {seam_home}/seam-gen. The file in i18n_src-gen(2).zip is to be copied under
{seam_home}/src/gen.
To create a new project:
* seam new-project
* add any new language in {project_home}/resources/WEB-INF/faces-config.xml
* add the needed messages in {project_home}/resources/properties/success_label.xml:
they will be used as they are to create messages in "home_messages" files.
Specific messages can be specified for each entity.
* update {project_home}/resources/properties/entity_label.xml with translated words.
The syntaxe is the same than above but replace uppercase character inside entity
or property name by hyphen + lowercase char.
* add the transleted static files in {project_home}/view/layout
* translate "base_entity_messages" and "messages" properties files
in {project_home}/resources
* seam generate-entities
improve i18n in seam-gen
------------------------
Key: JBSEAM-1206
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1206
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 1.2.1.GA
Reporter: Pierre Raoul
Attachments: i18n(2).patch, i18n.zip, i18n_seam-gen(2).zip, i18n_src-gen(2).zip,
seam-gen.diff, seam-gen.zip
It would be great that seam-gen will generate crud pages and classes for an existing
Entity class:
- with all the literals replaced with #{messages['key']}
- and i18n default messages generated
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira