-
1. Re: Issue with rich:calendar and internationalization
ebross Dec 15, 2009 3:51 PM (in response to marianoarg)Where is your "full.path.to.your.es.resources.bundles.file" in your faces-confg or page?
In your faces-config, try:
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
<locale-config>
<default-locale>es</default-locale>
</locale-config>
<resource-bundle>
<base-name>full.path.to.your.es.resources.bundles.file</base-name>
<var>labels</var>
</resource-bundle>
</application>
Better performance as the ResourcesBundles file is loaded at the application level.
Alternatively -- but a bit an old fashion style --, you can do:
<f:view ...>
<f:loadBundle basename ="full.path.to.your.es.resources.bundles.file" var ="labels"/>
</f:view>
Poor performance as the ResourcesBundles file is loaded per each request.
-
2. Re: Issue with rich:calendar and internationalization
ilya_shaikovsky Dec 16, 2009 3:40 AM (in response to marianoarg)Cheked:
created labels.properties and added
RICH_CALENDAR_TODAY_LABEL=Hoy
RICH_CALENDAR_CLEAN_LABEL=Limpiar
RICH_CALENDAR_APPLY_LABEL=Aplicar
RICH_CALENDAR_CLOSE_LABEL=Cerrar
RICH_CALENDAR_OK_LABEL=Ok
RICH_CALENDAR_CANCEL_LABEL=Cancelarthere
defined
<message-bundle>labels</message-bundle>
in faces-config
calendar get labels from properties.
-
3. Re: Issue with rich:calendar and internationalization
massep Mar 10, 2010 2:42 PM (in response to marianoarg)Hi,
Had to revive this post.
I'm using 3.3.1 and I have an issue with the French version of months. I see that it's working fine on your demo site but,
on my page, the french accent are displayed as unicode. For example, "é" is displayed as é.
The popup that appears when you click the calendar month, shows a list of month and year. On that popup, the abbreviated
month name display fine, I see the "é".
I tried upgrading to 3.3.2 but that didn't resolve the issue.
I searched the web for a while but can't find a solution to this.
Any idea what I could try next?
Thanks
-
4. Re: Issue with rich:calendar and internationalization
nbelaevski Mar 10, 2010 6:39 PM (in response to massep)Hi Pierre,
Are you using MyFaces?
-
5. Re: Issue with rich:calendar and internationalization
massep Mar 11, 2010 7:31 AM (in response to nbelaevski)No. Using JSF 1.2.10.