#1082 [stg] Fetch weblate translations for all websites
Merged by bcotton. Opened by darknao.
darknao/fedora-websites l10n_stg  into  staging

Download 1082.patch

Same as PR#1081 but for staging, as we may want to try it there first.
This also include some catch-up to master branch.

I have been discussing with @darknao regarding these changes.
I trust him to be able to fix localization issues with this change.

27 new commits added

  • use langtable library to dynamically build the language menu
  • ignore pullpos for non-translated/retired site
  • build en site independently of LINGUAS content
  • Fix a couple of date updates I missed
  • Initial prep of Flock^W Nest 2021 content
  • "Fix" the link to the install guide on download splashes.
  • Update with the new logo
  • re-apply 4a594a07dc4e6b13c5956286f8e454547898cf54
  • Merge branch 'master' into f34
  • Use the KDE logo for KDE Plasma downloads
  • Add aarch64 link to KDE Plasma download page
  • Add KDE Plasma's new aarch64 deliverables
  • [spins] Move Cinnamon for f34 release
  • [labs] filename format change for python classroom
  • [labs] checksum fixes
  • [spins] checksum fixes
  • Nix two missing arm spins
  • [arm] reindent index to make editing it feasible
  • [arm] checksum fixes
  • [alt] Fix up checksum links, and point them to new getfedora checksum dir format
  • bump globalvar
  • Revert "[alt] hardcode some changes for arm links"
  • Update the KDE Plasma screenshot for F34
  • Improve some wording.
  • Update setup instructions to note python2-genshi is required.
  • KDE Spin: Update for F34 showcased software
  • Add i3 to the Spins page

Pull-Request has been merged by bcotton

Merged. Let's see how it goes before we merge production.

@darknao looks like something's not quite right...

(repeats for all of the websites in the repo)

labs.fedoraproject.org build failed
====================================
Makefile:3: target `en' given more than once in the same rule.
python2.7 /srv/web/fedora-websites/labs.fedoraproject.org/../build.d/build.py -o out -s static -b /
python2.7 /usr/bin/pybabel extract -F /srv/web/fedora-websites/labs.fedoraproject.org/../build.d/pybabel.cfg data -o po/labs.fedoraproject.org.pot
extracting messages from data/content/index.html (extract_text="False")
extracting messages from data/content/prerelease.html (extract_text="False")
extracting messages from data/content/verify.html (extract_text="False")
extracting messages from data/content/astronomy/index.html (extract_text="False")
extracting messages from data/content/astronomy/download/astronomy-download-splash.html (extract_text="False")
extracting messages from data/content/astronomy/download/index.html (extract_text="False")
extracting messages from data/content/comp-neuro/index.html (extract_text="False")
extracting messages from data/content/comp-neuro/download/comp-neuro-download-splash.html (extract_text="False")
extracting messages from data/content/comp-neuro/download/index.html (extract_text="False")
extracting messages from data/content/design-suite/index.html (extract_text="False")
extracting messages from data/content/design-suite/download/design-download-splash.html (extract_text="False")
extracting messages from data/content/design-suite/download/index.html (extract_text="False")
extracting messages from data/content/e/404.html (extract_text="False")
extracting messages from data/content/games/index.html (extract_text="False")
extracting messages from data/content/games/download/games-download-splash.html (extract_text="False")
extracting messages from data/content/games/download/index.html (extract_text="False")
extracting messages from data/content/jam/index.html (extract_text="False")
extracting messages from data/content/jam/download/index.html (extract_text="False")
extracting messages from data/content/jam/download/jam-download-splash.html (extract_text="False")
extracting messages from data/content/python-classroom/index.html (extract_text="False")
extracting messages from data/content/python-classroom/download/index.html (extract_text="False")
extracting messages from data/content/python-classroom/download/python-classroom-download-splash.html (extract_text="False")
extracting messages from data/content/robotics/index.html (extract_text="False")
extracting messages from data/content/robotics/download/index.html (extract_text="False")
extracting messages from data/content/robotics/download/robotics-download-splash.html (extract_text="False")
extracting messages from data/content/scientific/index.html (extract_text="False")
extracting messages from data/content/scientific/download/index.html (extract_text="False")
extracting messages from data/content/scientific/download/scientific-download-splash.html (extract_text="False")
extracting messages from data/content/security/index.html (extract_text="False")
extracting messages from data/content/security/download/index.html (extract_text="False")
extracting messages from data/content/security/download/security-download-splash.html (extract_text="False")
extracting messages from data/templates/css.html (extract_text="False")
extracting messages from data/templates/export-regulations.html (extract_text="False")
extracting messages from data/templates/footer.html (extract_text="False")
extracting messages from data/templates/head.html (extract_text="False")
extracting messages from data/templates/js.html (extract_text="False")
extracting messages from data/templates/master.html (extract_text="False")
extracting messages from data/templates/regulations.html (extract_text="False")
extracting messages from data/templates/astronomy/header.html (extract_text="False")
extracting messages from data/templates/comp-neuro/header.html (extract_text="False")
extracting messages from data/templates/comp-neuro/supportresources.html (extract_text="False")
extracting messages from data/templates/design-suite/header.html (extract_text="False")
extracting messages from data/templates/games/header.html (extract_text="False")
extracting messages from data/templates/generic/devel.html (extract_text="False")
extracting messages from data/templates/generic/docs-links.html (extract_text="False")
extracting messages from data/templates/generic/other-media-sources.html (extract_text="False")
extracting messages from data/templates/generic/splash-checksum-unofficial.html (extract_text="False")
extracting messages from data/templates/generic/splash-checksum.html (extract_text="False")
extracting messages from data/templates/generic/unofficial.html (extract_text="False")
extracting messages from data/templates/jam/header.html (extract_text="False")
extracting messages from data/templates/python-classroom/header.html (extract_text="False")
extracting messages from data/templates/python-classroom/splash-python.html (extract_text="False")
extracting messages from data/templates/python-classroom/supportresources.html (extract_text="False")
extracting messages from data/templates/robotics/header.html (extract_text="False")
extracting messages from data/templates/scientific/header.html (extract_text="False")
extracting messages from data/templates/security/header.html (extract_text="False")
writing PO template file to po/labs.fedoraproject.org.pot
msginit -i po/labs.fedoraproject.org.pot --no-translator -l en -o po/en.po
Created po/en.po.
msgfmt -o po/en.mo po/en.po
python2.7 /srv/web/fedora-websites/labs.fedoraproject.org/../build.d/construct-translations.py /srv/web/fedora-websites/labs.fedoraproject.org/../build.d/translations.ini po/LINGUAS data/templates/translations.html
Traceback (most recent call last):
  File "/srv/web/fedora-websites/labs.fedoraproject.org/../build.d/construct-translations.py", line 4, in <module>
    import langtable
ImportError: No module named langtable
make: *** [data/templates/translations.html] Error 1

I'm not sure where you are running the build script, but there is a PR on infra side waiting to be merged
https://pagure.io/fedora-infra/ansible/pull-request/632
If you are using your own build system, you'll need to install langtable-python (or langtable via pip, depending of your system)

I'm not sure where you are running the build script

I'm not, this is a failure from the actual build. Looks like your infra PR will fix it. I've subscribed to that PR, so if there are still errors from the build after that's merged, I'll let you know. Or you can get someone who is a sponsor of the web group to add you to that group and then you'll get build failures via email.

Metadata