Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: messagebundle_de_DE.properties not found

$
0
0

To further illustrate this here is the situation in my current application.

 

i18n.png

 

  1. My browser is apparently set to the "en_US" local, for which I don't yet have a locale file.
  2. 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.
  3. 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')

});


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>