*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit bffba18d authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Add wrapper script for pybabel

* because we moved away from setuptools which had wrappers
parent d2e362e4
No related branches found
No related tags found
1 merge request!16Modernize the package
babel.sh 0 → 100755
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo >&2 "error: expected at least one argument"
fi
case "${1}" in
init)
pybabel init \
--input-file "invenio_utilities_tuw/translations/messages.pot" \
--output-dir "invenio_utilities_tuw/translations/"
;;
compile)
pybabel compile \
--directory "invenio_utilities_tuw/translations/"
;;
extract)
pybabel extract \
--copyright-holder "TU Wien" \
--msgid-bugs-address "tudata@tuwien.ac.at" \
--mapping-file "babel.ini" \
--output-file "invenio_utilities_tuw/translations/messages.pot" \
--add-comments "NOTE"
;;
update)
pybabel update \
--input-file "invenio_utilities_tuw/translations/messages.pot" \
--output-dir "invenio_utilities_tuw/translations/"
;;
*)
echo >&2 "unknown command: ${1}"
exit 1
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment