i18n in JMesa

98 views
Skip to first unread message

Miguel Almeida

unread,
Jul 24, 2012, 5:36:57 AM7/24/12
to jmesa...@googlegroups.com
Hi,

I am adding internationalization to my application and I don't quite understand how this is achieved in JMesa. Here are a couple of questions.

1) Usually we have a .properties file xxx and xxx_de, xxx_pt files for i18n (eg: displaytag, struts). In the jmesaMessagesLocation context-param of the web.xml we define the jmesaResourceBundle file. Does this mean we must create a jmesaResourceBundle_XX file for internationalization?

2) How does jmesa pick up the Locale? Different frameworks have different ways of defining it (some do it in the request, others in a session variable). Displaytag, for example, has an interface you may extend to provide locale resolution (http://www.displaytag.org/1.2/i18n.html ). How can this be achieved in Jmesa?

3) The same questions apply to the "next, previous,x items found". In http://code.google.com/p/jmesa/wiki/Messages it seems that this is not customizable. Is this so? And, if so, question 2 applies - how will the correct locale be picked up?


Cheers,

Miguel Almeida

Miguel Almeida

unread,
Jul 24, 2012, 5:42:44 AM7/24/12
to jmesa...@googlegroups.com
Also, this assumes we're using the JSP tags <jmesa:tableModel> (as they're a lot more non-invasive and allow for the controller to be jmesa agnostic).

Elías Manchón López

unread,
Aug 1, 2012, 3:52:04 AM8/1/12
to jmesa...@googlegroups.com
Hi Miguel,

I'm trying implement i18n with jMesa but it doen't work, does it work for you?.

Thanks in advance!!

manzat

unread,
Jul 16, 2013, 10:28:31 AM7/16/13
to jmesa...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages