Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Localization issue in sap.ca.ui.model.format.DateFormat

$
0
0

Hi All

 

I am facing a wierd issue with the sap.ca.ui.model.format.DateFormat.

 

I am implementing the Leave Request Approve application for a customer and the dates do not come up in Arabic localization issues.PNG

 

Notice that the days ago still comes in English. I did a little digging and found that the  sap.ca.ui.utils.resourcebundle still contains English properties.

 

I tried replacing this with the Arabic File

 

var sCurrentLocale = sap.ui.getCore().getConfiguration().getLanguage();
var oI18nModel = jQuery.sap.resources({url : jQuery.sap.getModulePath("sap.ca.ui.i18n.i18n_ar", ".properties"), locale: sCurrentLocale});  sap.ui.getCore().setModel(oI18nModel, "sap.ca.ui.i18n");  sap.ca.ui.utils.resourcebundle = oI18nModel;

 

 

I tried with "sap.ca.i18n.i18n" without the "_ar", but it still doesn't work.

 

Any help will be appreciated.

 

Thanks


Viewing all articles
Browse latest Browse all 5512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>