Commit 0f485c93 authored by Tails developers's avatar Tails developers
Browse files

Use the "tails" gettext domain for all custom programs that live directly in Git.

parent cabc150d
......@@ -53,7 +53,7 @@ def __get_localised_doc_link():
def _(string):
try:
string = gettext.translation("amnesia", "/usr/share/locale").lgettext(string)
string = gettext.translation("tails", "/usr/share/locale").lgettext(string)
except IOError:
pass
finally:
......
......@@ -44,7 +44,7 @@ use DateTime;
use Locale::gettext;
use POSIX;
setlocale(LC_MESSAGES, "");
textdomain("gpgApplet");
textdomain("tails");
=head1 GLOBALS
......
......@@ -10,9 +10,10 @@ from locale import setlocale, LC_ALL
LOCALE_PREFIX = "%susr" % (sep)
LOCALE_DIR = "%s%sshare%slocale" % ( LOCALE_PREFIX, sep, sep )
PACKAGE = "shutdown_helper_applet"
TEXT_DOMAIN = "tails"
setlocale(LC_ALL, "")
bindtextdomain(PACKAGE, LOCALE_DIR)
textdomain(PACKAGE)
textdomain(TEXT_DOMAIN)
def applet_factory(applet, iid):
image = gtk.Image()
......
......@@ -5,7 +5,7 @@ import gtk
import gettext
import subprocess
gettext.install("tails-about")
gettext.install("tails")
try:
tails_version = subprocess.Popen(["tails-version"], stdout=subprocess.PIPE).communicate()[0]
tails_main_version = tails_version.split("-")[0]
......
......@@ -31,7 +31,7 @@ use POSIX;
### initialization
setlocale(LC_MESSAGES, "");
textdomain("tails-htp-notify-user");
textdomain("tails");
my $htp_done_file = '/var/run/htpdate/done';
my $htp_success_file = '/var/run/htpdate/success';
my $htp_log_file = '/var/log/htpdate.log';
......
......@@ -59,7 +59,7 @@ BEGIN {
use LWP::UserAgent; # needs to be *after* IO::Socket::SSL's initialization
setlocale(LC_MESSAGES, "");
textdomain("tails-security-check");
textdomain("tails");
### configuration
......
......@@ -28,7 +28,7 @@ use POSIX;
### initialization
setlocale(LC_MESSAGES, "");
textdomain("tails-i2p-notify-user");
textdomain("tails");
### helper subs
......
......@@ -30,7 +30,7 @@ use POSIX;
### initialization
setlocale(LC_MESSAGES, "");
textdomain("tails-virt-notify-user");
textdomain("tails");
my $detected_virt_file='/var/lib/live/detected-virtual-machine';
### main
......
......@@ -143,7 +143,7 @@ if __name__ == "__main__":
program_name = os.path.basename(sys.argv[0])
syslog.openlog("%s[%i]" % (program_name, os.getpid()))
gettext.install(program_name)
gettext.install("tails")
if len(sys.argv) < 2:
print_help()
......
......@@ -6,7 +6,7 @@ CMD=$(basename ${0})
LOCK=/var/lock/${CMD}
. gettext.sh
TEXTDOMAIN="${CMD}"
TEXTDOMAIN="tails"
export TEXTDOMAIN
ROFS=/lib/live/mount/rootfs/filesystem.squashfs
......
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