[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i18n of math formulas, esp division symbol.
From: |
Bruno Haible |
Subject: |
Re: i18n of math formulas, esp division symbol. |
Date: |
Mon, 24 Jan 2011 03:33:29 +0100 |
User-agent: |
KMail/1.9.9 |
Hi,
> I have tried making a format string for division in UTF-8
> N_(%d รท %d = ?)
>
> but gettext gives the following error when I try "make dist":
>
> /usr/bin/xgettext: Non-ASCII string at src/mathcards.c:2594.
> Please specify the source encoding through --from-code.
>
> So, how can I specify this to be UTF-8 in my program's build system?
As you already found out, you add --from-code=UTF-8 to the XGETTEXT_OPTIONS
in the file po/Makevars.
> However, I note in the gettext manual that it is recommended that the
> msgid strings always be in ASCII.
This recommendation becomes less and less important, because more and more
user environments and tools support UTF-8 out of the box.
Bruno