Rich:Calendar labels localization
gmarino Sep 2, 2011 10:48 AMI've red the guide for the richfaces calendar.
I've problems with the following properties:
RICH_CALENDAR_TODAY_LABEL
RICH_CALENDAR_CLEAN_LABEL
RICH_CALENDAR_APPLY_LABEL
RICH_CALENDAR_CLOSE_LABEL
RICH_CALENDAR_OK_LABE
RICH_CALENDAR_CANCEL_LABEL
As described in the guide i've created the following application properties:
calendar.properties with:
RICH_CALENDAR_TODAY_LABEL=Today
RICH_CALENDAR_CLEAN_LABEL=Clean
RICH_CALENDAR_APPLY_LABEL=Apply
RICH_CALENDAR_CLOSE_LABEL=Close
RICH_CALENDAR_OK_LABEL=Ok
RICH_CALENDAR_CANCEL_LABEL=Cancel
calendar_en.properties with:
RICH_CALENDAR_TODAY_LABEL=Today
RICH_CALENDAR_CLEAN_LABEL=Clean
RICH_CALENDAR_APPLY_LABEL=Apply
RICH_CALENDAR_CLOSE_LABEL=Close
RICH_CALENDAR_OK_LABEL=Ok
RICH_CALENDAR_CANCEL_LABEL=Cancel
calendar_it.properties with:
RICH_CALENDAR_TODAY_LABEL=Oggi
RICH_CALENDAR_CLEAN_LABEL=Pulisci
RICH_CALENDAR_APPLY_LABEL=Applica
RICH_CALENDAR_CLOSE_LABEL=Chiudi
RICH_CALENDAR_OK_LABEL=Ok
RICH_CALENDAR_CANCEL_LABEL=Cancella
I've added the following lines in the faces-config:
<application>
<message-bundle>calendar</message-bundle>
</application>
When I use an IT locale i see the correct translations (Today=Oggi,Clean=Pulisci,...), but if I use a "en-US" locale I do not see the "EN" traslations.
With "en-US" locale I still see the Italian translations: Today=Oggi,Clean=Pulisci,...
If I add a new properties:
calendar_en-US.properties with the same traslations as "calendar_en" than the traslations are correct: Today=Today,Clean=Clean,...
This should not be the correct behavior, I should not add the calendar_en-US.properties.
With the following files:
calendar.properties
calendar_en.properties
calendar_it.properties
If the "en-US" locale is used than the translations to apply are the one in calendar_en.properties.
Have I done something wrong.
Thanks for your replay
Giovanni Marino