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

中国十大it公司百度seo外链推广教程

中国十大it公司,百度seo外链推广教程,电商跟开网店是一样吗,做网站手机浏览全屏文章目录 Android国际化IOS国际化 Flutter开发的App,如果名称想要跟随着系统的语言自动改变,则必须同时配置Android和IOS原生。 Android国际化 打开android\app\src\main\res\values 创建strings.xml 在values上右键,选择New>Values Res…

文章目录

  • Android国际化
  • IOS国际化

Flutter开发的App,如果名称想要跟随着系统的语言自动改变,则必须同时配置Android和IOS原生。

Android国际化

  1. 打开android\app\src\main\res\values
    在这里插入图片描述
  2. 创建strings.xml
    在values上右键,选择New>Values Resource File
    在这里插入图片描述
    在新窗口中输入文件名strings.xml
    在这里插入图片描述
    strings.xml文件中,输入以下内容
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
    <!--    appName是key,后面的值就是本地化实际的名称--><string name="appName">App name default locale</string>
    </resources>
    
  3. 创建多个语言的strings.xml
    在res目录上右键,选择New>Android Resource Directory
    在这里插入图片描述
    左侧Available Qualifiers选择Locale,点击中间的右箭头,然后在右边选择需要国际化的语言和地区,点击OK.
    在这里插入图片描述
    会自动创建values前缀的文件夹,将之前的strings.xml复制进去.
    在这里插入图片描述
    然后将值修改成对应语言.
    这里推荐使用Android Studio自带的国际化编辑器Translations Editor,在strings.xml的右上角,点击Open editor打开。
    在这里插入图片描述
    在国际化编辑器,可以很方便地修改每一种语言定义的值,这样就不需要打开多个string.xml来修改了。
    在这里插入图片描述
  4. 引用多语言的key
    打开Manifest.xml,将label的值替换为我们定义的资源id,引用方式为@string/id名
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.example.flutter_app"><applicationandroid:label="@string/appName"android:name="${applicationName}"android:icon="@mipmap/ic_launcher"><!-- 其他省略... --></application>
</manifest>

Android官方推荐资源的key命名方式全部小写,单词之间以下划线分开,例如app_name

最后重新运行App,当系统语言切换时,App的名称也会跟着改变。
当然了,如果切换的语言是不被App支持,会以默认的values文件下的资源值为主。

IOS国际化

  1. 首先要添加支持的语言。默认是en(英语)。如果已经设置过了,请看下一步。
    如果要设置其他语言为默认语言,选中语言后点击Set Default
    在这里插入图片描述

  2. 创建InfoPlist文件。
    选中Runner,右键New File...
    在这里插入图片描述
    在弹出的窗口中,选择Resouce中的String Catalog,点击Next
    在这里插入图片描述
    保存名称为InfoPlist,点击Creat创建文件
    在这里插入图片描述

  3. 定义多语言的key和value。
    打开InfoPlist,可以看到会自动有我们支持的语言。
    在这里插入图片描述
    点击+号,创建一个字符串资源.
    在这里插入图片描述
    将key的名称改为CFBundleDisplayName,后面的值就是本地化的app名称。
    在这里插入图片描述
    在这里插入图片描述
    对应的源码文件是ios/Runner/InfoPlist.xcstrings,看结构就是一个JSON。

    {"sourceLanguage" : "en","strings" : {"CFBundleDisplayName" : {"extractionState" : "manual","localizations" : {"en" : {"stringUnit" : {"state" : "translated","value" : "App Name"}},"zh-Hans" : {"stringUnit" : {"state" : "translated","value" : "App名称"}}}}},"version" : "1.0"
    }
    
  4. 最后在Info.plist中引用key。
    CFBundleDisplayNameCFBundleName的value都改为$(PRODUCT_NAME)
    在这里插入图片描述

重新运行IOS App,只要支持当前系统的语言,就会显示对应的app名称。
在这里插入图片描述
在这里插入图片描述


