summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeb <geb@riseup.net>2020-07-06 12:02:48 +0200
committergeb <geb@riseup.net>2020-07-06 13:12:11 +0200
commit57e168a9f9d8b2371ede21275f456d117354a354 (patch)
treed3ee41bf6f9074be69748848c05cd27836dda359
parent000163d169f9194cdda1f42c56a4d41d352e1b86 (diff)
Ensure MAC spoofing messages are correctly translated (refs: #17783)bugfix/17783-ensure-translated-mac-spoofing-messages+force-all-tests
As tails-spoof-mac is running as root, its messages cannot be translated according to the user settings. This patch aims to solve this by reading the localization settings from the environment (/etc/default/locale) in tails-spoof-mac initialization.
-rwxr-xr-xconfig/chroot_local-includes/usr/local/lib/tails-spoof-mac4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/local/lib/tails-spoof-mac b/config/chroot_local-includes/usr/local/lib/tails-spoof-mac
index 38bf9f7..59d3403 100755
--- a/config/chroot_local-includes/usr/local/lib/tails-spoof-mac
+++ b/config/chroot_local-includes/usr/local/lib/tails-spoof-mac
@@ -14,6 +14,10 @@ set -u
# Get LIVE_USERNAME
. /etc/live/config.d/username.conf
+# Get LANG
+. /etc/default/locale
+export LANG
+
. /usr/bin/gettext.sh
TEXTDOMAIN="tails"
export TEXTDOMAIN