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

Re: Advice for dbconfig-common template



Justin B Rye wrote:
>>>> Template: dbconfig-common/mysql/method
>>>> Type: select
>>>> __Choices: unix socket, tcp/ip
>>>> Default: unix socket
>>>> _Description: Connection method for MySQL database of ${pkg}:
>>>>  By default, ${pkg} will be configured to use a MySQL server
>>>>  through a local unix socket (this provides the best performance).
>>>>  However, if you would like to connect with a different method, or to a
>>>>  different server entirely, select an option from the choices below.
[...]
> No, it would need to use tr (or a bashism).  And it gets trickier:
> what happens in the Portuguese version where a "Unix socket" is "um
> soquete Unix"?  There's some debconf trick for distinguishing
> translatable choice names from the fixed-string options they set, but
> I can't remember it now.

I was thinking of the documentation for Choices-C, but it turns out
the reason I couldn't remember where that lives is that there isn't
any.  The debconf-devel manpage explains the debugging variable
DEBCONF_C_VALUES, but that's as close as it gets.

Fortunately now I think about it the "__Choices" system ought to deal
with everything, but the leading underscores are telling translators
that these are English words that need translations rather than fixed
codewords, so there's no real reason for them to be lowercase.
-- 
JBR	with qualifications in linguistics, experience as a Debian
	sysadmin, and probably no clue about this particular package


Reply to: