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

            Bug ID: 122580
           Summary: Some incorrect translations for "‘__label__’
                    declarations are only allowed in function scopes"
           Product: gcc
           Version: 15.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Keith.S.Thompson at gmail dot com
  Target Milestone: ---

I don't have a test program for this. I found the problem browsing through the
latest sources in git while investigating bug #122579.

This error message:

"‘__label__’ declarations are only allowed in function scopes"

is incorrectly translated in several languages. In some, the translation refers
to declarations in for loops rather than __label__ declarations. In others, it
refers to Objective-C declarations.

Here's a list of the errors. I don't suggest that there are no other similar
errors. These are just the ones I happened to find.

In gcc/po/da.po:

#: cp/semantics.cc:2564
#, fuzzy, gcc-internal-format
msgid "%<__label__%> declarations are only allowed in function scopes"
msgstr "begyndelseserklæring i 'for'-løkke benyttet uden for C99-tilstand"

In gcc/po/ja.po:

#: cp/semantics.cc:2564
#, fuzzy, gcc-internal-format
msgid "%<__label__%> declarations are only allowed in function scopes"
msgstr "%<for%> ループ初期化宣言は C99 モード内でのみ許可されています"

In gcc/po/nl.po:

#: cp/semantics.cc:2564
#, fuzzy, gcc-internal-format
msgid "%<__label__%> declarations are only allowed in function scopes"
msgstr "initiële declaratie voor %<for%> lus gebruikt buiten C99 modus"

In gcc/po/sr.po:

#: cp/semantics.cc:2564
#, fuzzy, gcc-internal-format
#| msgid "Objective-C declarations may only appear in global scope"
msgid "%<__label__%> declarations are only allowed in function scopes"
msgstr "декларације објективног Ц-а могу се јављати само у глобалном досегу"

In gcc/po/tr.po:

#: cp/semantics.cc:2564
#, fuzzy, gcc-internal-format
#| msgid "Objective-C declarations may only appear in global scope"
msgid "%<__label__%> declarations are only allowed in function scopes"
msgstr "Objective-C bildirimleri sadece genel etki alanında görünebilir"

Reply via email to