public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114112] New: Error message is translatable but inserts untranslated substring
@ 2024-02-26 12:38 goeran at uddeborg dot se
  2024-02-26 17:15 ` [Bug c/114112] " pinskia at gcc dot gnu.org
  2024-05-11 11:56 ` goeran at uddeborg dot se
  0 siblings, 2 replies; 3+ messages in thread
From: goeran at uddeborg dot se @ 2024-02-26 12:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114112

            Bug ID: 114112
           Summary: Error message is translatable but inserts untranslated
                    substring
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: goeran at uddeborg dot se
  Target Milestone: ---

At
https://gcc.gnu.org/git?p=gcc.git;a=blob;f=gcc/c-family/c-omp.cc;h=5117022e330c95592d7731eec161ab1b5c6925d9;hb=HEAD#l1810
the function check_loop_binding_expr emits an error message where it inserts a
"context". This "context" comes from the call and is sent as a string not
available for translation. Even if those inserted strings were marked for
translation, it is in general a bad idea to compose a message from smaller
strings in that way if they are to be correctly translated.

(See
https://www.gnu.org/software/gettext/manual/html_node/Preparing-Strings.html if
one wants a further discussion around this.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-11 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 12:38 [Bug c/114112] New: Error message is translatable but inserts untranslated substring goeran at uddeborg dot se
2024-02-26 17:15 ` [Bug c/114112] " pinskia at gcc dot gnu.org
2024-05-11 11:56 ` goeran at uddeborg dot se

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).