Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Change L10nResources.java.template
Change L10nResources.java.template [message #579062] Fri, 29 January 2010 14:23 Go to next message
Marco Schwarz is currently offline Marco SchwarzFriend
Messages: 13
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 16:47 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
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 11:58 Go to previous messageGo to next message
Marco Schwarz is currently offline Marco SchwarzFriend
Messages: 13
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 17:13 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 59
Registered: July 2009
Member
Thanks.
Previous Topic:Change L10nResources.java.template
Next Topic:"enable localization support"
Goto Forum:
  


Current Time: Tue Mar 19 07:53:47 GMT 2024

Powered by FUDForum. Page generated in 0.02439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top