diff --git a/extract-messages.sh b/extract-messages.sh index 1593068d33bff0b1cec22282d563c79a3b0aa8fb..3c98a2a3ed9e70aaf241644ff81a63e4d18bd1e9 100755 --- a/extract-messages.sh +++ b/extract-messages.sh @@ -1,7 +1,7 @@ #!/bin/sh . ./translation.vars -TZ=UTC env/bin/pybabel extract --msgid-bugs-address="http://trac.i2p2.de" \ +TZ=UTC ./pybabel extract --msgid-bugs-address="http://trac.i2p2.de" \ --project=$PROJECT \ --version=$VERSION \ -F $BABELCFG \ diff --git a/i2p2www/babel.cfg b/i2p2www/babel.cfg index 729a93120960b1e8fe4fa9871c42f9a34f98780f..2ed8881a727b65122398ab04d20436afdfa11d83 100644 --- a/i2p2www/babel.cfg +++ b/i2p2www/babel.cfg @@ -1,4 +1,5 @@ [python: **.py] [jinja2: **/pages/**.html] +extensions=jinja2.ext.autoescape,jinja2.ext.with_,i2p2www.extensions.HighlightExtension [jinja2: **/blog/**.rst] extensions=jinja2.ext.autoescape,jinja2.ext.with_ diff --git a/pybabel b/pybabel new file mode 100755 index 0000000000000000000000000000000000000000..0c119a664d5a0578cf6ab1731bc10cd4e6b9c689 --- /dev/null +++ b/pybabel @@ -0,0 +1,10 @@ +#!env/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'Babel==0.9.6','console_scripts','pybabel' +__requires__ = 'Babel==0.9.6' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('Babel==0.9.6', 'console_scripts', 'pybabel')() + )