Fix translations
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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"
|
||||
' {} \;
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user