These are my entries in the 2 files:

ListWindows.stringsdict:

<?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>%d Brick Categories</key>
        <dict>
                <key>NSStringLocalizedFormatKey</key>
                <string>Brick %#@num_categories@</string>
                <key>num_categories</key>
                <dict>
                        <key>NSStringFormatSpecTypeKey</key>
                        <string>NSStringPluralRuleType</string>
                        <key>NSStringFormatValueTypeKey</key>
                        <string>d</string>
                        <key>zero</key>
                        <string>Categories</string>
                        <key>one</key>
                        <string>Category</string>
                        <key>other</key>
                        <string>Categories</string>
                </dict>
        </dict>
</dict>
</plist>

ListWindows.strings:
"%d Brick Categories” = "%d Brick Categories”;


On Oct 29, 2013, at 5:15 PM, Kyle Sluder <k...@ksluder.com> wrote:

> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to