[Bug 1100681] Re: skip a step you want, and reduce the language selection

kobe kobe24_lixiang at 126.com
Wed Jan 23 08:44:56 UTC 2013


For the second question, maybe we can achieve the requirement by modifing ubiquity/plugins/ubi-language.py and ubiquity/i18n.py, even we can delete language packs or chage the languagelist.data file. 
But we want to use the method as Colin said, and if we try to use ubiquity/only-show-installable-languages at ubuntu.seed file, its value is always false.
--->Here is our attempt one:
1) at preseeds/ubuntu.seed, we write a line:ubiquity ubiquity/only-show-installable-languages boolean true  ;
2) in livecd, we found that the value of "only-show-installable-languages" is false.

---->Attempt two:
Also, we had used a  complex method to change the value to "true", but during the installation process ,we found the language list does not have any change. we check the codes of ubiquity ( "ubiquity/i18n.py:get_languages"):
if only_installable:
            pkg_name = 'language-pack-%s' % code
            .......
            try:
                pkg = cache[pkg_name]
                if not (pkg.installed or pkg.candidate):   (1)
                   ......
            except KeyError:
                ......

Our question is (1), if it is "if not pkg.installed",  the language list will only display the language packs installed. So, it is close to our requirements.
If we use "if not (pkg.installed or pkg.candidate)",  the language list will display all language. we think that the reason is pkg.candidate and online.

Because our attempt failed, so we want to know how we can make it "true"
easily . if we change codes for UbuntuKylin,  whether our codes can
merge into the trunk or not?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1100681

Title:
  skip a step you want, and reduce the language selection

Status in “ubiquity” package in Ubuntu:
  Triaged

Bug description:
  This is used for a Chinese customized release named "UbuntuKylin" . We
  want to skip some steps  and reduce the language selection.

  (1)Skip some steps:
  UbuntuKylin need to skip a step we want by configuring file, rather than through a line configuration to skip several steps,
  For example, UbuntuKylin need to retain the "Welcome" page for selecting language, but skip the "Preparing to install Ubuntu" interface. Also, it needs to skip the keyboard selection page, the default is U.S. keyboard, rather than select it in installing process.

  (2)Reduce the language selection:
  As mentioned above,UbuntuKylin need to retain the  language selection page,but it only needs three languages, they are Simplified Chinese, Traditional Chinese and English, the default is Simplified Chinese.

  ProblemType: Requirement for UbuntuKylin(Bug)
  DistroRelease: Ubuntu 13.04
  Package: ubiquity_2.13.9
  ProcVersionSignature: Ubuntu 3.8.0-0-generic
  Uname: Linux 3.8.0-0-generic i686
  Date: Thu, 17 Jan 2013 16:53:50

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1100681/+subscriptions




More information about the foundations-bugs mailing list