[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#382605: partman-crypto not entirely localized



tags 382605 + pending
thanks

On Sat, Aug 12, 2006 at 07:43:30AM -0500, Christian Perrier wrote:
> Quoting Miroslav Kure (kurem@upcase.inf.upol.cz):
> > 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.
> 
> As long as l10n is concerned, I'm OK with that patch.

Thank you. I've commited it with small changes. 

cheers,
Max
Index: debian/changelog
===================================================================
--- debian/changelog	(Revision 39765)
+++ debian/changelog	(Arbeitskopie)
@@ -3,8 +3,10 @@
   * Name dm-crypt devices according to the underlying block devices
     (like hda5_crypt). Closes: #382398;
   * Drop leading _dev_ from the name of loop-AES keyfiles
+  * Yes/no choices for erase data can be translated. Thanks to
+    Miroslav Kure. Closes: #382605
 
- -- Max Vozeler <xam@debian.org>  Fri, 11 Aug 2006 13:52:38 +0200
+ -- Max Vozeler <xam@debian.org>  Sun, 13 Aug 2006 19:18:12 +0200
 
 partman-crypto (9) unstable; urgency=low
 
Index: debian/partman-crypto.templates
===================================================================
--- debian/partman-crypto.templates	(Revision 39765)
+++ debian/partman-crypto.templates	(Arbeitskopie)
@@ -112,6 +112,14 @@
 # by "yes" or "no"
 _Description: Erase data:
 
+Template: partman-crypto/text/no_erase_data
+Type: text
+_Description: no
+
+Template: partman-crypto/text/yes_erase_data
+Type: text
+_Description: yes
+
 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 39765)
+++ active_partition/erase/choices	(Arbeitskopie)
@@ -12,11 +12,11 @@
 
 choice_erase () {
 	if [ -f $part/skip_erase ]; then
-		#db_metaget partman-crypto/text/erase_data description
-		erase="no"
+		db_metaget partman-crypto/text/no_erase_data description || RET=''
+		erase=${RET:-no}
 	else
-		#db_metaget partman-crypto/text/dont_erase_data description
-		erase="yes"
+		db_metaget partman-crypto/text/yes_erase_data description || RET=''
+		erase=${RET:-yes}
 	fi
 
 	db_metaget partman-crypto/text/erase_data description

Reply to: