Bug #17685

Errors with PO files in 4.6

Added by CyrilBrulebois 2020-05-05 22:04:23 . Updated 2020-05-05 22:04:23 .

Status:
Confirmed
Priority:
Normal
Assignee:
emmapeel
Category:
Internationalization
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

Please find below a copy of the mail I sent to tails-l10n@, where I explained why I couldn’t just reset PO files to a known good value:

I think that's the first time I see so many complains at once… I'm a
little concerned as there aren't translations that get refreshed, but
stuff that's already in the git branch I'm working in, so I cannot
revert/cancel the refresh for those files…


Grouping them for comments:

    ERROR: po/hr.po:
        i18nspector is not happy:
                E: python-brace-format-string-unknown-argument msgid 'Remove {package} from your additional software? This will stop installing the package automatically.': packages in msgstr but not in msgid
                E: python-brace-format-string-missing-argument msgid 'Remove {package} from your additional software? This will stop installing the package automatically.': package not in msgstr while in msgid

I think I've fixed this one a couple of times already. I'd be happy to
have it be fixed for real.

    ERROR: wiki/src/getting_started.sr_Latn.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.id.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.ru.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.zh.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.ca.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.pl.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.tr.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.ar.po:
        i18nspector is not happy:
                W: empty-file
    ERROR: wiki/src/getting_started.zh_TW.po:
        i18nspector is not happy:
                W: empty-file

Maybe something specific to this file, either in the source or in the
tooling?

    ERROR: wiki/src/install/inc/steps/create_persistence.inline.es.po:
        i18nspector is not happy:
                I: duplicate-header-field X-Generator
                E: duplicate-header-field-plural-forms
      checked files are not clean.

Some tooling bug, presumably?

and a (partial) follow-up:

Besides po/hr.po, I think I'll keep all other files as they are,
removing them entirely might lose us translations that *might* be
fine…

This also explains the following (expected) test failure in the test suite runs for 4.6:

features/po.feature:7 # Scenario: check all PO files

It seemed acceptable to release as-is.

Assigning to emmapeel who looked at it as well, for additional comments or plain reassign to the appropriate people (thanks!).

Setting type of work to Code because it seems some tooling might need tweaking.


Subtasks


History