3
# Copyright © 2015 Jakub Wilk <jwilk@jwilk.net>
5
# This file is part of djvusmooth.
7
# djvusmooth is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License version 2 as published
9
# by the Free Software Foundation.
11
# djvusmooth is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
19
| grep --color=auto '.*'
24
sed -n -e '/^msgid/ { s/^/ /; p }' \
25
| grep --color=auto ' "[^"].*'
33
m=$(msgfmt --check -o /dev/null "$po" 2>&1 || true)
36
[ -z "$ok" ] || printf '%s:\n' "$po"
37
printf '%s:\n' '- errors from msgfmt --check'
38
printf '%s' "$m" | color
41
if command -v i18nspector > /dev/null
43
m=$(i18nspector "$po")
46
[ -z "$ok" ] || printf '%s:\n' "$po"
47
printf '%s:\n' '- warnings from i18nspector'
48
printf '%s' "$m" | color
52
m=$(msgattrib --no-wrap --only-fuzzy "$po")
55
[ -z "$ok" ] || printf '%s:\n' "$po"
56
printf '%s:\n' '- fuzzy messages'
57
printf '%s' "$m" | color_msgid
60
m=$(msgattrib --no-wrap --untranslated "$po")
63
[ -z "$ok" ] || printf '%s:\n' "$po"
64
printf '%s:\n' '- untranslated messages'
65
printf '%s' "$m" | color_msgid
76
# vim:ts=4 sts=4 sw=4 et