Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7775989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:45:48+00:00 2026-06-01T17:45:48+00:00

Is there a way to localize a plist that contain hierarchical or grouped data?

  • 0

Is there a way to localize a plist that contain hierarchical or grouped data?

For instance, if the plist contains:

  • Book 1 (dictionary)
    • Key (string)
    • Name (string)
    • Description (localizable string)
  • Book 2 (dictionary)
    • Key (string)
    • Name (string)
    • Description (localizable string)
      (etcetera…)

For the sake of the example, the Key and Name should not be translated (and preferably should not be duplicated in multiple localized property lists).

Is there a mechanism for providing localizations for the localizable Description field without localizing the entire property list? The only other strategy that came to my mind is to store a lookup key in the description field and than use that to retrieve the localized text via NSLocalizedString(…)

The plist is static and being distributed with the app bundle right now.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:45:49+00:00Added an answer on June 1, 2026 at 5:45 pm

    Is this a static plist or a dynamic one? From where do you expect to get the localized strings? NSLocalizedString() gets it from the Localizable.strings file in your bundle. If the plist is static and you can ship all of the localizations with your app, then you can use the description as the key and look it up with NSLocalizedString() or one of its variants.

    If the plist is dynamic, then you can make each Description into a dict mapping from locale identifiers to strings. You’d pick the right one using [NSBundle preferredLocalizationsFromArray:[theDict allKeys]]. That has the drawback that if the same Description is used for multiple Books, then its localizations have to be repeated.

    To fix that drawback, you could put the localizations into the plist in a separate section. Basically, this would be a dictionary of dictionaries. The keys of the outer dictionary could be the locale identifiers, the keys of the inner dictionaries could be the English strings, and the inner values could be the localized strings. (Variant 1: use a lookup key instead of the English string. Variant 2: reverse the inner and outer dictionaries, so English string is outer and locale ID is inner.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to localize the text of the button that is automatically
There seems to be no good way to localize a WPF application. MSDN seems
Is there a way to use user's culture to localize the Range Validator for
I there a way to localize To:, Cc/Bcc: and Subject: titles in MFMailcomposerController? Or
Is there a way to pass an array of String to a resource bundle
Is there any way to localize the Today text in ajaxToolkit:CalendarExtender ? This control
Is there any other way to localize iPhone apps beside the use of Localizable.strings?
ParamText() is an really old way of replacing parameters in a string that is
Is there any way to get a localized response with jQuery UI Map V3?
Is there an easy way (maybe built in solution) to convert TimeSpan to localized

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.