Project

General

Profile

Feature #16103

Feature #10034: Translation web platform

Feature #15079: Integrate the platform with our Git and ikiwiki infrastructure

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

Added by hefee about 1 year ago. Updated 5 months ago.

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

0%

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

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.


Related issues

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

History

#1 Updated by hefee about 1 year ago

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

#2 Updated by hefee about 1 year ago

  • 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 about 1 year ago

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

#4 Updated by u about 1 year ago

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

#5 Updated by u 9 months ago

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

#6 Updated by u 9 months ago

  • Parent task changed from #10034 to #15079

#7 Updated by hefee 9 months ago

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

Also available in: Atom PDF