Вопрос

I want to be able to update localized strings file at runtime, but is not possible.

I thought about this: My app uses web service. So I could have a web service that returns a .strings file and the file would be saved on the apps directory.

Now the problem: How can I change the NSLocalizedString to read from my file? Is it possible?

The app is not for apple store, so is not a problem if apple does not approve changing the app language.

Это было полезно?

Решение

You can download the data into a bundle in your sandbox and use NSLocalizedStringFromTableInBundle() to get the proper localisation using the built in system.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top