Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
c0124318
Commit
c0124318
authored
Oct 09, 2018
by
segfault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more comments for translators
parent
dbfa2a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
config/chroot_local-includes/usr/local/lib/python3/dist-packages/unlock_veracrypt_volumes/volume.py
.../python3/dist-packages/unlock_veracrypt_volumes/volume.py
+4
-2
config/chroot_local-includes/usr/local/sbin/tails-additional-software
...t_local-includes/usr/local/sbin/tails-additional-software
+3
-0
No files found.
config/chroot_local-includes/usr/local/lib/python3/dist-packages/unlock_veracrypt_volumes/volume.py
View file @
c0124318
...
...
@@ -54,12 +54,12 @@ class Volume(object):
partition
=
self
.
udisks_object
.
get_partition
()
if
block_label
:
# Translators: Don't translate {volume_label} or {volume_size},
#
it's a
placeholder and will be replaced.
#
they are
placeholder
s
and will be replaced.
return
_
(
"{volume_label} ({volume_size})"
).
format
(
volume_label
=
block_label
,
volume_size
=
self
.
size_for_display
)
elif
partition
and
partition
.
props
.
name
:
# Translators: Don't translate {partition_name} or {partition_size},
#
it's a
placeholder and will be replaced.
#
they are
placeholder
s
and will be replaced.
return
_
(
"{partition_name} ({partition_size})"
).
format
(
partition_name
=
partition
.
props
.
name
,
partition_size
=
self
.
size_for_display
)
else
:
...
...
@@ -223,6 +223,8 @@ class Volume(object):
else
:
title
=
_
(
"Error unlocking volume"
)
# Translators: Don't translate {volume_name} or {error_message},
# they are placeholder and will be replaced.
body
=
_
(
"Couldn't unlock volume {volume_name}:
\n
{error_message}"
.
format
(
volume_name
=
self
.
name
,
error_message
=
e
.
message
))
self
.
manager
.
show_warning
(
title
,
body
)
return
...
...
config/chroot_local-includes/usr/local/sbin/tails-additional-software
View file @
c0124318
...
...
@@ -140,6 +140,7 @@ def _notify_failure(summary, details=None):
log.
"""
if
details
:
# Translators: Don't translate {details}, it's a placeholder and will be replaced.
details
=
_
(
"{details} Please check your list of additional "
"software or read the system log to "
"understand the problem."
).
format
(
details
=
details
)
...
...
@@ -308,6 +309,7 @@ def handle_installed_packages(packages):
logging
.
warn
(
"Warning: persistence storage is locked, can't add "
"additional software."
)
elif
is_tails_media_writable
():
# Translators: Don't translate {packages}, it's a placeholder and will be replaced.
if
_notify
(
_
(
"Add {packages} to your additional software?"
).
format
(
packages
=
_format_iterable
(
packages
)),
_
(
"To install it automatically when starting Tails, you "
...
...
@@ -328,6 +330,7 @@ def handle_installed_packages(packages):
logging
.
warn
(
"Cannot create persistent storage on this media."
)
if
not
os
.
path
.
isfile
(
ASP_STATE_INSTALLER_ASKED
):
open
(
ASP_STATE_INSTALLER_ASKED
,
'a'
).
close
()
# Translators: Don't translate {packages}, it's a placeholder and will be replaced.
_notify
(
_
(
"You could install {packages} automatically when "
"starting Tails"
).
format
(
packages
=
_format_iterable
(
packages
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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