[magneto/gtk*] fix string format in both gtk2 and gtk3 frontends

This commit is contained in:
Fabio Erculiani
2013-02-28 09:13:08 +00:00
parent 83b8991c95
commit 7faf042f86
2 changed files with 6 additions and 6 deletions

View File

@@ -205,8 +205,8 @@ class Magneto(MagnetoCore):
critical_txt = ""
if entropy_ver is not None:
critical_txt = "%s <b>sys-apps/entropy</b> "
"%s, %s <b>%s</b>. %s." % (
critical_txt = "%s <b>sys-apps/entropy</b> %s, %s <b>%s</b>. %s."
txt = critical_txt % (
_("Your system currently has an outdated version of"),
_("installed"),
_("the latest available version is"),
@@ -215,6 +215,6 @@ class Magneto(MagnetoCore):
"the latest before updating any other packages")
)
self._notice_window.populate(packages, critical_txt)
self._notice_window.populate(packages, txt)
self._notice_window.show()
self.notice_window_shown = True

View File

@@ -200,8 +200,8 @@ class Magneto(MagnetoCore):
critical_txt = ''
if entropy_ver is not None:
critical_txt = "%s <b>sys-apps/entropy</b>"
" %s, %s <b>%s</b>. %s." % (
critical_txt = "%s <b>sys-apps/entropy</b> %s, %s <b>%s</b>. %s."
txt = critical_txt % (
_("Your system currently has an outdated version of"),
_("installed"),
_("the latest available version is"),
@@ -210,6 +210,6 @@ class Magneto(MagnetoCore):
" the latest before updating any other packages")
)
self._notice_window.populate(packages, critical_txt)
self._notice_window.populate(packages, txt)
self._notice_window.show()
self.notice_window_shown = True