有谁知道xcode文件“InfoPlist.strings(English)”是什么?

前端之家收集整理的这篇文章主要介绍了有谁知道xcode文件“InfoPlist.strings(English)”是什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有谁知道InfoPlist.strings的文件是什么?它在 Xcode 3.2中.它是Applescript中的Cocoa应用程序.

解决方法

An information property list file is a structured text file that
contains essential configuration information for a bundled executable.
The file itself is typically encoded using the Unicode UTF-8 encoding
and the contents are structured using XML. The root XML node is a
dictionary,whose contents are a set of keys and values describing
different aspects of the bundle. The system uses these keys and values
to obtain information about your app and how it is configured. As a
result,all bundled executables (plug-ins,frameworks,and apps) are
expected to have an information property list file.

By convention,the name of an information property list file is
Info.plist.

Localized values are not stored in the Info.plist file itself.
Instead,you store the values for a particular localization in a
strings file with the name InfoPlist.strings. You place this file in
the same language-specific project directory that you use to store
other resources for the same localization. The contents of the
InfoPlist.strings file are the individual keys you want localized and
the appropriately translated value. The routines that look up key
values in the Info.plist file take the user’s language preferences
into account and return the localized version of the key (from the
appropriate InfoPlist.strings file) when one exists. If a localized
version of a key does not exist,the routines return the value stored
in the Info.plist file.

For example,the TextEdit app has several keys that are displayed in
the Finder and thus should be localized. Suppose your information
property list file defines the following keys:

CFBundleDisplayName TextEdit
NSHumanReadableCopyright Copyright © 1995-2009,
Apple Inc.,All Rights Reserved. The French localization for
TextEdit then includes the following strings in the InfoPlist.strings
file of its Contents/Resources/French.lproj directory:

CFBundleDisplayName = “TextEdit”; NSHumanReadableCopyright =
“Copyright © 1995-2009 Apple Inc.\nTous droits réservés.”;

developer.Apple.com

原文链接:https://www.f2er.com/iOS/328902.html

猜你在找的iOS相关文章