Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Localization - change current bundle so appropriate xibs are used?

$
0
0

We need to localize our application, and allow the user to choose the language at runtime.

I know how to get translated strings:

var path = NSBundle.MainBundle.PathForResource("en", "lproj");
NSBundle languagebundle = NSBundle.FromPath(path);
string word = languagebundle.LocalizedString(translate, "", "");

but is it possible to select/load the default/current bundle for the running application so that the translated xib files are used?

I can't find anything on the Apple developer docs.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>