Enable customized oem-config languages displayed

Bug #767342 reported by Kyle Nitzsche
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Expired
Undecided
Unassigned
Precise
Expired
Undecided
Unassigned

Bug Description

Binary package hint: ubiquity

It would be useful in some cases to enable oem-config to display a target set of languages in the Languages page (instead of the default set), and to enable specifying one of them as the default selected language in a simply way and without having to modify ubiquity itself.

Tags: patch
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Attached patch (created from bzr diff) does both of the above. The idea is:
 * Languages displayed: look first in a new location for the languagelistdata.gz file. If found, use its contents as the set of languages to display. If not, fall back to ubiquity's file.
 * Language selected: look for another file that specifies the language to set as selected and if found use it, else use normal means

Changed in ubiquity (Ubuntu):
milestone: none → ubuntu-11.10
tags: added: patch
Revision history for this message
Mario Limonciello (superm1) wrote :

There's actually already some functionality to only show the languages that are in your pool. If you populate it only with the languages you care about, that's all that will be presented to the user.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi Mario,

Can you please provide a simple example of how to make, for example, oem-config's Language page show only three languages: let's say French, German, and simplified/Chinese, with, for example German selected by default?

Revision history for this message
Mario Limonciello (superm1) wrote :

Kyle:

1) Preseed:
  d-i oem-config/install-language-support boolean true
2) Populate an apt pool with those language packages
3) In an early command for oem-config or a late command for ubiquity refresh the apt cache to only know about those languages.

Revision history for this message
Mario Limonciello (superm1) wrote :

Oops wrong preseed:

 d-i ubiquity/only-show-installable-languages boolean true

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Mario:
Which type(s) of language packages specifically need to go in the apt pool? Do you literally mean "language-support-..." pkgs? or "language-pack-<code>" pkgs? Any mix of pkgs that start with "language" and end with "<code>"?

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Mario:

Also, there may be use cases where we want to display a language in oem config and let the user select it, but we do not have the language pack for it present in an on disk archive (due to, for example, disk footprint limitations), and we may not be able to assume a network connection to an apt archive that contains it.

(Granted, such users would need to run Language Support, later, but I don't want to rule this case out.)

The simple patch provides easy-to-use control of the default displayed language list (and determining which is set by default) without the necessity of having to put together an apt cache populated with lang packs.

Revision history for this message
Mario Limonciello (superm1) wrote :

Kyle:
* What's in the pool
I do mean literally the language-support and language-pack pkgs. You might want to check with Tony for what stuff gets included in the builds his team puts together in terms of language pool if you want to match up verbosely.

* No network case
I personally think that's a bad experience to allow the person to pick a language that you don't really support after the out of box experience unless they have web access (part of the reason why that preseed was created). It potentially creates a lot of confusion for the end user since they have no idea what this language tool is or how to find it.

Evan will make the call whether or not to include a patch like the one you listed for oneric though.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

We supported this use case in UNR time frame (oem group).

The use case enables a generic "remix" iso that supports a lot of (but not all) default languages. So, not all of them had language packs on disk, due to disk footprint targets. For those languages that did not have on disk lang packs, the user gets a message after oem-config (translated) that said: "Your language is not completely installed, please use Language Support to complete the installation" (or something along those lines).

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Mario, the other problem (I think) with your solution is the part where you say: "in an early command for oem-config.."

The important point of the patch is to enable setting the languages displayed in oem-config *without* needing to modify ubiquity src pkg. I *think* your solution requires that. Whereas with the patch, one can just drop two files into place and it works.

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 767342] Re: Enable customized oem-config languages displayed

No, oem config has support for a preseedable early command key. No
modifications made to the ubiquity source package.

The same thing can be achieved during a ubiquity late command too (again its
a preseedable key)
On Apr 20, 2011 7:06 PM, "Kyle Nitzsche" <email address hidden>
wrote:

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Excellent. Can you please elucidate the keys?

Revision history for this message
Mario Limonciello (superm1) wrote :

ubiquity late command:
 ubiquity/success_command

oem config early command:
 oem-config/early_command

Changed in ubiquity (Ubuntu):
milestone: ubuntu-11.10 → none
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Has this been resolved, or do you still require/want some new features in ubiquity?

Changed in ubiquity (Ubuntu Precise):
status: New → Incomplete
Changed in ubiquity (Ubuntu):
status: New → Incomplete
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

This is resolved. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubiquity (Ubuntu Precise) because there has been no activity for 60 days.]

Changed in ubiquity (Ubuntu Precise):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubiquity (Ubuntu) because there has been no activity for 60 days.]

Changed in ubiquity (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.