[Caminol10n] using firefox files for camino
Stefan Livens
stefanl at me.com
Wed Jul 8 14:12:39 PDT 2009
Hello all,
Just a note on how I used the translated files from Firefox for use in
Camino.
1) get firefox in your language.
2) inside the .app bundle, you have to look for your language:
Firefox.app/Contents/MacOS/chrome/
3) here you find a file called "nl.jar" (in my case) (or you can use
the folder "locale", which has a "nl" folder inside, I don't if there
are differences between the jar file and the folder)
4) rename (or duplicate) to nl.zip, and open it.
5) now you have a list of files with the translations used in Firefox.
6) open a file which has translations you want to use. I use Xcode,
because TextEdit messes up with accented characters.
7) copy everything, and paste it in excel or numbers (or another
spreadsheet, i tried both numbers and excel, but settled on numbers
because i don't trust the handling of UTF-8 in excel)
8) you get a file with lots of lines in the first column.
9) in the 2nd column, i have this formula, that will treat all the lines
=IF((LEFT(B2;1)<>"#");$C$1&B2&$C$1&";";"")
it will copy the line from the first column if it is not a comment
line (doesn't begin with #)and prepend and append a special character
(i use §, something that doesn't exist in the file), and it appends a
";"
10) the result of my "treatment" I copy to textedit.
11) do a search replace on the =, and replace it by "="
12) do a search/replace on the §, with "
13) remove the lines with "";
14) now you have a file that is in the "cocoa" properties format, and
this file can be used as an input for iLocalize
15) right click on your "globale_locale_ ... properties.strings" file,
and select the option "Translate using external strings file "
16) all the strings are there in iLocalize! (except for the identical
ones, or not translated), you have to approve the translations, and
it's done!
I know this is not the most effective way, but this is one I got to
work.
In the future, a conversion-utility from firefox properties to cocoa-
properties would really help (i tried the regexp script, but it didn't
work for me)
hope this helps.
Stefan
More information about the Caminol10n
mailing list