Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.05 KB

Localized_Texts_for_Extended_Apps_2edc3f9.md

File metadata and controls

22 lines (13 loc) · 1.05 KB
loio
2edc3f99883e4a068f040d9e844f14fa

Localized Texts for Extended Apps

You can add custom localized text files that contain additional texts or texts that overwrite the original texts to the sap.ui.model.resource.ResourceModel

The enhanced resource model tries to resolve the localized texts from the custom resource bundle first. If a text does not exist there, it tries to look up the text in the resource bundle of the original app. Custom resource bundles cannot be added by standard extension configuration, but must be added as part of a controller extension as shown in the following example:

var oModel = new sap.ui.model.resource.ResourceModel({bundleUrl:"./testdata/messages.properties"});
oModel.enhance({bundleUrl:"./testdata/messages_custom.properties"});