diff --git a/README.md b/README.md index 7e8d22563b5463189aa1ef2884e9a169d531d49e..f844e836942d8236780711393ab7476c7f006f27 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,12 @@ If you want to mirror the I2P website, thanks! Here is a checklist: (look in `etc/update.vars` for the filename, your webserver should restart WSGI when the timestamp of this file changes). +## Configuration + +Configuration files for the various scripts are in `etc/`. Environment variables +in `etc/translation.vars` can be overridden by creating the file +`etc/translation.vars.custom` and re-defining the environment variables there. + ## Updating translations 1. Pull new and updated translations from Transifex: diff --git a/compile-messages.sh b/compile-messages.sh index f3f2eb3a299bedf28614217141de42305ec852f7..40192ae916d25abb2388a444eb1d91d96f340a1b 100755 --- a/compile-messages.sh +++ b/compile-messages.sh @@ -1,5 +1,6 @@ #!/bin/sh . ./etc/translation.vars +[ -f ./etc/translation.vars.custom ] && . ./etc/translation.vars.custom export TZ=UTC diff --git a/extract-messages.sh b/extract-messages.sh index bdb277be3989d90e26456d3753990a6f469447c4..8ed9b88f65ea704dd7499682e9a1aaafd6df0b26 100755 --- a/extract-messages.sh +++ b/extract-messages.sh @@ -1,5 +1,6 @@ #!/bin/sh . ./etc/translation.vars +[ -f ./etc/translation.vars.custom ] && . ./etc/translation.vars.custom export TZ=UTC diff --git a/init-new-po.sh b/init-new-po.sh index e8395ac2309eaf2f95bfabacaadababc34cff8f2..43c6c0a14d626c1596cb8e584ebddcd5b573d994 100755 --- a/init-new-po.sh +++ b/init-new-po.sh @@ -1,5 +1,6 @@ #!/bin/sh . ./etc/translation.vars +[ -f ./etc/translation.vars.custom ] && . ./etc/translation.vars.custom export TZ=UTC diff --git a/update-existing-po.sh b/update-existing-po.sh index decca88de11f991a059a91e859b38e4052a8b99d..49584c185db76e949ca8cef997e764e56b1ec036 100755 --- a/update-existing-po.sh +++ b/update-existing-po.sh @@ -1,5 +1,6 @@ #!/bin/sh . ./etc/translation.vars +[ -f ./etc/translation.vars.custom ] && . ./etc/translation.vars.custom export TZ=UTC if [ $# -ge 1 ]