可以在运行时下载本地化资源吗? [英] Can localization resources be downloaded in runtime?

查看:71
本文介绍了可以在运行时下载本地化资源吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有可以访问Internet的应用程序,并且不想存储许多不同语言的string.xml文件.

I have application with internet access and don't want to store many string.xml files for different languages.

我想要什么:

  1. 应用程序仅包含一个带有英语字符串的string.xml.
  2. 当用户启动它时-我会看到用户的电话语言环境,并向我自己的服务器询问必要的语言文件. (资源密钥将相同)
  3. 当新资源文件到来时,所有界面都应使用新文件.

问题是如何在运行时更改现有文件或添加新的string.xml文件?

The question is how to change existing or add new string.xml file in runtime?

推荐答案

您显然无法在运行时更改,下载或删除strings.xml

You obviously cannot change, download or remove strings.xml at runtime

如果要存储位置,则必须使用SQLite存储来存储翻译.

If you want to store locations, you will have to use SQLite storage to store translations.

相似:
如何在运行时修改strings.xml文件
strings.xml的运行时修改

similar:
How to modify strings.xml file at runtime
run time modification of strings.xml

这篇关于可以在运行时下载本地化资源吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