-
1. Re: change locale of
nbelaevski Jul 8, 2009 5:28 AM (in response to gamba)Hi Gamba,
This can be localized using message bundles. Please take a look at users guide. -
2. Re: change locale of
gamba Jul 8, 2009 7:19 AM (in response to gamba)Thank you for the answer,
I know about message bundles. But I did not know that I have to change values for system bundles or framework bundles like richfaces.
I thougt that changing the locale to german all bundle-values will appear in german. For the months it works, but not for the footer. So, this is an error in the german message bundle for richfaces?
Thx
Gamba -
3. Re: change locale of
nbelaevski Jul 8, 2009 7:31 AM (in response to gamba)There's no german localization bundle.
-
4. Re: change locale of
gamba Jul 8, 2009 9:26 AM (in response to gamba)Ok, found it in the docs. I 've read an old documentation ... thx
-
5. Re: change locale of
gamba Jul 9, 2009 2:11 AM (in response to gamba)I added the following messages in my resource bundle, but nothing changed in my webapp. The code of the app is the one from above:
# RichFaces-Calnedar labels
RICH_CALENDAR_TODAY_LABEL = Heute
RICH_CALENDAR_CLEAN_LABEL = Leeren
RICH_CALENDAR_CANCEL_LABEL = Abbrechen
Any hints? -
6. Re: change locale of
ilya_shaikovsky Jul 9, 2009 6:40 AM (in response to gamba)in my resource bundle
in application resource bundle? -
7. Re: change locale of
gamba Jul 9, 2009 8:04 AM (in response to gamba)I think so. I'm using this code in my faces-config.xml:
<application> ... <locale-config> <default-locale>de</default-locale> </locale-config> <message-bundle>messages</message-bundle> <resource-bundle> <base-name>messages</base-name> <var>msg</var> </resource-bundle> </application>
All other keys - values inside my messages.properties are found. But the Richfaces keys are not found ... -
8. Re: change locale of
gamba Jul 9, 2009 8:09 AM (in response to gamba)Ok I got it ....
After adding the additional
<message-bundle>messages</message-bundle>
know all keys are found ... without the message-bundle-tag, which I placed there after my previous thread-entry the keys were not found ...
Thx -
9. Re: change locale of
*ninho* Nov 23, 2009 9:32 AM (in response to gamba)I'm having the same problem Gamba, you managed to solve this?
I put the name of my file calendar_pt_BR.properties package org.richfaces.renderkit.calendar and does not work.
Can anyone help?
Thanks -
10. Re: change locale of
hwoarang Nov 23, 2009 12:51 PM (in response to gamba)Hi Ninho!
- Create a file (e.g.) mensagens.properties and put it in any package of you project (like util).
- Add the following messages in your mensagens.properties:# Labels para Richfaces Calendar RICH_CALENDAR_TODAY_LABEL = Hoje RICH_CALENDAR_CLEAN_LABEL = Limpar RICH_CALENDAR_CANCEL_LABEL = Cancelar
- Register your message file as resource bundle, in faces-config.xml:<application> <locale-config> <supported-locale>pt_BR</supported-locale> </locale-config> <message-bundle>util.mensagens</message-bundle> </application>
Try it. Works for me. -
11. Re: change locale of
*ninho* Nov 24, 2009 7:35 AM (in response to gamba)Hi Hwoarang
That way I had managed to make work, but I wonder if you are using the package org.richfaces.renderkit.calendar, but for the organization.
Thanks for the help...