[Caminol10n] using firefox files for camino
Marcello Testi
m.testi at gmail.com
Thu Jul 9 03:30:09 PDT 2009
Il giorno 09/lug/09, alle ore 11:36, Jan Jamsek ha scritto:
> ee my previous email. Used TextWrangler as you have written. Worked
> like a charm. As I said, some Slovenian translations (don't know if
> this is the case in other languages, guess it has to be) have spaces
> around the = symbol and some others don't.
I see. So here's what should be a "universal" recipe for strings with
or without spaces around the "=" sign:
Find: ([^\s]*)[\s]?=[\s]?(.*)
Replace: "\1" = "\2"
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
Thanks.
Ciao.
Marcello.
More information about the Caminol10n
mailing list