ci: Stop prohibiting template strings in files with translations
It has been nearly two years since the last regression reported in https://savannah.gnu.org/bugs/?func=detailitem&item_id=50920 has been fixed, and no further regressions were reported in the meantime. It looks therefore safe enough to not restrict ourselves, and start allowing templates for all non-translatable strings again. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>
This commit is contained in:
parent
615155f424
commit
3973c84e97
@ -182,14 +182,6 @@ potfile_js_check:
|
|||||||
script:
|
script:
|
||||||
- js91 -m .gitlab-ci/check-potfiles.js
|
- js91 -m .gitlab-ci/check-potfiles.js
|
||||||
|
|
||||||
no_template_check:
|
|
||||||
extends:
|
|
||||||
- .fdo.distribution-image@fedora
|
|
||||||
- .gnome-shell.fedora:35
|
|
||||||
stage: review
|
|
||||||
script:
|
|
||||||
- ./.gitlab-ci/check-template-strings.sh
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
needs: ["check_commit_log"]
|
needs: ["check_commit_log"]
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# find files from POTFILES.in that use js template strings
|
|
||||||
baddies=$(grep -l '${' $(grep ^js po/POTFILES.in))
|
|
||||||
|
|
||||||
if [ ${#baddies} -eq 0 ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat >&2 <<EOT
|
|
||||||
|
|
||||||
xgettext cannot handle template strings properly, so we ban their use
|
|
||||||
in files with translatable strings.
|
|
||||||
|
|
||||||
The following files are listed in po/POTFILES.in and use template strings:
|
|
||||||
|
|
||||||
EOT
|
|
||||||
for f in $baddies; do
|
|
||||||
echo " $f" >&2
|
|
||||||
done
|
|
||||||
echo >&2
|
|
||||||
|
|
||||||
exit 1
|
|
Loading…
x
Reference in New Issue
Block a user