Subject: Response
Hi Lothar,
No it’s not really possible to have one set of property files.
Update 1: This is an issue with 8.5 but is fixed in 8.5.1(SPR: MKEE7JQGF4). It only occurs with load time bindings. This is a workaround or the solution you found is fine.:
if (typeof res == ‘undefined’) {
var bundle = new com.ibm.xsp.resource.BundleResource();
bundle.setSrc("/strings.properties");
bundle.setComponent(view);
res = bundle.getContents();
}
Update2: There is no one way to do this but if you create a custom pager you can. Follow these instructions:
As regards the standard strings, by default they are localized in the server itself,
so that when you add add the server language packs,
the localized translation of “Next” and “Previous” will be available.
That way, all the users can share the same translations of the strings.
If you do want to provide your own translation for default strings directly in the application,
it is usually possible to configure it, though the instructions vary for each string.
To localize the pager Next and Previous strings, change the pager as follows:
Select the pager, in the Pager style, choose Custom.
Select each pager control you wish to display and use the green arrow button to add it to the pager.
For each pager control you have added, 1. click on it in the Design tab of the editor, or in the outline view,
then 2. enter the label you wish to supply for the control.
That label will be extracted into the .properties file for this XPage.
Update 3: If the language properties files are not found, in this case Italian, then firstly it will look up the language list in the browser and select the language which is at the top most of the list, in this case English and show that, if there is properties files for that language. If there are no other languages in the list then the default language will be used or if there is no languages in the list which have properties files. So to show the default remove the other languages from the browser list.