Improve build for translations and a couple fixes for German translation #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ports over new changes from arch1t3cht#52
In summary this does:
aegisub.appdata.xml
jq
+xmlstarlet
+intltool
to justgettext
for extracting and merging back translations from/intoaegisub.appdata.xml
make_pot.sh
(replacing my prior flawed attempt from 2020)The changed line count may look daunting, but the vast majority just comes from running
make_pot.sh
once to fix up backslash escapes. Apart from the creation date string, this change can be easily reproduced by runningmake_pot.sh
.Afaict CMake doesn't have logic for merging back translations into the desktop file and no logic at all for
appdata.xml
? Therefor this only touches theconfigure+Make
buildsystem. Since I’m not sure how gettext is canonically integrated into CMake and this is an unrelated preëxisting issue, I refrained from integrating appdata and desktop file translations into the CMake build.Side note: In fact, I’m unable to successfully build with CMake. It (but not the configure+Make` build!) fails with:
EDIT: The Ubuntu-CMake build didn't suffer from this error and managed to get to building tests before being killed. MacOS build errors in CI (both Cmake and configure+Make) appear unrelated to this PR.