]> granicus.if.org Git - neomutt/commit
I18N: handler.c: Do not glue translations together
authorReis Radomil <reisradomil@fake-box.com>
Sun, 22 Apr 2018 04:16:01 +0000 (04:16 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 24 Apr 2018 20:29:50 +0000 (21:29 +0100)
commit0e4a8fc352668b0ce070b875817c00d94b60a519
treed44260eae42373afbbc20c34120da2ca0a1ae0b2
parent8323a34ea0fdb08f9b80fad12fd4cfef5f3bf6c3
I18N: handler.c: Do not glue translations together

Do not use this antipattern:

  printf(_("some %s sentence."), b ? _("big") : _("small"));

as the translation of "big"/"small" and depends on the sentence it is
used in. Instead give the translator the complete sentence:

  if (b)
    printf(_("some big sentence."));
  else
    printf(_("some small sentence."));
handler.c