mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
ci: Handle POTFILES.skip in potfiles check
Allow marking files as ignored when searching for translatable strings, similar to "good" ol' intltool. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/812
This commit is contained in:
parent
91b13effc8
commit
6c0bd207e9
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,11 @@ globs=('*.js' '*.c')
|
|||
# find source files that contain gettext keywords
|
||||
files=$(grep -lR ${globs[@]/#/--include=} '\(gettext\|[^I_)]_\)(' $srcdirs)
|
||||
|
||||
# filter out excluded files
|
||||
if [ -f po/POTFILES.skip ]; then
|
||||
files=$(for f in $files; do ! grep -q ^$f po/POTFILES.skip && echo $f; done)
|
||||
fi
|
||||
|
||||
# find those that aren't listed in POTFILES.in
|
||||
missing=$(for f in $files; do ! grep -q ^$f po/POTFILES.in && echo $f; done)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue