To further illustrate this here is the situation in my current application.
- My browser is apparently set to the "en_US" local, for which I don't yet have a locale file.
- Because I don't have a i18n properties file for this locale, the framework tries to fall back to the "en" locale file, which I don't have yet either.
- What I do have is a manually defined fallback properties file called "resources/i18n/i18n.properties", which it will then try to fall back on and succeeds to do so.
Code example:
var sLocale = sap.ui.getCore().getConfiguration().getLanguage(), oBundle = jQuery.sap.resources({ url : "resources/i18n/i18n.properties", locale : sLocale }); ... var oButton = new sap.ui.commons.Button({ text : oBundle.getText('your-key-here') });