#1081 Fetch weblate translations for all websites
Merged by kevin. Opened by darknao.
darknao/fedora-websites l10n_fix  into  master

Download 1081.patch

related: https://pagure.io/fedora-infrastructure/issue/9996

This is a few fixups to get translation updated at build time.

The LINGUAS file from weblate does not contain the en language (which must be built anyway), so it's now hardcoded in the Makefile.
The pullpos function has been disabled on some websites that are either not present on weblate (yet) or simply retired.
I've also added the langtable library to build the language menu instead of using build.d/translations.ini, which is outdated.

Next step will be to update the build script to include the make pullpos command.

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

One single question: I'm using langtable in another project and did not had to embed xml files in the repo, this looks weird to me. May you explain the motivation?

Those files are used by the langtable library to get what I'm looking for, in this case, translated language name.
I actually don't need all of them, since I'm only using the language part of it. But unless we have some kind of space restriction in this repo, I tend to avoid stripping bits from third party

I can use the gz version though. Yep, let's do that

Well, afterthought, we don't need to embed this library. We should use the packaged version instead.

rebased onto 47d855a08f067bfe82be136fd4857ce6ba175bc6

rebased onto 9977de9fa9f62711baa6350413a53bed07569492

Pull-Request has been merged by kevin

Metadata