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

seo网站推广什么意思写一个有图片的网页

seo网站推广什么意思,写一个有图片的网页,html中文美食网站模板,asp网站开发招聘在这个章节,我们会将一些文本常量独立出一个资源文件 这样的话,可以方便这些文本常量被翻译成任意的语言 这种国际化的操作,我们一般命名为i18n 新建一个文件i18n.properties webapp/i18n/i18n.properties (New) showHelloButtonTextSay …

在这个章节,我们会将一些文本常量独立出一个资源文件

这样的话,可以方便这些文本常量被翻译成任意的语言

这种国际化的操作,我们一般命名为i18n

新建一个文件i18n.properties

webapp/i18n/i18n.properties (New)

showHelloButtonText=Say Hello
helloMsg=Hello {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:ViewcontrollerName="ui5.walkthrough.controller.App"xmlns="sap.m"xmlns:mvc="sap.ui.core.mvc"><Buttontext="{i18n>showHelloButtonText}"press=".onShowHello"/><Inputvalue="{/recipient/name}"description="Hello {/recipient/name}"valueLiveUpdate="true"width="60%"/>
</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.yayakq.cn/news/217671/

相关文章:

  • dede 网站地图wordpress实现多用户
  • 网站建设分为哪几种常德房产网
  • 做蓝牙音箱在什么网站上找客户环境网站模板
  • 做服装网站服务wordpress wowslider
  • 收费网站解决方案网站海外推广资源
  • 纪实摄影网站推荐设备报价单模板
  • 一个网站的二维码怎么做做网站运营需要具备哪些能力
  • 软件项目网站建设实验报告制作ppt的软件是什么
  • seo教学网站电子商务网站规划、电子商务网站建设
  • 微网站内容页模板深圳500强企业名单
  • 外国人做的学汉字网站上往建站
  • 现在什么网站做基础销量好需求分析 网站
  • 广告案例网站西部网站管理助手4.0
  • 大厂县建设局网站app界面设计流程
  • 青岛做教育的网站wordpress display_name
  • 宁波网站建设制作网络公司做的网站怎样适配手机屏幕
  • vs 2017c 怎么建设网站加工平台接单
  • 做网站建设电话销售公众号小程序商城怎么制作
  • 天津外贸公司网站制作自己搭建个人网站
  • 澧县网站建设wordpress 多字段
  • 电子商务网站后台需求哈尔滨的网站建设公司哪家好
  • ps做网站首页规范尺寸网站型销售怎么做的
  • 公司网站免费建立网络推广优化能有排名吗
  • 晋江网站设计泉州名扬专业杭州 高端网站建设
  • 佛山企业制作网站网站上图片可以做商业作品吗
  • 足彩推荐网站开发合肥找工作最新招聘信息
  • app软件定制开发一般多少钱湘潭做网站优化
  • 网站设计模板免费建站六安人论坛
  • 四川煤矿标准化建设网站软文发布平台哪个好
  • 织梦网站做站群海口oa