Feature #16103

Handle translations outside wiki/src WRT check_po: document or opt-out

Added by hefee 2018-11-05 16:12:07 . Updated 2019-06-27 17:16:57 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
2018-11-05
Due date:
% Done:

0%

Feature Branch:
https://0xacab.org/Hefee/tails/translation_platform_hooks
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

As part of the release process of our custom packages, we run check_po on PO files that come straight from Transifex. They don’t satisfy all these new requirements. So either the “Upgrade bundled binary Debian packages” section of wiki/src/contribute/release_process.mdwn must be adjusted to use your code that unifies PO headers, or there must be a way to opt-out of these new checks.


Subtasks


Related issues

Related to Tails - Feature #16102: List of potential checks we might want to do on PO files Resolved 2018-11-05
Related to Tails - Bug #15819: Make sure ikiwiki generated PO files satisfy the requirements we want check_po to set Resolved 2018-08-19
Related to Tails - Feature #11198: Port complex shell scripts into Python Confirmed 2016-08-27

History

#1 Updated by hefee 2018-11-05 16:12:22

  • related to Feature #16102: List of potential checks we might want to do on PO files added

#2 Updated by hefee 2018-11-05 16:19:58

  • Feature Branch changed from tails.git:translation_platform_hooks to https://0xacab.org/Hefee/tails/translation_platform_hooks

As I rewrote the check_po file in python, I also made sure, that there is a switch to make extended checks or not.
By default only i18nspector and msgcat is done. With extended check the other header checks are activated. IMO this should be enough to solve the issue about other translation file sources.
see here the implementation:
https://0xacab.org/Hefee/tails/blob/translation_platform_hooks/wiki/src/contribute/l10n_tricks/unify_po-headers.py#L164
and
https://0xacab.org/Hefee/tails/blob/translation_platform_hooks/wiki/src/contribute/l10n_tricks/unify_po-headers.py#L197

#3 Updated by hefee 2018-11-12 16:23:30

  • related to Bug #15819: Make sure ikiwiki generated PO files satisfy the requirements we want check_po to set added

#4 Updated by Anonymous 2018-11-13 10:32:24

  • related to Feature #11198: Port complex shell scripts into Python added

#5 Updated by Anonymous 2019-02-07 15:16:44

  • Subject changed from translations outside wiki/src to Handle translations outside wiki/src WRT check_po: document or opt-out

#6 Updated by Anonymous 2019-02-07 15:27:29

#7 Updated by hefee 2019-02-08 17:12:23

  • Status changed from Confirmed to Resolved
  • Assignee deleted (hefee)

The python script is taking care of this.

Anyways the new plan is not to run check_po on maingit to stop pushes but run it afterwards an jenkins. To send a mail about unsatisfied po files.