Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH 2/2] i18n: avoid conflict with ngettext from libintl

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:50:45

On Wed, Mar 9, 2011 at 21:51, Jonathan Nieder [off-list ref] wrote:
Junio C Hamano wrote:
quoted
Hmph.  An obviously safer alternative would be to use git_ngettext() in
our source all over the place, and it would by even more peace of mind but
that is even longer.
Right.  That is tempting.

Ævar, is there some usual or obvious abbreviated form for ngettext we
could use to avoid this fuss altogether?
I was looking yesterday but I couldn't find a common. I think your
Q_() is fine.

I see GNU Make uses S_() internally, netcat uses PL_(). There seems to
be no common convention for it like for gettext().

Personally I'd have chosen n_(), although confusing with our existing
N_() we could add dn_(), dcn_() etc for dngettext() and dcngettext()
later.

But I don't think it matters. Let's use your patch as-is.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help