Change L10nResources.java.template [message #511012] |
Fri, 29 January 2010 09:23  |
Eclipse User |
|
|
|
Hi,
I changed the L10nResources.java.template because every modification on the language package cause 2 problems:
1. when I call getString(String key) with a key, doesn't in the language package the source return me a null value.
..
String result = (String) this.values.get(key);
if (result == null) {
result = "!!" + key + "!!";
}
return result;
..
2. Change the function getResourcePath(), because my PROPERTIES_PCKG was empty, so the function return //message_en-US.properties
..
buffer.append("/");
if (PROPERTIES_PCKG.length() > 0) {
buffer.append(PROPERTIES_PCKG);
buffer.append("/");
}
buffer.append(PROPERTIES_PRFX);
if (locale.length() > 0) {
buffer.append("_");
}
buffer.append(locale);
..
Someone has the same problem? Or an other solution?
thanks
Marco
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03889 seconds