Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Change L10nResources.java.template
Change L10nResources.java.template [message #579062] Fri, 29 January 2010 09:23 Go to next message
Marco Schwarz is currently offline Marco Schwarz
Messages: 12
Registered: July 2009
Location: Plaus - Italy
Junior Member

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
Re: Change L10nResources.java.template [message #579093 is a reply to message #579062] Fri, 29 January 2010 11:47 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga Sandin
Messages: 59
Registered: July 2009
Member
Hi Marco,

Could you open a bug on MTJ bugzilla describing these problems?

Thanks
Diego
Re: Change L10nResources.java.template [message #579293 is a reply to message #579062] Sun, 31 January 2010 06:58 Go to previous messageGo to next message
Marco Schwarz is currently offline Marco Schwarz
Messages: 12
Registered: July 2009
Location: Plaus - Italy
Junior Member

done

bye
Marco
Re: Change L10nResources.java.template [message #579426 is a reply to message #579293] Mon, 08 February 2010 12:13 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga Sandin
Messages: 59
Registered: July 2009
Member
Thanks.
Previous Topic:Obfusator question
Next Topic:Change L10nResources.java.template
Goto Forum:
  


Current Time: Wed Jul 23 10:01:39 EDT 2014

Powered by FUDForum. Page generated in 0.03415 seconds