【问题标题】:Localize Settings.bundle with Localizable.strings instead of Root.strings使用 Localizable.strings 而不是 Root.strings 本地化 Settings.bundle
【发布时间】:2015-09-28 14:57:07
【问题描述】:

由于在我的应用程序中自动下载本地化文件,我想知道是否可以在 Settings.bundle 中使用 Localizable.strings 而不是 Root.strings 本地化 Root.plist

【问题讨论】:

    标签: ios localization settings.bundle localizable.strings


    【解决方案1】:

    要使用Localizable.strings,我们必须使用NSLocalizedString 进行引用。 Localizing Your AppImplementing an iOS Settings Bundle 的文档都没有提到这种方法。

    据我了解,Settings.bundle 将在安装时复制到 app 文件夹之外的系统文件夹中。您的应用无法访问此文件夹。

    【讨论】:

    • 经过研究,我得出了同样的结论。我通过将第二个本地化文件下载到 Settings.bundle 中的 Root.plist 解决了这个问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 2011-02-09
    相关资源
    最近更新 更多