は、私が最初に私がよくXamarinイオスローカライズ
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」が(だから、AppDelegate内)私のMainStoryboardを呼び出すSplashcreenを持っている... Xamarinに私の絵コンテを翻訳するために複数回試みたが、それを動作させることができませんMain.storyboardというストーリーボードを持っています。 res.ourceフォルダ内にen.lprojとfr.lprojがあります。各フォルダの中に私が名前の特定のファイルを持っている(私のプロジェクトフォルダに続き)マニュアルのようなMain.stringsフランス語でMaiin.stringsの
例:ある
"458.text" = "Rechercher";
"473.text" = "Parametres";
"501.text" = "Informations";
"480.normalTitle" = "Mise a jour";
"481.normalTitle" = "A propos";
plistファイルまた訂正してください:
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleLocalizations</key>
<array>
<string>fr</string>
</array>
私の場合、これはすべて正しいですが動作しません...私はまだ "???"私はストーリーボードに入れました。 (458項目中に「???」がありますが、ローカライズでは「Rechercher」で変換する必要があります)。
ありがとうございました!
はあなたが読んで持っていますhttps://developer.xamarin.com/guides/ios/advanced_topics/localization_and_internationalization/#storyboard –
Main.Stringファイルを複製して同じ問題を修正しました。まだ問題があると感じる場合は、 –
はい"ドキュメントのように"意味するもの... –