-
FEATURED COMPONENTS
First time here? Check out the FAQ!
As i checked this example ZK Support hindi when we have properties file but what about its own labels like OK,CANCEL,YES,NO
which generally come in MessageBox
something like this
Messagebox.show(resourceBundle.getText("MSG_DELETE_BOX"), resourceBundle.getText("MSG_DIALOG_BOX"), Messagebox.YES | Messagebox.NO,
Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener() {
}
Now i want Messagebox.YES | Messagebox.NO
button should be in hindi I used below code.
if(argLang.equalsIgnoreCase("fr_ca")){
Locales.setThreadLocal(Locales.getLocale(Locale.FRENCH));
Executions.getCurrent().getSession().setAttribute(Attributes.PREFERRED_LOCALE,new Locale("hi","IN"));
Labels.reset();
}
But not worked anyone tell me ZK have properties file in Hindi as well so Label should be reset.
Oke I did some research.
In zul-6.5.3.jar when you open it you will see this folder :
metainfo/mesg
In that folder are all the propertie files(those file contains the translated text).
I do not see hi between those files.
Maybe you can make a new propertie file and add it in that folder with winrar. (I could be that you need to sign the rar again and otherwise zk have to do it).
Edit :
I did try to override the properties from withing mine own project (setting the dutch text to something else.)
What did I specificly try?
Created the msgzul_nl.properties in the same location and mine own properties loction as in the jar but in mine project.
This does not work!
Greetz chill.
Asked: 2014-01-28 10:47:13 +0800
Seen: 23 times
Last updated: Jan 29 '14