打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
SAP Fiori internationalization(国际化)实现的一些例子

下图这个Opportunity的金额,在右边的明细页面里显示的是1880 USD,但为何在左边,显示的是2K这个近似值?

在Chrome开发者工具的调试器里,我们能看到从后台返回的金额确实是1880:

所以这个2k一定是前台UI5代码里进行的格式化:

答案就在上图sap.ca.ui.model.format.AmoutFormat.FormatAmoutShort这个方法里。

这里涉及到一个CLDR的概念:

CLDR - Unicode Common Locale Data Repository

The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages for such common software tasks.

1880转换成2k的调试:












要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
本地化杂拾
(4)【Oracle?MDM】什么是主数据和主数据管理系统
SAP Retail Merchandising Master Data
Globalize your On Demand Business
《人力资本管理》专访SAP高级副总裁、全球化服务负责人 Ferose V R
Visualizing Geospatial data with BlenderGIS and Bl...
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服