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

Re: Bug#269972: Dealing with " should not display languages unavailable on floppy" bug on localechooser



Quoting Frans Pop (aragorn@tiscali.nl):
> On Thursday 16 February 2006 18:48, Christian Perrier wrote:
> > The attached patch adds a non translatable template to
> > localechooser. It "recognizes" floppy installs by testing for the
> > presence of floppy-retriever. Please suggest other methods if there
> > are some...
> 
> Hmm. Why is this other template also added in this patch?
> 
> +Template: languagechooser/language-name-ascii
> +Type: select
> +Choices: @languagenames_ascii@
> +Choices-en.UTF-8: @nativemessages_ascii@
> +Default: English
> +Description: Choose a language:
> + Please choose the language used for the installation process. This
> + language will be the default language for the final system.
> + .
> + This list is restricted to languages that can currently be displayed.

This is a bug in the patch..:-)

This other tempalte is *already* in the templates file. However, while
working on the patch, I inadvertently re-added it a secodn time..

Attached new patch

-- 


diff -Nru localechooser.ori/debian/localechooser.templates-in localechooser.new/debian/localechooser.templates-in
--- localechooser.ori/debian/localechooser.templates-in	2006-02-16 18:36:44.585776776 +0100
+++ localechooser.new/debian/localechooser.templates-in	2006-02-17 07:51:32.913853607 +0100
@@ -6,6 +6,15 @@
 # Example (french): Choisir la langue/Choose language
 _Description: Choose language
 
+Template: localechooser/floppy-install
+Type: note
+Description: Translations temporarily not available
+ Because you're running the installer from a floppy disk, translations
+ will not be available immediately.
+ .
+ The installation will continue in English until the installer
+ loads packages that include translations from a CD or the network.
+
 Template: languagechooser/language-name-ascii
 Type: select
 Choices: @languagenames_ascii@
diff -Nru localechooser.ori/localechooser localechooser.new/localechooser
--- localechooser.ori/localechooser	2006-02-16 18:36:44.675763096 +0100
+++ localechooser.new/localechooser	2006-02-17 07:51:12.847917278 +0100
@@ -263,6 +263,11 @@
 	:
 fi
 
+if [ -f /usr/lib/debian-installer/retriever/floppy-retriever ] ; then
+	db_input high localechooser/floppy-install || true
+	db_go || true
+fi
+
 db_set "debconf/language" "$LANGUAGELIST"
 log "Set debconf/language = '$LANGUAGELIST'"
 

Reply to: