Re: [PATCH 00/10] Factorization of messages with similar meaning

3 messages, 3 authors, 2021-12-05 · open the first message on its own page

Re: [PATCH 00/10] Factorization of messages with similar meaning

From: Junio C Hamano <hidden>
Date: 2021-12-05 07:31:49

Johannes Sixt [off-list ref] writes:
Another aspect is that translators lose context. For example, "%s and %s
are mutally exclusive" may have to be translated differently depending
on what kind of text is substituted for %s. In this example it's
probably always command line options (I haven't checked), so not an
immediate problem. But something to keep in mind.
Yup.  I do not think we are quite ready to have two identical msgid
strings to be translated into two different msgstr strings.  We've
briefly talked about pgettext() a few months ago, but nothing
concrete came out of it, as far as I can recall.

Re: [PATCH 00/10] Factorization of messages with similar meaning

From: Jean-Noël AVILA <hidden>
Date: 2021-12-05 17:25:42

On Sunday, 5 December 2021 08:31:38 CET Junio C Hamano wrote:
Johannes Sixt [off-list ref] writes:
quoted
Another aspect is that translators lose context. For example, "%s and %s
are mutally exclusive" may have to be translated differently depending
on what kind of text is substituted for %s. In this example it's
probably always command line options (I haven't checked), so not an
immediate problem. But something to keep in mind.
Yup.  I do not think we are quite ready to have two identical msgid
strings to be translated into two different msgstr strings.  We've
briefly talked about pgettext() a few months ago, but nothing
concrete came out of it, as far as I can recall.
As a translator, I made sure that all the messages are with the same grammatical structure where the placeholders are only command line options. The same messages with placeholders are meant to convey exactly the same meaning at all their use point. We have all the control on the source code to tailor them so that one message model is only used with specific types of variables (options here). That's another reason why I was proposing to define and name them.

If needed, "%s and %s are mutually exclusive" could be turned into "options %s and %s are mutually exclusive" to make it clear that the placeholders can only hold option names.


Re: [PATCH 00/10] Factorization of messages with similar meaning

From: Johannes Sixt <hidden>
Date: 2021-12-05 19:50:18

Am 05.12.21 um 18:25 schrieb Jean-Noël AVILA:
If needed, "%s and %s are mutually exclusive" could be turned into
"options %s and %s are mutually exclusive" to make it clear that the
placeholders can only hold option names.
IMO, being less terse helps not only translators, but also users.

Regarding this particular message, personally, I am not a fan of
"mutually exclusive" (sounds like it's been taken from a law text). How
about "options ... are incompatible" or "... cannot be used together"?

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help