Sample stringsdict file is shown below:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>HoursKey</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@value@</string> <key>value</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>%d hour</string> <key>other</key> <string>%d hours</string> </dict> </dict> </dict> </plist>
File Specifications
When adding a stringsdict file, the contents of your file have to conform to the following standards:
File Encoding | UTF-8 | This file has to be encoded with UTF-8 standard. |
Plural Handling | iOS Strings Dictionary | Stringsdict files (generally used as "Localizable.stringsdict") are designed specifically for plural keys. Learn more. |
Placeholder Pattern | iOS Style | Stringsdict files can contain Apple's format specifiers which follow IEEE printf specifications. Learn more. |
New Line | Unix Style | Strings file should be encoded with Unix style new line endings. |