Skip to content
Snippets Groups Projects
Commit 4bf05095 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Generate "*.mo" files during the test


Generate machine readable files on the fly during the test.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 66a28517
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,16 @@ set -e
TESTDIR=$(cd $(dirname $0); pwd; cd - >/dev/null 2>&1)
. "${TESTDIR}/config.sh"
. common/update-test-path
. "${TESTDIR}"/common/update-test-path
failed_cnt=0
echo "Testing supported locales:"
for LOCALE in $(grep -v \# ${TESTDATADIR}/po/LINGUAS); do
#Generate mo file first
LOCALEDIR="${TESTDATADIR}/po/$LOCALE/LC_MESSAGES"
mkdir -p "$LOCALEDIR"
msgfmt -c -o "$LOCALEDIR"/test-gettext.mo po/$LOCALE.po 2>/dev/null
OUTPUT=`LC_ALL=$LOCALE.utf8 TEXTDOMAINDIR=${TESTDATADIR}/po \
gettext test-gettext C`
echo -n $LOCALE.utf8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment