1. <small id='uvZvK'></small><noframes id='uvZvK'>

    2. <tfoot id='uvZvK'></tfoot>
    3. <i id='uvZvK'><tr id='uvZvK'><dt id='uvZvK'><q id='uvZvK'><span id='uvZvK'><b id='uvZvK'><form id='uvZvK'><ins id='uvZvK'></ins><ul id='uvZvK'></ul><sub id='uvZvK'></sub></form><legend id='uvZvK'></legend><bdo id='uvZvK'><pre id='uvZvK'><center id='uvZvK'></center></pre></bdo></b><th id='uvZvK'></th></span></q></dt></tr></i><div id='uvZvK'><tfoot id='uvZvK'></tfoot><dl id='uvZvK'><fieldset id='uvZvK'></fieldset></dl></div>
      • <bdo id='uvZvK'></bdo><ul id='uvZvK'></ul>

        <legend id='uvZvK'><style id='uvZvK'><dir id='uvZvK'><q id='uvZvK'></q></dir></style></legend>

        首次运行时为 iPhone 应用程序设置默认语言

        Setting default language for iPhone app on first run(首次运行时为 iPhone 应用程序设置默认语言)
          <tbody id='0qJG9'></tbody>

        <legend id='0qJG9'><style id='0qJG9'><dir id='0qJG9'><q id='0qJG9'></q></dir></style></legend>
          • <bdo id='0qJG9'></bdo><ul id='0qJG9'></ul>

            <small id='0qJG9'></small><noframes id='0qJG9'>

                <i id='0qJG9'><tr id='0qJG9'><dt id='0qJG9'><q id='0qJG9'><span id='0qJG9'><b id='0qJG9'><form id='0qJG9'><ins id='0qJG9'></ins><ul id='0qJG9'></ul><sub id='0qJG9'></sub></form><legend id='0qJG9'></legend><bdo id='0qJG9'><pre id='0qJG9'><center id='0qJG9'></center></pre></bdo></b><th id='0qJG9'></th></span></q></dt></tr></i><div id='0qJG9'><tfoot id='0qJG9'></tfoot><dl id='0qJG9'><fieldset id='0qJG9'></fieldset></dl></div>
                  <tfoot id='0qJG9'></tfoot>

                  本文介绍了首次运行时为 iPhone 应用程序设置默认语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个应支持两种语言的应用程序:英语和法语.但是,由于尚未完成英文翻译,我们只想将其部署为法文,稍后再添加英文翻译.

                  I'm developing an application that should support two languages: English and French. However because English translation is not done yet we want to deploy it in French only and later on add English translation later on.

                  问题是我不想从我的代码中去除英语,因为某些部分已经完成,该语言有不同的 NIB 等等.相反,我只想在我的代码中暂时禁用英语应用程序.

                  The problem is that I don't want to strip English language out of my code since some parts are already done, there are different NIBs for that language etc. Instead I'd just want english language to be temporary disabled in my app.

                  我所做的是我把这段代码作为第一条指令

                  What I did is I put this code as the first instruction of

                  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
                  
                  NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
                  [defaults setObject:[NSArray arrayWithObjects:@"fr", nil] forKey:@"AppleLanguages"];
                  [defaults synchronize];
                  

                  除了一件事,它工作正常.安装后第一次启动应用程序时,它仍然是英文的.这可能是因为尚未为其设置 AppleLanguages 首选项.在我退出应用程序并重新启动后,它以法语正确显示.

                  It works fine except for one thing. When you launch the application for the first time after installation it's still in English. That's probably because AppleLanguages preference was not yet set for it. After I quit the application and start it again it's being displayed correctly in French.

                  有谁知道在第一次运行时也应用了法语的修复方法?

                  Does anyone knows a fix so that French language was applied also on the first run?

                  推荐答案

                  听起来很乱.为什么不直接从目标中取消选中未完成的英语资源,这样它们就不会被部署?另外,您是否查看过 Info.plist 中的 CFBundleDevelopmentRegion 设置?

                  Sounds messy. Why not just uncheck the unfinished English resources from the target, so they won't get deployed? Also, have you looked into the CFBundleDevelopmentRegion setting in Info.plist?

                  这篇关于首次运行时为 iPhone 应用程序设置默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  [ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)
                  <tfoot id='JA3nB'></tfoot>
                  1. <legend id='JA3nB'><style id='JA3nB'><dir id='JA3nB'><q id='JA3nB'></q></dir></style></legend>

                        <tbody id='JA3nB'></tbody>
                            <bdo id='JA3nB'></bdo><ul id='JA3nB'></ul>
                            <i id='JA3nB'><tr id='JA3nB'><dt id='JA3nB'><q id='JA3nB'><span id='JA3nB'><b id='JA3nB'><form id='JA3nB'><ins id='JA3nB'></ins><ul id='JA3nB'></ul><sub id='JA3nB'></sub></form><legend id='JA3nB'></legend><bdo id='JA3nB'><pre id='JA3nB'><center id='JA3nB'></center></pre></bdo></b><th id='JA3nB'></th></span></q></dt></tr></i><div id='JA3nB'><tfoot id='JA3nB'></tfoot><dl id='JA3nB'><fieldset id='JA3nB'></fieldset></dl></div>

                            <small id='JA3nB'></small><noframes id='JA3nB'>