Re: Context in translations, Q_() and gettext
- From: Claude Paroz <claude 2xlibre net>
- To: gnome-i18n gnome org
- Subject: Re: Context in translations, Q_() and gettext
- Date: Sat, 24 Nov 2007 11:46:45 +0100
Le samedi 24 novembre 2007 à 00:45 -0500, Matthias Clasen a écrit :
> Hey,
>
> some time has passed since the last discussion of this topic (context
> in translations),
> and I have now decided to commit my GLib patch, which adds a 2 argument macro
> for translations with context. So instead of
>
> Q_("context|id")
>
> it will soon be possible to write
>
> C_("context", "id")
>
> And, using GNU gettext >= 0.15, you will be able to convert both forms into
>
> msgctxt "context"
> msgid "msgid"
> msgstr ""
>
> by calling xgettext --keyword=Q_:1g --keyword=C_:1c,2
As most GNOME packages use intltool to generate/update po files, do you
know which minimal version of intltool is required to support/implement
this feature?
Current version on l10n.gnome.org is:
gettext 0.14.5
intltool 0.35.5
Claude
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]