[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LANG and @documentlanguage
From: |
Akim Demaille |
Subject: |
Re: LANG and @documentlanguage |
Date: |
Tue, 02 Dec 2003 10:03:03 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
>> Not if you perform all the translations once for all. Say at
>> @documentlanguage.
> Sorry, I'm not sure I follow. Could you elaborate a bit on how this
> trick could be pulled? TIA
Have a table of the needed translation, and perform these translations
all together.
typedef enum translations_num
{
Monday_trans,
Tuesday_trans,
//...
} translations_num;
handle_documentlanguage ()
{
// - save current locale
// - set to that of the document
// - malloc a table TRANSLATIONS
translations[Monday_trans] = _("Monday");
translations[Tuesday_trans] = _("Tuesday");
// ...
// Restore the locale
}
and then use this table.
Re: LANG and @documentlanguage, Bruno Haible, 2003/12/02
Re: LANG and @documentlanguage, Karl Berry, 2003/12/02
Re: LANG and @documentlanguage, Karl Berry, 2003/12/02