Fix translations
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit

This commit is contained in:
2025-03-03 18:53:59 +01:00
parent 9361bc0363
commit fa05de8c37
6 changed files with 12 additions and 14 deletions

10
Jenkinsfile vendored
View File

@ -20,12 +20,12 @@ pipeline {
stage('Compile Translations') {
steps {
// Find all .po files under kapitanbooru_uploader/locales and compile them to .mo
sh '''
find kapitanbooru_uploader/locales -name "*.po" -print0 | while IFS= read -r -d '' po; do
mo=$(echo "$po" | sed 's/\\.po$/.mo/');
msgfmt "$po" -o "$mo";
done
find kapitanbooru_uploader/locales -name "*.po" -exec sh -c '
po="$0"
mo="${po%.po}.mo"
msgfmt "$po" -o "$mo"
' {} \;
'''
}
}