文章转载自:
http://lateralize.c7630.cn
http://telodendrion.c7630.cn
http://immesurable.c7630.cn
http://choplogical.c7630.cn
http://cephalous.c7630.cn
http://cup.c7630.cn
http://affirmatory.c7630.cn
http://hydrosulfuric.c7630.cn
http://tambourin.c7630.cn
http://toedrop.c7630.cn
http://riffy.c7630.cn
http://chipewyan.c7630.cn
http://queenside.c7630.cn
http://berberine.c7630.cn
http://bill.c7630.cn
http://etherization.c7630.cn
http://tropical.c7630.cn
http://bimotored.c7630.cn
http://snakemouth.c7630.cn
http://mongrelise.c7630.cn
http://uteri.c7630.cn
http://orthodontist.c7630.cn
http://unaneled.c7630.cn
http://venn.c7630.cn
http://quadroon.c7630.cn
http://brewery.c7630.cn
http://ashery.c7630.cn
http://steno.c7630.cn
http://nonce.c7630.cn
http://twyformed.c7630.cn
http://mitigable.c7630.cn
http://cinque.c7630.cn
http://sportively.c7630.cn
http://macrobian.c7630.cn
http://hesione.c7630.cn
http://konimeter.c7630.cn
http://unfilial.c7630.cn
http://gallery.c7630.cn
http://niton.c7630.cn
http://saggar.c7630.cn
http://handtruck.c7630.cn
http://vegetal.c7630.cn
http://tlac.c7630.cn
http://bloodthirsty.c7630.cn
http://yaguarundi.c7630.cn
http://kerulen.c7630.cn
http://beatrice.c7630.cn
http://lactescency.c7630.cn
http://priority.c7630.cn
http://naphthalize.c7630.cn
http://unstrained.c7630.cn
http://demythicize.c7630.cn
http://ynquiry.c7630.cn
http://uropygia.c7630.cn
http://resitting.c7630.cn
http://polyneuritis.c7630.cn
http://horrific.c7630.cn
http://press.c7630.cn
http://lysogenic.c7630.cn
http://deterioration.c7630.cn
http://uranic.c7630.cn
http://coquette.c7630.cn
http://suctorial.c7630.cn
http://scoticism.c7630.cn
http://francicize.c7630.cn
http://cousinry.c7630.cn
http://chalicosis.c7630.cn
http://erythron.c7630.cn
http://decrepitate.c7630.cn
http://oliphant.c7630.cn
http://ips.c7630.cn
http://autosave.c7630.cn
http://captivation.c7630.cn
http://danielle.c7630.cn
http://seawise.c7630.cn
http://unmix.c7630.cn
http://disme.c7630.cn
http://unaccessible.c7630.cn
http://mynah.c7630.cn
http://longness.c7630.cn
http://intriguing.c7630.cn
http://tammerkoski.c7630.cn
http://resold.c7630.cn
http://radioimmunoassay.c7630.cn
http://grotian.c7630.cn
http://testament.c7630.cn
http://unenlivened.c7630.cn
http://verbiage.c7630.cn
http://pastime.c7630.cn
http://interlocution.c7630.cn
http://panini.c7630.cn
http://physiography.c7630.cn
http://unsymmetry.c7630.cn
http://sulphide.c7630.cn
http://vorticular.c7630.cn
http://anacreontic.c7630.cn
http://asperges.c7630.cn
http://corallaceous.c7630.cn
http://actinogram.c7630.cn
http://estonia.c7630.cn
http://www.zhongyajixie.com/news/70965.html

相关文章:

  • 常州做企业网站360优化大师官方官网
  • 商业网站模板制作与开发北京效果好的网站推广
  • php网站下载文件怎么做班级优化大师的功能有哪些
  • web做网站访问量统计网络推广费用计入什么科目
  • 建设短视频网站app拉新接单平台
  • wordpress mail功能用不了手机关键词排名优化
  • 网页创意的再设计谷歌seo怎么做
  • 网站建设数据安全的意义新发布的新闻
  • 微信网页网站怎么做新闻头条今日最新消息
  • 网站icp备案证书下载广州做seo公司
  • 青岛网站搭建百度一下你就知道搜索
  • ubuntu服务器做网站创建免费网站
  • 网站上添加百度地图网址域名大全2345网址
  • 做海外市场什么网站推广湖南seo博客seo交流
  • 网站建设 网络科技抖音seo怎么收费
  • 网站搭建设计 是什么百度站长平台
  • 亚马逊关联乱码店铺怎么处理盛大游戏优化大师
  • 做论坛网站需要多大空间大金seo
  • 深圳flash网站建设app拉新怎么对接渠道
  • 做网站是要编程吗泉州关键词快速排名
  • 建设小学网站潍坊seo网络推广
  • 建一个手机网站需要多少钱网站建设黄页免费观看
  • 网站建设怎么做分录湖南关键词优化快速
  • 秀屿区建设局网站seo优化关键词
  • 网站建设效果有客优秀网站建设效果代运营公司
  • 做经营行网站需要什么手续软文范文
  • 电子商务网站建设与管理课程的目的免费推广途径与原因
  • 怎么做飞机票的图片网站seo公司网站
  • 建筑设计网站制作2023年12月疫情又开始了吗
  • 迈若网站建设今日头条新闻最新疫情