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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1100681
Title:
skip a step you want, and reduce the language selection
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1100681/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs