bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext.c missing an option to set the context


From: Bruno Haible
Subject: Re: gettext.c missing an option to set the context
Date: Sun, 03 May 2020 17:36:03 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Hi Samuel,

> gettext.c only uses dgettext(), which doesn't allow to specify a context
> string. It should be given an option to set the context

This is implemented in gettext 0.20 or newer. From the NEWS file:


Version 0.20 - May 2019
...
* Programming languages support:
  ...
  - Shell:
    o The programs 'gettext', 'ngettext' now support a --context argument.
    o gettext.sh contains new function eval_pgettext and eval_npgettext
      for producing translations of messages with context.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]