Commit 0be0def5 authored by anonym's avatar anonym

Move gettext initialization code to the top of shell scripts.

That's what we do in most places, so let's be consistent.
parent 364a3c8d
......@@ -3,6 +3,10 @@
set -e
set -u
. gettext.sh
TEXTDOMAIN="tails"
export TEXTDOMAIN
# Import the TBB_EXT variable, and guess_best_tor_browser_locale().
. /usr/local/lib/tails-shell-library/tor-browser.sh
......@@ -76,11 +80,6 @@ i2p_is_enabled || exit 0
CMD="$(basename "${0}")"
LOCK="/var/lock/${CMD}"
. gettext.sh
TEXTDOMAIN="tails"
export TEXTDOMAIN
CONF_DIR="/var/lib/i2p-browser"
COW="${CONF_DIR}/cow"
CHROOT="${CONF_DIR}/chroot"
......
......@@ -3,6 +3,10 @@
set -e
set -u
. gettext.sh
TEXTDOMAIN="tails"
export TEXTDOMAIN
# Import tor_is_working()
. /usr/local/lib/tails-shell-library/tor.sh
......@@ -73,11 +77,6 @@ maybe_restart_tor () {
CMD="$(basename "${0}")"
LOCK="/var/lock/${CMD}"
. gettext.sh
TEXTDOMAIN="tails"
export TEXTDOMAIN
CONF_DIR="/var/lib/unsafe-browser"
COW="${CONF_DIR}/cow"
CHROOT="${CONF_DIR}/chroot"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment