Re: Bug#329232: localechooser: Should avoid hardcoding specific packages installation in the script code
Quoting Frans Pop (aragorn@tiscali.nl):
> I agree it would be nice to move this out of the main code, but I really
> dislike abusing the languagelist for this.
> The languagelist is hardly readable as it is and as a solution would not
> support exceptions (i.e. reduce flexibility).
Well, my point was improving maintenability. Maybe using a separate
list.
For sure, the languagelist is not that easy to read at this
moment. And we cannot convert it to XML as we would need tools to
process it..:-).
>
> How about just moving the code to a separate script called from the main
> one? Or even creating a function library that is sourced into the main
> script?
That'd be a possible idea, yes. But I'm not fond of breaking the code
myself as you know. This is however opened to anyone who wants to do
it (hint hint..:-)).
--
Reply to: