How to Use Internalization i18n in a Controller in SAPUI5?
问题 Could anyone please explain how it's possible to use a i18n text in a setValueStateText method in a controller? oTP.setValueStateText("{i18n>co_Maximal_60_h}"); The error msg in the dialog shows only "{i18n>co_Maximal_60_h}" and not the real text. 回答1: You cannot set the binding string via setter method. Here you have 2 options: set the binding right in the view (use the same string but in XML) utilize the ResourceBundle: var oResourceBundle = this.getOwnerComponent().getModel("i18n")