简体   繁体   中英

Update various strings.xml for valid reason

I'm developing an application which is multi-lingual supported. Now i have not filled my values folder with any strings. My doubt is

  • I want to fetch the string file contents for various languages only at runtime from my server. (bcoz i don't want to give an update if i changed a single string of any language). Is it possible.

Or is there any other way to achieve this?

Not directly- the android string system requires everything to be in resources at compile time. Of course, you can always just not use that and provide your own string lookup. Back in the mid-2000s we did that on some big websites with a Berkley DB of all the various strings in each language, and we just pulled new DBs as needed. But to do something like that you'd have to completely not use Android's built in system and roll your own.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM