Mailinglist Archive: opensuse-features (19 mails)

< Previous Next >
[Fate 302955] Split translations out of installation system
  • From: fate_noreply@xxxxxxx
  • Date: Mon, 28 Jan 2008 19:06:51 +0100 (CET)
  • Message-id: <10626229.1201543611379.JavaMail.tomcat@xxxxxxxxxxxxx>
Feature changed by: locilka
Feature #302955, revision 15
Title: Split translations out of installation system

openSUSE-11.0: Candidate
Requester: Mandatory
Projectmanager: Mandatory

Requested by: coolo@xxxxxxxxxx
Partner organization:

The translations of yast are the biggest part of the installation
These should not be part of the image, but should be pulled in from the
product media as the user selects them.

#1: jsrain@xxxxxxxxxx (2007-11-09 13:18:17)
Duncan, we will need a Linuxrc support for this. Can Steffen look into
this feature? What comes to my mind is:
Linuxrc needs to download and mount the language image for the language
which user selected in bootloader menu (or English as fallback)
Linuxrc needs to provide a support (eg. a script) which YaST can call
when Language changes and downloads and "mounts" the new translation
It is questionable whether it should be YaST or Linuxrc who makes
checks if the asked image is already downloaded, IMO it should be

#2: snwint@xxxxxxxxxx (2007-11-09 14:08:01) (reply to #1)
I don't see linuxrc involved at all. YaST can just donwload he required
files. Doesn't look that tricky to me.

#3: jsuchome@xxxxxxxxxx (2007-11-09 14:29:36) (reply to #2)
Maybe, but I do not know how. Lukas, don't we have some API in yast2-
installation for that (copying target package from media to inst-sys,
if I understand it correctly)?

#4: snwint@xxxxxxxxxx (2007-11-09 14:32:40) (reply to #3)
We've had exactly that discussion when we talked about loading the
licenses. I think now is a good time to fix yast. I really don't see
why other programs have to download various files for yast when yast
could as well do it itself. And when this means doing the repo init
earlier, then, well, do it earlier.

#5: jsrain@xxxxxxxxxx (2007-11-09 15:02:22) (reply to #4)
YaST can only fetch data from instlalation sources. Inst-sys can come
from completly different location than installation sources do. YaST
has no information where to get these images from. YaST would have to
reimplement getting data from all kind of locations on its own (it
cannot use libzypp, since at the location, there needn't be any valid
That's why I'd like to reuse functionality which Linuxrc already has.

#7: coolo@xxxxxxxxxx (2007-11-16 11:42:17) (reply to #5)
Duncan, is it feasible to make the download functionality of libzypp
seperate from valid sources.
E.g. RepoManager::download(theurl_I_got_from_linuxrc,

#10: dmacvicar@xxxxxxxxxx (2008-01-22 18:35:02) (reply to #7)
Yes, MediaSetAccess or even MediaAccess can be used to get a file
directly from an Url.
The design is layered, MediaAccess sits on top of MediaManager(curl,
iso, etc), MediaSetAccess on top, adding multiple media and media
changing support, and RepoProvideFile on top, using the repos urls and
trying different mirrors.
There is also Fetcher which also sits on top of MediaSetAccess which
provide queues and using already downloaded files.
I think it is already used in YaST, YaST does transfer the content file
from media independently from ZYpp.

#6: locilka@xxxxxxxxxx (2007-11-09 16:54:01) (reply to #3)
As already written by snwint, there is no way how to download anything
from sources before they are initialized. So: no, there is no
Installation API for that.
As there can be an installation-(zypp)-source and a different inst-sys,
Installation could either initialize the source as soon as possible but
it still wouldn't know where to download inst-sys extensions. On the
other hand, Linuxrc doesn't know which translations will be needed. So
maybe inst-sys could provide some functionality (API) for downloading
these extensions and merging them (downloaddir + adddir), YaST could
then use that API. Just an idea...

#8: michl@xxxxxxxxxx (2007-11-29 12:46:53)
We should come down to tier1 languages here.

+ #11: locilka@xxxxxxxxxx (2008-01-28 19:06:03) (reply to #9)
+ According the forwarded mails, the Installation framework should call

+ Get
+ InstsysURL
+ and
+ RepoURL
+ from /etc/install.inf
+ (and combine them with a file/localization location to
+ $url_to_download_file_from)
+ /lbin/wget -v $url_to_download_file_from $path_to_save_file_to
+ mkdir /mounts/localization
+ mount -o loop $path_to_save_file_to /mounts/localization
+ adddir /mounts/localization /

+ Where (dir) and under which names will be the localization files
+ (language images) stored?

SUSE Feature Tool:

< Previous Next >