• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBundle using .stringsdict files MIA in 10.9?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSBundle using .stringsdict files MIA in 10.9?
      • From: Sean Todd <email@hidden>
References: 
 >NSBundle using .stringsdict files MIA in 10.9? (From: Sean Todd <email@hidden>)
 >Re: NSBundle using .stringsdict files MIA in 10.9? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Next by Date: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Previous by thread: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Next by thread: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Index(es):
    • Date
    • Thread