public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104709] New: A translated error message will include untanslated parts
@ 2022-02-27 10:51 goeran at uddeborg dot se
  2022-02-28  9:21 ` [Bug c++/104709] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: goeran at uddeborg dot se @ 2022-02-27 10:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104709
           Summary: A translated error message will include untanslated
                    parts
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: goeran at uddeborg dot se
  Target Milestone: ---

In the function open_module_client in gcc/cp/mapper-client.cc there an error
message

    failed %s mapper %qs line %u

and a similar without a line. This message is properly marked for translation.
The first %s in this message however will be a string which will be
untranslated, resulting in a mixed language message.

At the very least, the strings assigned (in various places) to "errmsg" need to
be marked for translation. Composing a message in this way is however a bad
idea in general, and might be hard to translate properly for some locales. If
possible it would be better to have more complete messages, not inserting parts
of it through a %s substitution. 

(See
https://www.gnu.org/software/gettext/manual/html_node/Preparing-Strings.html#Decent-English-style
for a longer discussion.)

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

end of thread, other threads:[~2022-03-11 10:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-27 10:51 [Bug c++/104709] New: A translated error message will include untanslated parts goeran at uddeborg dot se
2022-02-28  9:21 ` [Bug c++/104709] " redi at gcc dot gnu.org
2022-03-04 10:10 ` redi at gcc dot gnu.org
2022-03-04 10:37 ` jakub at gcc dot gnu.org
2022-03-11 10:47 ` redi at gcc dot gnu.org

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).