I tried multiple times to translate my Storyboard on Xamarin but can't make it work ... First i have a Splashcreen that well call my MainStoryboard (So inside AppDelegate)
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) {
var lang = NSLocale.PreferredLanguages[0];
Window = new UIWindow(UIScreen.MainScreen.Bounds);
UIStoryboard Storyboard = UIStoryboard.FromName("Main", null);
UIViewController initialViewController = Storyboard.InstantiateInitialViewController() as UIViewController;
Window.RootViewController = initialViewController;
Window.AccessibilityLanguage = lang;
Window.MakeKeyAndVisible();
return true;
}
I'have a storyoboard named Main.storyboard. Got en.lproj and fr.lproj inside ressource folder. Inside each folder i have a specific file named Main.strings like in the documentation (Following my project folder)
Example of Maiin.strings in French :
"458.text" = "Rechercher";
"473.text" = "Parametres";
"501.text" = "Informations";
"480.normalTitle" = "Mise a jour";
"481.normalTitle" = "A propos";
plist file which is also correct:
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleLocalizations</key>
<array>
<string>fr</string>
</array>
For me all of this is correct but it doesn't work ... I still have "???" that i'have put in the storyboard. (in 458 item there is "???" but with the localization it should be converted in "Rechercher").
Thank you for your help !