[Caminol10n] using firefox files for camino
Markus Amalthea Magnuson
markus.magnuson at gmail.com
Mon Jul 13 05:00:28 PDT 2009
On Thu, Jul 9, 2009 at 12:30, Marcello Testi<m.testi at gmail.com> wrote:
> Anyone have experience in writing macros/scripts for TextWrangler?
> It should be quite easy to pack the 3 needed tasks in one simple command:
> 1 - strip all comment lines
> 2 - escape existing double quotes
> 3 - wrap strings (each key and translation) in double quotes using regexp
I've written a TextWrangler script to perform the complete conversion,
choose "Open Scripts Folder" from the script menu in TextWrangler and
put the attached .scpt-file in there. Now you can open a .properties
file and choose "Firefox Localized .properties -> Cocoa .strings" from
the script menu to convert the file to the format recognized by
iLocalize.
For those of you using TextMate, I am also attaching a .tmMacro to fo
the same thing.
Thanks for all the helpful info to begin with!
I've noticed that any lines where the translation is identical to the
English version, you will have to fill it in manually in iLocalize,
which is hassle-free by right-clicking on that line in iLocalize and
choose "Copy Base to Translation" or pressing F5.
--
Markus Amalthea Magnuson
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firefox Localized .properties -> Cocoa .strings.scpt
Type: application/octet-stream
Size: 3228 bytes
Desc: not available
URL: <http://www.mozdev.org/pipermail/caminol10n/attachments/20090713/75ea4c9e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firefox Localized _properties -> Cocoa _strings.tmMacro
Type: application/octet-stream
Size: 1985 bytes
Desc: not available
URL: <http://www.mozdev.org/pipermail/caminol10n/attachments/20090713/75ea4c9e/attachment-0001.obj>
More information about the Caminol10n
mailing list