• 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: "Graham J Lee" <email@hidden>
  • Date: Wed, 29 Oct 2008 04:12:36 -0700 (PDT)

On Tue, October 28, 2008 1:29 pm, Joey Hagedorn wrote:
>
> 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,


Hi Joey,

that worked brilliantly, thanks. I'm now able to import the strings using
ibtool --strings-file.

Thanks for your help,

Graham.
--
Graham J Lee
http://thaesofereode.info

 _______________________________________________
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

References: 
 >Re: nibtool l10n issue (From: Greg Guerin <email@hidden>)
 >Re: nibtool l10n issue (From: "Graham J Lee" <email@hidden>)
 >Re: nibtool l10n issue (From: Joey Hagedorn <email@hidden>)

  • Prev by Date: Re: application support x86_64 architecture issue
  • Next by Date: Re: Custom Platforms for Xcode
  • Previous by thread: Re: nibtool l10n issue
  • Next by thread: ar tool...
  • Index(es):
    • Date
    • Thread