Does anyone know what the file InfoPlist.strings
is for? It is in Xcode 3.2. It is a Cocoa app in Applescript.
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.
You should use InfoPlist. strings file (keep both I & P capital) to localize values of Info. plist . To do this, go to File->New->File , choose Strings File under Resource tab of iOS , name it InfoPlist , and create.
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:
<key>CFBundleDisplayName</key> <string>TextEdit</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 1995-2009, Apple Inc.,All Rights Reserved.</string>
The French localization for TextEdit then includes the following strings in the
InfoPlist.strings
file of itsContents/Resources/French.lproj
directory:CFBundleDisplayName = "TextEdit"; NSHumanReadableCopyright = "Copyright © 1995-2009 Apple Inc.\nTous droits réservés.";
From developer.Apple.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With