Re: Context in translations, Q_() and gettext
- From: Federico Mena Quintero <federico ximian com>
- To: Matthias Clasen <mclasen redhat com>
- Cc: gnome-i18n gnome org, gtk-devel-list gnome org
- Subject: Re: Context in translations, Q_() and gettext
- Date: Wed, 21 Dec 2005 14:22:25 -0600
On Wed, 2005-12-21 at 01:07 -0500, Matthias Clasen wrote:
> I just learned that GNU gettext will soon have official support for
> disambiguating context in translations.
Will there be a tool to convert .po files from msgid "foo|bar" to the
new msgctxt stuff? Could msgmerge or whatever do it automatically?
> #if HAVE_PGETTEXT
> #define Q2_(context,msgid) pgettext(context,msgid)
> #else
> #define Q2_(context,msgid) Q_(context ## "|" ## msgid)
> #endif
>
> The name Q2_() is certainly not perfect. Well, at least one
> can interpret the 2 as a subtle hint that the macro takes 2 arguments...
This makes sense. Or we can pick another prefix. Why not C_ for
context?
[Don't we support ngettext yet?]
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]