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

Bug#481152: lintian: Promote the use of "__Choices" in debconf templates files



Hi,

On Wed, 2008-05-14 at 08:09 +0200, Christian Perrier wrote:
> I think it would be good for lintian to promote the use of "__Choices" over
> "_Choices" in debconf templates. This feature is present since po-debconf
> exists so, indeed, no compatibility problems.
> 
> The feature is well documented in po-debconf(7).
> 
> I send this bug report evn if I know it might be incomplete to be processed
> as of now. Anyway, I recommend *not* activating this before lenny is released.

I've developed a test for this, using the description below; it's based
on a combination of your suggestion and my reading of po-debconf(7).

I'm happy to commit the changes - with the tag commented out if that's
best - but haven't done so yet as I wasn't sure whether Frank / Russ
would prefer I simply kept it locally until after the release.

Regards,

Adam

Tag: template-uses-unsplit-choices
Type: warning
Info: The use of _Choices in templates is deprecated
 An _Choices field must be translated as a single string.
 .
 Using __Choices allows each choice to be translated separately, easing
 translation and is therefore recommended.
 .
 Instead of simply replacing all occurrences of "_Choices" by
"__Choices",
 apply the method described in po-debconf(7) under "SPLITTING CHOICES
 LIST", to avoid breaking existing translations.
 .
 If in doubt, please ask for help on the debian-i18n mailing list.
Ref: po-debconf(7)




Reply to: