=?UTF-8?Q?Re:_Quotation_marks:_Using_=E2=80=9C=E2=80=9D_instead_of_""?=



On Mon, Jun 16, 2008 at 12:24 PM, Alan Cox <alan lxorguk ukuu org uk> wrote:
> BTW: I realised last night there is another way to tackle this which lets
> you turn the problem on its head
>
> Given smart quotes directly in code are not valid C and that you need to
> distinguish different quotes so can't do a perl 1 liner turn the problem
> the other way up
>
> Source - with smart quotes
>
>        String generation
>                Extract with po file tools
>                Rewrite this with a simple script
>                        Extracted string is en_US translation
>                        Base string has quotes substituted back
>
>        Compile
>                Remove smart quotes and replace with ordinary ones
>                Compile with gcc
>
> (you could extract the translations from the converted file to
> save having to mend all the translations but that might actually be long
> term worse)

This would result in a thousand .c.in files or a large header .h.in
file with all the strings ;)

-- 
Patryk Zawadzki
PLD Linux Distribution


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]