[Caminol10n] How to go insane
Markus Amalthea Magnuson
markus.magnuson at gmail.com
Sun Jan 20 02:06:20 PST 2008
So, I've spent many hours, several days actually, to get this whole
AppleGlot thing working. The bad news is that I feel a bit brain dead
now, but the good news is that I have figured out how to build a
complete localization from scratch on 10.5.1/PowerPC. Here you go:
1. Install Xcode 2.5. It is available at developer.apple.com, just log
in, choose Downloads and then Developer Tools in the list at the
right.
2. Run "ln -s /Xcode2.5/usr/bin/nibtool /usr/bin/nibtool"
3. Create a new environment with AppleGlot, and make sure the base and
target languages are correct.
4. Download 1.5.4-MultiLang and copy the application to _NewBase.
5. Make sure all .strings-files are in Unix UTF-16 encoding. I did
this by opening them all in BBEdit with these commands (be sure to cd
into _NewBase first):
a) find . -path "*/English.lproj/*.strings" -print0 | xargs -0 bbedit
b) find . -path "*/sv.lproj/*.strings" -print0 | xargs -0 bbedit
6. When you are 100% sure that all files are okay, copy the
application in _NewBase into _OldBase and _OldLoc.
7. Open the environment in AppleGlot.
8. Run Initial Pass.
9. Translate any strings left in the working glossary.
10. Run Incremental Pass, then reopen the AppleGlot environment. The
column "Translation Stats" should now read "100.0% (1440 of 1440)".
11. Run Final Pass.
12. Move the Camino in _NewLoc to _OldLoc, replacing the previous one.
13. Move the Camino in _NewBase to _OldBase, replacing the previous one.
14. Download the latest nightly build, and copy it to _NewBase.
15. Once again, make sure all .strings-files are in Unix UTF-16
encoding (cd into _NewBase first):
find . -path "*/English.lproj/*.strings" -print0 | xargs -0 bbedit
16. Run Initial Pass.
17. Reopen the AppleGlot environment. I am using the nightly build
from january 19, and my "Translation Stats" reads "92.1% (1440 of
1564)", anything below this total number of strings probably means
something went wrong.
18. Translate everything in the work glossary.
19. Run Incremental Pass, then reopen the AppleGlot environment. My
"Translation Stats" now reads "99.9% (1564 of 1565)" because of one
empty string in Sparkle.
20. Run Final Pass.
21. Open up all the nib-files with IB 2.5.6 (important!) and fix any
layout issues (cd into _NewLoc first):
find . -path "*/sv.lproj/*.nib" -print0 | xargs -0 open -a
"/Xcode2.5/Applications/Interface Builder.app"
22. Remove all nib backup files (ending in "~.nib"):
find . -path "*/sv.lproj/*~.nib" -print0 | xargs -0 rm -rf
Hope this helps if you've had problems with AppleGlot.
--
http://konstochvanligasaker.se
http://nattlek.se
"Life... is like a grapefruit. It's orange and squishy, and has a few
pips in it, and some folks have half a one for breakfast."
– Douglas Adams
More information about the Caminol10n
mailing list