• 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 for translation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nibtool for translation


  • Subject: Re: Nibtool for translation
  • From: Andreas Monitzer <email@hidden>
  • Date: Sat, 10 Nov 2001 15:51:22 +0100

On Saturday, November 10, 2001, at 03:30 , David Remahl wrote:

On Saturday, November 10, 2001, at 12:59 , David Remahl wrote:

I have been banging my head against this one for quite a while now...

This is my problem:
I have an application that is translated into a few languages. When I
released version 1.1, the translators translated the complete nib files
for
the application. Now I have made a few adjustments to the English
version of
the nibfile. I added two controls to one of the views in the nibfile,
added
a few outlets and actions and added a new class. I also changed a few
connections. Now I would like to use the strings that the localizers put
into the previous nibfile. Since I only added one new control with a
string
in, it would be wasted work to go in and re-translate all controls. From
what I understand, nibtool can be used to solve this.

Theoretically yes, but that feature is currently broken in nibtool.

andy

Then my question is, will I have to ask all the translators to do their work
all over again whenever I make any changes to the english nib? AppleGlot
seems useful, but not as nice as IB, nor is it in any usable stage (alhpa).

Do you have the .strings-file that was used to generate the translated nib-file? You can use nibtool to replace all english texts with the localized ones, but you have to do all the rearranging manually again.

From the manpage:

nibtool -L file.nib > file.strings
nibtool -w nFile.nib -d file.strings file.nib
nibtool -I oFile.nib -w nFile.nib -d file.strings file.nib

The First command generates an ascii representation of
file.nib. The Second generates localization dictionary
for file.nib. The Third reloads in the localization dic-
tionary and writes out a new file nFile.nib. The last
example uses the layout information in oFile.nib and the
strings file file.strings to generate nFile.nib. The last
example is used when the develoepr has added a new control
to file.nib but all of the nib files have already been
localized (ie the size of the controls has already been
adjusted), this command will make the size of the objects
in nFile.nib match the sizes of the same objects in
oFile.nib. [last one is broken]


andy


References: 
 >Re: Nibtool for translation (From: David Remahl <email@hidden>)

  • Prev by Date: Re: implement directly a protocol?
  • Next by Date: Re: implement directly a protocol?
  • Previous by thread: Re: Nibtool for translation
  • Next by thread: Re: Nibtool for translation
  • Index(es):
    • Date
    • Thread