• 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: nibtool l10n issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nibtool l10n issue


  • Subject: Re: nibtool l10n issue
  • From: Joey Hagedorn <email@hidden>
  • Date: Tue, 28 Oct 2008 13:29:58 -0700


On Oct 27, 2008, at 9:30 AM, Graham J Lee wrote:
Hi Greg,

there wasn't an existing NIB (and nibtool gives an error if you use -w
when there is). I also did check the strings files with FileMerge from
Xcode 3.1.1 and it shows that the keys on the LHS of the files haven't
changed.

Graham,
Have you touched the nib with Interface Builder 3 at all since the original creation of the strings files? If so, you might want to try rebuilding the strings file for ibtool to use. that maps ibtool's identifiers to the translated strings, then using ibtool to apply the localization. You could do it in the following way:


Create a strings file using ibtool from the original nib. Create an NSDictionary from the strings file (dictionaryWithContentsOfFile: should read it), and do the same thing with the new ibtool-generated strings file. Write a new strings file that is a mapping of the keys in the new strings file, to the values in the translated strings file. You should be able to match them up directly; values of new strings file == keys in translated strings file.

The idea is to end up with a strings file mapping ibtool's identifiers to the translated strings, using the english strings to match them up.

Let me know if that works helps,
-Joey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: nibtool l10n issue
      • From: "Graham J Lee" <email@hidden>
References: 
 >Re: nibtool l10n issue (From: Greg Guerin <email@hidden>)
 >Re: nibtool l10n issue (From: "Graham J Lee" <email@hidden>)

  • Prev by Date: Custom Platforms for Xcode
  • Next by Date: Re: gcc 4.2 disables PowerPC G3 support
  • Previous by thread: Re: nibtool l10n issue
  • Next by thread: Re: nibtool l10n issue
  • Index(es):
    • Date
    • Thread