2016-08-23 42 views

回答

0
var oBundle; 
defaultLocale = "en-EN"; 
var countryLocale = "de-FR"; 
oBundle= jQuery.sap.resources({url : "i18n/labels-en.properties", locale: defaultLocale}); 
//If need to use any other language have a condition to define accordingly. 
//oBundle= jQuery.sap.resources({url :"i18n/labels-fr.properties", locale: countryLocale }); 

而在你的控制略低于至setText

oBundle.getText("label.title"); 
0

在类型的文本是硬编码并将其绑定到库捆绑。所以你不能改变它们。唯一的做法是继承UI5类型并将其扩展到您的需求。

幸运的是,您总是可以使用Control事件validationErrorvalidationSuccess自行处理验证并在那里使用您自己的文本。