Great !!! Thanks a lot.
Another thing, I would like to restrict the language only to french and
english.
So I try to add this in my deployment-fragment.xml :
<extension target="faces-config#APPLICATION">
<locale-config>
<default-locale>fr</default-locale>
<supported-locale>en_GB</supported-locale>
<supported-locale>en_US</supported-locale>
<supported-locale>fr</supported-locale>
</locale-config>
<message-bundle>messages</message-bundle>
</extension>
But it don't work... Do I need to modify the deployment-fragment.xml of this
jar : "nuxeo-platform-webapp-core-5.1.3.1.jar" to succeed ?
Thanks for your help.
On Mon, Mar 31, 2008 at 1:40 PM, Olivier Grisel <[EMAIL PROTECTED]> wrote:
> Romain FERE a écrit :
> > Hi everyone and thanks for the help you provide,
> >
> > I'm trying to get the active language (translation) in a Java Class
> > called by an event listener.
> >
> > I search in the API but I don't find anything interesting.
> >
> > I'm searching a method like get_language() or get_property("language"),
> > somebody know something like that ?
> >
>
> Inject the seam component named "localeSelector" and then:
>
> localeSelector.getLocaleString()
>
> --
> Olivier
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>
--
Romain FERE
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm