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

RFC: i18n in cdebconf / debconf



Hi,

As there are certain places in d-i where we need to construct a
translated list, and preferably not pull gettext into d-i [1],
I propose to add the following method:

debconf_add_element (struct debconfclient *client,
		     const char *select_template,
		     const char *sub_template)

This would take the text from a text template, "sub_template",
and add it to the select template.

eg. If we had 

Template: one_word
Type: text
Description: one
Description-fr: un

Template: two_word
Type: text
Description: two
Description-fr: deux

Template: numbers
Type: select
Description:

Then
	debconf_add_element (client, "numbers", "one_word");
	debcont_add_element (client, "numbers", "two_word");
	debconf_input (client, "medium", "numbers");

would present the list "un, deux", to the user in a french locale,
returning "one" or "two" when selected to the client.

Any comments or suggestions?

- Alastair McKinstry
-- 
Alastair McKinstry <mckinstry@computer.org>



Reply to: