internationalization - How to Use Internalization i18n in a Controller in SAPUI5? -


could please explain how it's possible use i18n text in setvaluestatetext method in controller?

otp.setvaluestatetext("{i18n>co_maximal_60_h}"); 

the error msg in dialog shows "{i18n>co_maximal_60_h}" , not real text.

the resource bundle in following way accessible in controller:

...   var oresourcebundle = this.getview().getmodel("i18n").getresourcebundle();   otp.setvaluestatetext(oresourcebundle.gettext("co_maximal_60_h")); ... 

Comments

Popular posts from this blog

python - Getting ESC characters and non-printables from UDP socket / buffer -

sql - Oracle (+) operator equal number -