[Bug translation/90119] New: Merge translation msgids that only differ in placeholders

roland.illig at gmx dot de gcc-bugzilla@gcc.gnu.org
Tue Apr 16 19:07:00 GMT 2019


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

            Bug ID: 90119
           Summary: Merge translation msgids that only differ in
                    placeholders
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

There are the following msgids:

bad value %qs for %<-mtrap-precision%> switch
bad value %qs for %<-mfp-rounding-mode%> switch
bad value %qs for %<-mfp-trap-mode%> switch
bad value %qs for %<-mcpu%> switch

These are boring to translate and increase the likelyhood of copy-and-paste
translation errors. It would be better if there were only a single msgid to be
translated:

bad value %qs for %qs switch

This means less work for the translators, and less chances of introducing
translation errors.

The translation linter should find msgids that only differ in plain text
enclosed by %< and %>. The following msgid should not be merged since it is
more complicated to fix:

bad value %qs for %<-mcpu=%s%> switch

That is, only msgids that are the same after s,%<[^%]+%>,%<%>,g should be
suggestted to be merged. There might be other special characters that I forgot.


More information about the Gcc-bugs mailing list