Re: i18n and StrutsClientConnector
Raoul Pierre <[email protected]> Fri, 03 Jun 2005 17:18:27 +0200
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Shash, Sasvata (Shash) Chatterjee a écrit : > Pierre, > >> >> >> To avoid to deal with Keel Message from inside jsp pages, I think it >> would be better to translate them in StrutsClientConnector and then >> sent the translated string. >> >> Any objection? >> > I think this makes sense. But, how about going back even further and > doing it in AbstractWebappClientConnector so it works on not just > Struts, but all client types? Indeed... First I'm trying to get a working i18n solution with StrutsClientConnector. Next step, 2 issues: - I use properties files to get the key/message for dynamic messages and internal literals. At the moment I put them in conf/client/struts as it's the only way to get them in final installation. For a more general solution, these files need to be copied whatever the final client. At least as a default solution: see also Aleks' solution with a DB. - For internal literals, I use the basename (=configuration parameter in Struts' message-resources) of the resources files to find them, but for dynamic messages I use the Struts bundle key. For other clients, eitheir we use only basename, or we find a way to deal with key/basename. I prefer this last solution. Pierre PS : my email about Message for AuthenticationManager.getDomainDescrip is out of date. I don't need it. http://keelframework.org/documentation.shtml Keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com