[Simple-cdd-devel] Bug#700915: simple-cdd: Should provide translations of the debconf prompt simple-cdd/profiles

Vagrant Cascadian vagrant at debian.org
Mon Mar 4 17:27:00 UTC 2013


On Mon, Mar 04, 2013 at 09:36:38AM +0100, Raphael Hertzog wrote:
> On Sun, 03 Mar 2013, Vagrant Cascadian wrote:
> > On Tue, Feb 19, 2013 at 10:33:30AM +0100, Raphaël Hertzog wrote:
> > > When you opt to not preseed simple-cdd/profiles, you get an English debconf prompt.
> > > 
> > > Considering that debian-installer is very well translated, it's a bit of a
> > > pity to get this non-translated prompt.
> > 
> > The intention was to allow this template to be edited directly... and the
> > assumption was if someone wanted it translated, they would supply a translated
> > template.
> 
> So the user should rebuild simple-cdd and provide an updated version via
> local_packages? That was the idea?

No, if they include simple-cdd.templates in their working dir, it includes it
on the CD image, and loads it during run time. This allows them to edit it to
say whatever they want... but doesn't allow multiple localized templates.


> > > It should not be too difficult to setup some translation infrastructure
> > > with po2debconf and the related tools of po-debconf.
> > 
> > I guess we could provide the infrastructure to translate the default template,
> > and if they want to edit the template they lose translations, or ideally
> > include a mechanism to supply a customized template and .po file as well...
> 
> What I wonder is why you didn't put the templates at its usual place in
> debian/simple-cdd-profiles.templates and then it's trivial to use the
> po-debconf stuff for this.

What I'm realizing now, years and years after originally implementing this, is
that is probably exactly what simple-cdd should do, and then override it with a
supplied template, more or less exactly the way it is now, only with a default
that is actually translated conventionally... though I also have vague memories
of trying this...

The problem is dynamically overriding the template at run-te, as I *don't* want
people to have to build a customized simple-cdd-profiles udeb just to customize
the text for a single debconf question.


live well,
  vagrant



More information about the Simple-cdd-devel mailing list