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

Re: [locales] Solving the "debconf is not a registry" issue



At Sun, 27 Apr 2003 23:13:59 +0200,
Denis Barbier wrote:
> [1  <text/plain; us-ascii (7bit)>]
> On Mon, Apr 28, 2003 at 03:55:38AM +0900, GOTO Masanori wrote:
> > At Thu, 24 Apr 2003 14:53:49 -0400,
> > Joey Hess wrote:
> > > [1  <text/plain; us-ascii (quoted-printable)>]
> > > GOTO Masanori wrote:
> > > > It's fine, and in this modification chance, we would like to apply
> > > > #117509 "locales: Message grammar".  Do you think?
> > > 
> > > Yes, that is a definite improvement.
> > 
> > Well, Denis, could you send the complete patch including your fix and
> > this #117509 improvement?
> [...]
> 
> Sure, here is an updated patch.
> There is an important change, /usr/lib/locale/* is now cleaned up by
> locale-gen and not postinst.  The reason is that with this change config
> and postinst files do only manage the configuration files, and locale-gen
> manages locales into /usr/lib/locale/.  Next improvement will be to
> regenerate only the locales whose definition files have changed, and it
> will be done by patching locale-gen.

Thanks for your patch!  This change is ok for me.  I've committed in.
BTW, each line still inserts the empty line, though.

>   DEBIAN/templates:
>     * Apply patch from #117509 and another typo fix by Joey Hess
>     * In locales/locales_to_be_generated, Choices is no more translatable
>       because it is set to Choices: ${locales}

Hmm, I noticed that we were planning to support Bug#174190, see:

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=174190

However, we have no more default set language names, so 'Danish locale
for Denmark' cannot be translated into a favorite name under the
different locales.  Do you think about it?

>   DEBIAN/config:
>     * Replace /bin/bash by /bin/sh on the shebang line
>     # Add support for backing up
>     * Parse configuration files and set debconf values 
>   DEBIAN/postinst:
>     * Recreate configuration files from debconf values and run locale-gen
>     * As explained by Joey Hess, this script should be safer because some
>       border cases are now taken into account: configuration files might
>       have no EOL at EOF, and line order is preserved.
>   usr/sbin/locale-gen:
>     * Clean up /usr/lib/locale/ before generating locales

Regards,
-- gotom



Reply to: