Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
0f485c93
Commit
0f485c93
authored
Jun 16, 2013
by
Tails developers
Browse files
Use the "tails" gettext domain for all custom programs that live directly in Git.
parent
cabc150d
Changes
10
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/etc/whisperback/config.py
View file @
0f485c93
...
...
@@ -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
:
...
...
config/chroot_local-includes/usr/local/bin/gpgApplet
View file @
0f485c93
...
...
@@ -44,7 +44,7 @@ use DateTime;
use
Locale::
gettext
;
use
POSIX
;
setlocale
(
LC_MESSAGES
,
"");
textdomain
("
gpgApplet
");
textdomain
("
tails
");
=head1 GLOBALS
...
...
config/chroot_local-includes/usr/local/bin/shutdown_helper_applet
View file @
0f485c93
...
...
@@ -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
()
...
...
config/chroot_local-includes/usr/local/bin/tails-about
View file @
0f485c93
...
...
@@ -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
]
...
...
config/chroot_local-includes/usr/local/bin/tails-htp-notify-user
View file @
0f485c93
...
...
@@ -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
';
...
...
config/chroot_local-includes/usr/local/bin/tails-security-check
View file @
0f485c93
...
...
@@ -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
...
...
config/chroot_local-includes/usr/local/bin/tails-start-i2p
View file @
0f485c93
...
...
@@ -28,7 +28,7 @@ use POSIX;
### initialization
setlocale
(
LC_MESSAGES
,
"");
textdomain
("
tails
-i2p-notify-user
");
textdomain
("
tails
");
### helper subs
...
...
config/chroot_local-includes/usr/local/bin/tails-virt-notify-user
View file @
0f485c93
...
...
@@ -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
...
...
config/chroot_local-includes/usr/local/sbin/tails-additional-software
View file @
0f485c93
...
...
@@ -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
()
...
...
config/chroot_local-includes/usr/local/sbin/unsafe-browser
View file @
0f485c93
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment