File indexing completed on 2024-07-14 03:59:46

0001 #!/bin/sh
0002 # https://www.gnu.org/software/gettext/manual/html_node/gettext-Invocation.html#gettext-Invocation
0003 # https://api.kde.org/frameworks/ki18n/html/prg_guide.html
0004 # extract messages from *.py
0005 
0006 # currently, the .pot lives at
0007 # https://websvn.kde.org/trunk/l10n-kf5/templates/messages/kajongg/kajongg.pot
0008 
0009 ${EXTRACTRC:-extractrc} src/*.ui src/*.rc >> rc.cpp
0010 
0011 ${XGETTEXT:-xgettext} \
0012                 -ci18n --from-code=UTF-8 --language=Python -k \
0013                 -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 \
0014                 -ki18nE:1 -ki18ncE:1c,2 \
0015                 -ki18ncp:1c,2,3 -ktr2i18n:1 \
0016                 -kI18N_NOOP:1 -kI18N_NOOP2:1c,2 \
0017                 -kaliasLocale \
0018                 -kcreateRule:1 \
0019                 --no-wrap --msgid-bugs-address=wolfgang@rohdewald.de -o${podir:-.}/kajongg.pot \
0020                 rc.cpp `find . -name \*.py`