iOS .strings format
Example 1:
"red" = "red"; "blue" = "blue"; "green" = "green";
Example 2 (with comments):
/* Color red */ "red" = "red"; /* Color blue */ "blue" = "blue"; /* Color green */ "green" = "green";
*Note: Our platform doesn't support multi-line comments.
iOS .stringsdict format
Example:
<dict>
<key>%d Apples(s) in Stock</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@apples@</string>
<key>apples</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d Apple in Stock</string>
<key>other</key>
<string>%d Apples in Stock</string>
</dict>
</dict>
</dict>
*Note: The key sequence matters.
Comments
2 comments
In my case, I had a localized .stringsdict file and a non-localized .strings file. iOS9 was able to show the correct translation, but iOS8 failed miserably.
dissertation service
That was so amazing.
facetime app
Please sign in to leave a comment.