Graphics Programs Reference
In-Depth Information
In
Terminal.app
, enter the following command, followed by a space after
write
. (But
don't hit return yet!)
ibtool --import-strings-file ~/Desktop/DetailViewController.strings --write
Next, find
DetailViewController.xib
in
es.lproj
and drag it onto the termin-
al window. Then, find
DetailViewController.xib
in the
en.lproj
folder and
drag it onto the terminal window. Your command should look similar to this:
ibtool --import-strings-file ~/Desktop/DetailViewController.strings --write
/iphone/Homepwner/Homepwner/es.lproj/Homepwner.xib
/iphone/Homepwner/Homepwner/en.lproj/Homepwner.xib
This command says, “Create
DetailViewController.xib
in
es.lproj
from the
DetailViewController.xib
in
en.lproj
, and then replace all of the strings
with the values from
DetailViewController.strings
.”
Hit return. (You might see some sort of warning where
ibtool
complains about
GSCap-
abilities
; you can ignore it.)
Open
DetailViewController.xib (Spanish)
in
Xcode
. This XIB file is now
localized to Spanish. To finish things off, resize the label and text field for the serial num-
ber, as shown in
Figure 17.4
.
Figure 17.4 Spanish DetailViewController.xib