Re: NSBundle using .stringsdict files MIA in 10.9?
Re: NSBundle using .stringsdict files MIA in 10.9?
- Subject: Re: NSBundle using .stringsdict files MIA in 10.9?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 29 Oct 2013 15:15:37 -0700
On Tue, Oct 29, 2013, at 02:45 PM, Sean Todd wrote:
> I used the Property List resource template to generate a new property
> list file and then changed the extension from .plist to .stringsdict.
> I have also tried changing the file type in Xcode. Nothing has worked for
> me. There is no mention of any special way to create this type of file.
> There is just an example of its content in the release notes:
I'm sorry, I didn't scroll down the page enough. All the previous
examples are given in ASCII-plist-style format.
Can you please share your strings and stringsdict files? It looks like
in order to get this to work, the localized value in the strings file
must use the new extended format specifier syntax. So your strings file
needs a line like:
/* ListWindows.strings */
"%d Brick Categories" = "%#@brick_categories@"
/* ListWindows.stringsdict */
<plist etc…>
<key>brick_categories</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>zero</key>
<string>No</string>
<key>one</key>
<string>One Brick Category</string>
<key>other</key>
<string>%d Brick Categories</string>
</dict>
</plist>
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden