Hi!
We have a navigation framework created with XPages and javascript (both server and clientside).
While we were using it with single language apps, it had worked very fine.
Now, we have to internationalize it. The constant string were are now from xp:bundle resource, and it works fine.
But the framework has some inner .properties files, that contains lots of stuff for initialization. We’ve used this code, to get the property values:
var oPropertiesResource = new com.ibm.xsp.resource.BundleResource();
oPropertiesResource.setSrc(this.sPropertiesFile);
oPropertiesResource.component = view;
this.oPropertiesResourceStrings = oPropertiesResource.contents;
this.oPropertiesResourceStrings.getString(“property_name”);
The problem is that this method doesn’t work now, with the internationalization turned on. I’ve tried to create the same .properties files, with the added language locale (property_en.properties, property_hu.properties).
But when I call .getString() it will give back an undefined value.
Can anyone help me?
Thanks ![]()