当前位置: 首页 > news >正文

南通网站建设方案开发网站建设运营公众号运营合同

南通网站建设方案开发,网站建设运营公众号运营合同,昆明高端网站设计,自助网站免费在这个章节#xff0c;我们会将一些文本常量独立出一个资源文件 这样的话#xff0c;可以方便这些文本常量被翻译成任意的语言 这种国际化的操作#xff0c;我们一般命名为i18n 新建一个文件i18n.properties webapp/i18n/i18n.properties (New) showHelloButtonTextSay …在这个章节我们会将一些文本常量独立出一个资源文件 这样的话可以方便这些文本常量被翻译成任意的语言 这种国际化的操作我们一般命名为i18n 新建一个文件i18n.properties webapp/i18n/i18n.properties (New) showHelloButtonTextSay Hello helloMsgHello {0} 接着我们将这些常量绑定到Controller.js controller/App.controller.js sap.ui.define([sap/ui/core/mvc/Controller,sap/m/MessageToast,sap/ui/model/json/JSONModel,sap/ui/model/resource/ResourceModel ], (Controller, MessageToast, JSONModel, ResourceModel) {use strict;return Controller.extend(ui5.walkthrough.controller.App, {onInit() {// set data model on viewconst oData {recipient : {name : World}};const oModel new JSONModel(oData);this.getView().setModel(oModel);// set i18n model on viewconst i18nModel new ResourceModel({bundleName: ui5.walkthrough.i18n.i18n});this.getView().setModel(i18nModel, i18n);},onShowHello() {// read msg from i18n modelconst oBundle this.getView().getModel(i18n).getResourceBundle();const sRecipient this.getView().getModel().getProperty(/recipient/name);const sMsg oBundle.getText(helloMsg, [sRecipient]);// show messageMessageToast.show(sMsg);}}); }); 另外将view.xml中的常量文本替代 webapp/view/App.view.xml mvc:ViewcontrollerNameui5.walkthrough.controller.Appxmlnssap.mxmlns:mvcsap.ui.core.mvcButtontext{i18nshowHelloButtonText}press.onShowHello/Inputvalue{/recipient/name}descriptionHello {/recipient/name}valueLiveUpdatetruewidth60%/ /mvc:View Conventions The resource model for internationalization is called the i18n model. The default filename is i18n.properties. Resource bundle keys are written in (lower) camelCase. Resource bundle values can contain parameters like {0}, {1}, {2}, … Never concatenate strings that are translated, always use placeholders. Use Unicode escape sequences for special characters.
http://www.pierceye.com/news/633858/

相关文章:

  • 制作网站语言seo推广软件怎样
  • 企业网站建设的三种方式wordpress 导航高亮
  • 个人 建设图片分享网站网站开发设计步骤
  • 温州做阀门网站公司网站的建设时间怎么查
  • 好看的个人网站主页网站建设选择什么模式
  • 做内衣的网站校园网站建设网站
  • 学做网站论坛vip共享wordpress分类下文章排序
  • 文章内容网站系统网页编辑怎么打开
  • 建网站难吗查看关键词被搜索排名的软件
  • 同学会网站建设方案全免费无代码开发平台
  • 做网站给女朋友溧阳网站制作
  • 怎么注册电力建设公司网站wordpress用户注册邮箱验证
  • 用asp做的网站如何发布上海公司网站备案
  • 金华企业网站建设公司知识付费小程序源码
  • 网站建设十胜石公众号编辑器免费模板
  • 做网站用虚拟机还是服务器广东深广东深圳网站建设服务
  • 做网站设计所遇到的问题百度云盘官网登录入口
  • 网站建设合作流程图在北京做兼职哪个网站好
  • 哪些网站是phpwind做的广东各地最新病例
  • 精品网站设计wordpress第三方主题
  • 莱芜网站设计wordpress使用方法
  • 商城网站框架河南招标信息网
  • 卖辅助网站怎么做最大源码网站
  • 温州百度推广排名廊坊网站排名优化报价
  • 湖北建设信息网站百度一下百度主页
  • 做网站的销售员电话话术wordpress主页链接失效
  • 国外唯美flash个人网站欣赏微网站建设教程
  • 网站动态添加广告怎么做的东莞网站建设规范
  • 天津网站建设工作室seo网站推广实例
  • 网站建设销售工作职责外贸网站建设知识 列表