Skip to content

Rework translations, move to Weblate #677

@Infernio

Description

@Infernio
  • Our translation files being .txt throws many gettext editors off (e.g. poedit). This seems to be a relic from the Wrye Mash days, when the translation format was still custom and not gettext (see here). There should be nothing stopping us from renaming them to the standard .po files that they are. -> 9a87dda
  • Hunt down "Bash" in translatable strings and replace it with "Wrye Bash". Reads better and makes it clear to translators/Weblate that we're talking about the untranslatable term Wrye Bash.
  • Investigate using PO templates instead of our bespoke dump_translator, similar to how the LOOT team does it
  • Maybe make a translators group and/or channel on Discord and/or GitHub so we can ping people easily
  • There was a suggestion to use something like Crowdin to make contributing easier, investigate that - https://weblate.org is free for FOSS projects and used by e.g. LibreOffice, Fedora, etc. - on it nearly done :)
    • Figure out pushing and pulling
    • Turn dump_translator into a script, auto-run it nightly or so on the weblate-in branch (making Mopy/bash/_i18n/pygettext.py compile-time-only)
    • Fix the source locations in the translations - they should be Mopy/bash/*, not bash/* (otherwise it breaks the repo browser on weblate)
    • Make the build script compile the translations, then only ship the .mo files (making Mopy/bash/_i18n/msgfmt.py compile-time-only)
    • moved to follow-up issue ->Translations: Write a script for merging changes #690
    • Consider having @wryebot run the aforementioned script on a monthly (more frequent?) basis - A fully automatic script turned out to be infeasible.
    • Change from crediting GitHub Actions for the update.pot commits to crediting our beloved @wryebot! ❤️
    • Get libre hosting approval from weblate - I've sent the request, they responded that they can't currently handle the request and have extended our trial period until the end of February.
      • There's still no update here, but our trial has been continuously extending. Still has two months left as of March 22nd 🤔

Blockers:

Under #500

Metadata

Metadata

Assignees

Labels

A-l10nArea: Localization (localize.py and the l10n folder)C-enhancementCategory: Enhancement, a request to add or enhance a featureM-relnotesMisc: Issue should be listed in the version history for its milestone

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions