-
1. Re: <rich:calendar apply button lable
ilya_shaikovsky Jan 17, 2008 10:50 AM (in response to alexguru)you should use our internacionalization method to redefine and localize the labels.
you may use application resource bundle and define:
RICH_CALENDAR_APPLY_LABEL
RICH_CALENDAR_TODAY_LABEL
RICH_CALENDAR_CLOSE_LABEL
RICH_CALENDAR_OK_LABEL
RICH_CALENDAR_CLEAN_LABEL
RICH_CALENDAR_CANCEL_LABEL
there.
Or you may pack org.richfaces.renderkit.calendar resource bundle with your jars defining the same properties. -
2. Re: <rich:calendar apply button lable
alexguru Jan 17, 2008 11:31 AM (in response to alexguru)Thanks very match.
-
3. Re: <rich:calendar apply button lable
alexguru Jan 18, 2008 1:14 PM (in response to alexguru)I defined RICH_CALENDAR_APPLY_LABEL in my application resource bundle, but i have troubles with it.
When i defined on russion language i have unreadeble text, something like that "?????" (i have such text in all jsf components )
So before i deploy my resource bundle i use native2ascii.exe and on exit i have
RICH_CALENDAR_TODAY_LABEL=\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456
Standart jsf components show this like in my resourse bundle, but <rich:calendar shows 'Сьогодні'.
Can i do something to make <rich:calendar do not convert "\u0421..." to " 'С...... ' "? -
4. Re: <rich:calendar apply button lable
alexguru Jan 18, 2008 1:19 PM (in response to alexguru)My early post displayed not as i write it.
I defined RICH_CALENDAR_APPLY_LABEL in my application resource bundle, but i have troubles with it.
When i defined on russion language i have unreadeble text, something like that "?????" (i have such text in all jsf components )
So before i deploy my resource bundle i use native2ascii.exe and on exit i have
RICH_CALENDAR_TODAY_LABEL=\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456
Standart jsf components show this like in my resourse bundle, but <rich:calendar shows & # 1057 ; & # 1100 ; & # 1086 ; & # 1075 ; & # 1086 ; & # 1076 ; & # 1085 ; & # 1110;.
Can i do something to make <rich:calendar do not convert \u0421... to & # 1057 ? -
5. Re: <rich:calendar apply button lable
alexguru Jan 18, 2008 1:29 PM (in response to alexguru)some more ...
If i change<%@ page contentType="text/html;charset=windows-1251" language="java" %>
to<%@ page contentType="text/html;charset=utf-8" language="java" %>
then my RICH_CALENDAR_APPLY_LABEL shows what i need, but all my others label are unreadable.
Can i do somethig to make <rich:calendar not to convert my defined lable to UTF-8? -
6. Re: <rich:calendar apply button lable
janson12 May 6, 2008 12:46 PM (in response to alexguru)How does one refer to the resource bundle at all in the case of the calendar? I did smth similar with the fileupload:
uploadControlLabel="#{tariff_msg.RICH_FILE_UPLOAD_UPLOAD_LABEL}"
it works just great, however there is no such attribute likecalendarApplyLabel
which could be redefined...or did i miss smth??