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 #511012] Fri, 29 January 2010 14:23 Go to next message
Marco Schwarz is currently offline Marco SchwarzFriend
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 #511066 is a reply to message #511012] 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 #511218 is a reply to message #511012] Sun, 31 January 2010 11:58 Go to previous messageGo to next message
Marco Schwarz is currently offline Marco SchwarzFriend
Messages: 12
Registered: July 2009
Location: Plaus - Italy
Junior Member

done

bye
Marco
Re: Change L10nResources.java.template [message #513065 is a reply to message #511218] 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: Wed Dec 17 21:31:37 GMT 2014

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

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