<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Editor::Select;
use strict;
use Debconf::Gettext;
use base qw(Debconf::Element::Select);


sub show {
	my $this=shift;

	my $default=$this-&gt;translate_default;
	my @choices=$this-&gt;question-&gt;choices_split;

	$this-&gt;frontend-&gt;comment($this-&gt;question-&gt;extended_description."\n\n".
		"(".gettext("Choices").": ".join(", ", @choices).")\n".
		$this-&gt;question-&gt;description."\n");
	$this-&gt;frontend-&gt;item($this-&gt;question-&gt;name, $default);
}


sub value {
	my $this=shift;

	return $this-&gt;SUPER::value() unless @_;
	my $value=shift;
	
	my %valid=map { $_ =&gt; 1 } $this-&gt;question-&gt;choices_split;
	
	if ($valid{$value}) {
		return $this-&gt;SUPER::value($this-&gt;translate_to_C($value));
	}
	else {
		return $this-&gt;SUPER::value($this-&gt;question-&gt;value);
	}
}


1
</pre></body></html>