FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 08-10-2010, 04:24 PM
David Cantrell
 
Default Translate task and repo names based on the product.img (#622064).

On Tue, 10 Aug 2010, Chris Lumens wrote:


---
iw/task_gui.py | 6 ++++--
yuminstall.py | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/iw/task_gui.py b/iw/task_gui.py
index 5bce75c..4a45fa0 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -627,7 +627,7 @@ class TaskWindow(InstallWindow):
continue

enabled = self.backend.groupListDefault(grps)
- store.append([not anyEnabled and enabled, _(txt), grps])
+ store.append([not anyEnabled and enabled, gettext.ldgettext("comps", txt), grps])

if enabled:
anyEnabled = True
@@ -667,7 +667,9 @@ class TaskWindow(InstallWindow):
tl.append_column(col)

for (reponame, repo) in self.repos.repos.items():
- store.append([repo.isEnabled(), repo.name, repo])
+ store.append([repo.isEnabled(),
+ gettext.ldgettext("comps", repo.name),
+ repo])

store.set_sort_column_id(1, gtk.SORT_ASCENDING)
store.set_sort_func(1, self.__sortRepos)
diff --git a/yuminstall.py b/yuminstall.py
index ce1f898..31cf3ce 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -677,7 +677,7 @@ class AnacondaYum(YumSorter):
continue

url = "%s/%s" % (baseurl, c.get(addonSection, "repository"))
- retval.append((addon, url))
+ retval.append((addon, c.get(addonSection, "name"), url))

return retval

@@ -817,8 +817,8 @@ class AnacondaYum(YumSorter):
addons = self._getAddons(repo.mirrorlist or repo.baseurl[0])
for addon in addons:
addonRepo = AnacondaYumRepo(addon[0])
- addonRepo.name = addon[0]
- addonRepo.baseurl = [ addon[1] ]
+ addonRepo.name = addon[1]
+ addonRepo.baseurl = [ addon[2] ]

if self.anaconda.proxy:
addonRepo.setProxy(self.anaconda)



Ack.

--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 10-14-2010, 12:08 AM
"Brian C. Lane"
 
Default Translate task and repo names based on the product.img (#622064).

From: Chris Lumens <clumens@redhat.com>

---
pyanaconda/iw/task_gui.py | 6 ++++--
pyanaconda/yuminstall.py | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/pyanaconda/iw/task_gui.py b/pyanaconda/iw/task_gui.py
index e639010..42c2dfd 100644
--- a/pyanaconda/iw/task_gui.py
+++ b/pyanaconda/iw/task_gui.py
@@ -623,7 +623,7 @@ class TaskWindow(InstallWindow):
continue

enabled = self.backend.groupListDefault(grps)
- store.append([not anyEnabled and enabled, _(txt), grps])
+ store.append([not anyEnabled and enabled, gettext.ldgettext("comps", txt), grps])

if enabled:
anyEnabled = True
@@ -663,7 +663,9 @@ class TaskWindow(InstallWindow):
tl.append_column(col)

for (reponame, repo) in self.repos.repos.items():
- store.append([repo.isEnabled(), repo.name, repo])
+ store.append([repo.isEnabled(),
+ gettext.ldgettext("comps", repo.name),
+ repo])

store.set_sort_column_id(1, gtk.SORT_ASCENDING)
store.set_sort_func(1, self.__sortRepos)
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 28f5fb4..5a06969 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -690,7 +690,7 @@ class AnacondaYum(YumSorter):
continue

url = "%s/%s" % (baseurl, c.get(addonSection, "repository"))
- retval.append((addon, url))
+ retval.append((addon, c.get(addonSection, "name"), url))

return retval

@@ -843,8 +843,8 @@ class AnacondaYum(YumSorter):
addons = self._getAddons(repo.mirrorlist or repo.baseurl[0])
for addon in addons:
addonRepo = AnacondaYumRepo(addon[0])
- addonRepo.name = addon[0]
- addonRepo.baseurl = [ addon[1] ]
+ addonRepo.name = addon[1]
+ addonRepo.baseurl = [ addon[2] ]

if repo.isEnabled():
addonRepo.enable()
--
1.7.2.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 10-14-2010, 01:42 PM
Chris Lumens
 
Default Translate task and repo names based on the product.img (#622064).

> diff --git a/pyanaconda/iw/task_gui.py b/pyanaconda/iw/task_gui.py
> index e639010..42c2dfd 100644
> --- a/pyanaconda/iw/task_gui.py
> +++ b/pyanaconda/iw/task_gui.py
> @@ -623,7 +623,7 @@ class TaskWindow(InstallWindow):
> continue
>
> enabled = self.backend.groupListDefault(grps)
> - store.append([not anyEnabled and enabled, _(txt), grps])
> + store.append([not anyEnabled and enabled, gettext.ldgettext("comps", txt), grps])
>
> if enabled:
> anyEnabled = True

Do we have translations for tasks and repo names in the comps domain on
Fedora? I don't think so, but I haven't checked for myself. You can
still push this patch for consistency. It just won't do anything.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org