Mail Archives: djgpp-workers/2001/08/02/07:12:36
On Wed, 1 Aug 2001, salvador wrote:
> > NLS support requires translation between different character sets,
> > like between ISO-8859-1 and the corresponding DOS codepage 850 (to
> > pick an example that is relevant for DJGPP).
>
> Is that really true?
Yes, that's how recent versions of gettext work: you can have
on-the-fly translation of the messages to any charset that is capable
of supporting the language. This means you don't need to several .mo
files one each for every possible encoding of the language: you just
have one version of the message catalogue, tell gettext what charset
you want to see on output, and libiconv takes care of the rest.
> In the past I shipped Linux version of my .mo files in ISO-8859-1 and DOS
> version in 850. So the installed translations match with the system.
> No translation needed, so no memory nor speed overhead was introduced.
But the downside is that you need to produce a separate message
catalogue for each possible codepage. For example, with Cyrillic
languages, there are half a dozen possible encodings, maybe more.
- Raw text -