1. <i id='sCLNd'><tr id='sCLNd'><dt id='sCLNd'><q id='sCLNd'><span id='sCLNd'><b id='sCLNd'><form id='sCLNd'><ins id='sCLNd'></ins><ul id='sCLNd'></ul><sub id='sCLNd'></sub></form><legend id='sCLNd'></legend><bdo id='sCLNd'><pre id='sCLNd'><center id='sCLNd'></center></pre></bdo></b><th id='sCLNd'></th></span></q></dt></tr></i><div id='sCLNd'><tfoot id='sCLNd'></tfoot><dl id='sCLNd'><fieldset id='sCLNd'></fieldset></dl></div>
      <tfoot id='sCLNd'></tfoot>
    2. <small id='sCLNd'></small><noframes id='sCLNd'>

      <legend id='sCLNd'><style id='sCLNd'><dir id='sCLNd'><q id='sCLNd'></q></dir></style></legend>
        <bdo id='sCLNd'></bdo><ul id='sCLNd'></ul>

        在国际化我的应用程序之前,如何更改 Xcode 中的开发语言?

        How do I change the Development language in Xcode before internationalizing my app?(在国际化我的应用程序之前,如何更改 Xcode 中的开发语言?)

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

            <tfoot id='Z8Yqx'></tfoot>

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

                  <bdo id='Z8Yqx'></bdo><ul id='Z8Yqx'></ul>
                  本文介绍了在国际化我的应用程序之前,如何更改 Xcode 中的开发语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在接管一个完全用法语编写的应用程序.字符串在代码中用法语硬编码,情节提要中的所有消息都是法语.但是 Info.plist 中的初始开发区域留给了英语.所以我将 CFBundleDevelopmentRegion 更改为 fr 以便它与所使用的真实语言相匹配.但是 XCode 一直告诉我我的开发语言是英语:

                  我该如何纠正?目标是能够激活基本国际化并让它使用法语作为基本语言而不是英语.

                  解决方案

                  以下过程对我有用,但它包括手动编辑 project.pbxproj 文件:

                  1. 退出 XCode
                  2. 使用您喜欢的文本编辑器打开 project.pbxproj 文件
                  3. 更新以下部分(developmentRegion 附近):

                  旧:

                   developmentRegion = English;hasScannedForEncodings = 0;已知区域 = (恩,根据,);

                  新:

                  developmentRegion = fr;hasScannedForEncodings = 0;已知区域 = (FR,根据,);

                  我创建了一个

                  I'm taking over an app that was written entirely in French. Strings are hardcoded in French in the code, and all the messages in the storyboard are in French. But the initial development region in Info.plist was left to English. So I changed CFBundleDevelopmentRegion to fr so that it matches the real language that was used. But XCode keeps telling me that my Development language is English:

                  How can I correct that? The goal is to be able to activate Base Internationalization and have it use French as the Base language instead of English.

                  解决方案

                  The following procedure worked for me, but it includes manually editing project.pbxproj file:

                  1. Quit XCode
                  2. Open the project.pbxproj file with your favorite text editor
                  3. Update the following section (near developmentRegion):

                  OLD:

                      developmentRegion = English;
                      hasScannedForEncodings = 0;
                      knownRegions = (
                          en,
                          Base,
                      );
                  

                  NEW:

                  developmentRegion = fr;
                              hasScannedForEncodings = 0;
                              knownRegions = (
                                  fr,
                                  Base,
                              );
                  

                  I've created a GitHub repository with a sample project that was initially created with English as default Development Language, and then updated by the procedure above to use French as Development Language.

                  这篇关于在国际化我的应用程序之前,如何更改 Xcode 中的开发语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  iOS AutoLayout - get frame size width(iOS AutoLayout - 获取帧大小宽度)
                  Auto layout constraints issue on iOS7 in UITableViewCell(UITableViewCell中iOS7上的自动布局约束问题)
                  How to resize superview to fit all subviews with autolayout?(如何调整超级视图的大小以适应所有具有自动布局的子视图?)
                  Springs in Auto Layout: Distribute views evenly, with constraints, in Xcode 5(自动布局中的弹簧:在 Xcode 5 中使用约束均匀分布视图)
                  reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling(具有动态单元格高度的 UITableView 的 reloadData() 导致跳跃滚动)
                  What is NSLayoutConstraint quot;UIView-Encapsulated-Layout-Heightquot; and how should I go about forcing it to recalculate cleanly?(什么是 NSLayoutConstraint“UIView-Encapsulated-Layout-Height?我应该如何强制它干净地重新计算?) - IT屋-程序员

                      <tbody id='HFwbL'></tbody>

                    1. <i id='HFwbL'><tr id='HFwbL'><dt id='HFwbL'><q id='HFwbL'><span id='HFwbL'><b id='HFwbL'><form id='HFwbL'><ins id='HFwbL'></ins><ul id='HFwbL'></ul><sub id='HFwbL'></sub></form><legend id='HFwbL'></legend><bdo id='HFwbL'><pre id='HFwbL'><center id='HFwbL'></center></pre></bdo></b><th id='HFwbL'></th></span></q></dt></tr></i><div id='HFwbL'><tfoot id='HFwbL'></tfoot><dl id='HFwbL'><fieldset id='HFwbL'></fieldset></dl></div>
                      <legend id='HFwbL'><style id='HFwbL'><dir id='HFwbL'><q id='HFwbL'></q></dir></style></legend><tfoot id='HFwbL'></tfoot>

                        <bdo id='HFwbL'></bdo><ul id='HFwbL'></ul>

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