#1 bring automation in all-src-to-pot
Closed by jibecfed. Opened by jibecfed.
origin/scripting  into  master

Download 1.patch

this pull request provide a python script to automate the list of documentation to convert to pot files, from the upstream site.yml.
all required fedora-l10n repositories are now created and configured.

please test and then push pot files to fedora-l10n whenever ready for you

Notes:

  • the output really is verbose (because of po4a) and I'm unsure if it is so useful
  • I don't understand the argument "--clone-target-repo", I feel like our scripts should detect an existing git content and pull latest version if so (running the script twice without deleting the output folder will crash).
  • I didn't take the time to convert the src-to-pot from bash to python, please tell if useful
  • I applied a few rules from https://www.shellcheck.net
  • we have a lot of warnings because of the lack of detection of missing pot files we try to interact with (sed and po4a)

3 new commits added

  • make pushd/popd quiet
  • skip if po doesn't exist for this lang
  • don't crash if folder exists

1 new commit added

  • move checks to prepare temporary clonage removal

I've just merged your changes in the second PR! https://pagure.io/fedora-docs/translations-scripts/pull-request/3

Pull-Request has been closed by jibecfed

Metadata