/
niceSOFT
/
gettext
Обзор
Документация
Войти
/
niceSOFT
/
gettext
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
gettext-tools/tests/xgettext-python-4
33 строки
548 B
Bruno Haible
tests: Add xgettext tests regarding string concatenation.
11 сен 2024, 15:20
11 сен 2024, 15:20
71de71c
Код
Авторство
О чём код?
#!/bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test Python support: --add-comments option, string concatenation. cat <<\EOF > xg-py-4.py # a string = # b # c _( # d "hello " "world" # e ); EOF : ${XGETTEXT=xgettext} ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-py-4.tmp xg-py-4.py || Exit 1 LC_ALL=C tr -d '\r' < xg-py-4.tmp.po > xg-py-4.po || Exit 1 cat <<\EOF > xg-py-4.ok #. a #. b #. c #. d msgid "hello world" msgstr "" EOF : ${DIFF=diff} ${DIFF} xg-py-4.ok xg-py-4.po result=$? exit $result