Bug#382605: partman-crypto not entirely localized
Package: partman-crypto
Severity: minor
Tags: l10n, patch
Hi,
the template partman-crypto/text/erase_data (_Description: Erase data:)
does not have its choices (yes/no) localizable. Please apply something
like the attached (untested) patch.
--
Miroslav Kure
Index: debian/partman-crypto.templates
===================================================================
--- debian/partman-crypto.templates (revision 39735)
+++ debian/partman-crypto.templates (working copy)
@@ -112,6 +112,14 @@
# by "yes" or "no"
_Description: Erase data:
+Template: partman-crypto/text/erase_data
+Type: text
+_Description: yes
+
+Template: partman-crypto/text/dont_erase_data
+Type: text
+_Description: no
+
Template: partman-crypto/text/erase_data_partition
Type: text
_Description: Erase data on this partition
Index: active_partition/erase/choices
===================================================================
--- active_partition/erase/choices (revision 39735)
+++ active_partition/erase/choices (working copy)
@@ -12,11 +12,19 @@
choice_erase () {
if [ -f $part/skip_erase ]; then
- #db_metaget partman-crypto/text/erase_data description
- erase="no"
+ db_metaget partman-crypto/text/erase_data description || RET=''
+ if [ "$RET" ]; then
+ erase="$RET"
+ else
+ erase="no"
+ fi
else
- #db_metaget partman-crypto/text/dont_erase_data description
- erase="yes"
+ db_metaget partman-crypto/text/dont_erase_data description || RET=''
+ if [ "$RET" ]; then
+ erase="$RET"
+ else
+ erase="yes"
+ fi
fi
db_metaget partman-crypto/text/erase_data description
Reply to: