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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -