Skip to content

Simplify translation workflow by using high-level po4a #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 30, 2020

Conversation

paususe
Copy link
Contributor

@paususe paususe commented Sep 30, 2020

Description

In the first iteration of AsciiDoc to gettext to enable translation of docs, 4 scripts did a lot of pre- and post-processing. Pushes to WebLate and merges back from WebLate were a fightening moment, and updating the gettext files generated a metric fuckton of gargabe in commits due to updated timestamps in headers.

This PR gets rid of most of that by using the high-level po4a tool instead of the low-level po4a-gettextize, po4a-updatepo, po4a-translate and others. Now one .pot/.po file is directly generated per documentation guide, and po4a takes care of generating translated AsciiDoc files form those big .po files.

No translations have been lost: I used msgmerge to bring the translated strings from the old .po files to the new .po files with the new .pot as base catalog.

Review advise: ignore most of it. The only interesting thing here is the high-level po4a tool uses configuration files, which are the files in l10n-weblate/*.cfg. List of files is currently maintained manually but in the near future it will be autogenerated from the navigators in the guides (same we do for the PDF), or automagically captured from the directories (see mquinson/po4a#272).

Target branches

Which product version does this PR apply to?

  • Manager-4.0
  • Manager-4.1
  • Manager-4.2
  • Uyuni

Links

Fixes #<insert issue or PR link, if any>

@paususe paususe requested a review from jcayouette September 30, 2020 22:19
@paususe
Copy link
Contributor Author

paususe commented Sep 30, 2020

Since this is blocking the docs components in WebLate, I am going to merge this right away.

@paususe paususe merged commit f4b63a2 into uyuni-project:master Sep 30, 2020
@paususe paususe deleted the paususe-po4a-config-file branch September 30, 2020 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant