Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49606 - in /trunk/gtk: ChangeLog src/YGPackageSelector.cc src/yzyppwrapper.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sun, 03 Aug 2008 14:38:17 -0000
  • Message-id: <20080803143817.42BE02D6D8@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Aug 3 16:38:16 2008
New Revision: 49606

URL: http://svn.opensuse.org/viewcvs/yast?rev=49606&view=rev
Log:
* src/yzyppwrapper.cc: translate patch severities.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGPackageSelector.cc
trunk/gtk/src/yzyppwrapper.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=49606&r1=49605&r2=49606&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Aug 3 16:38:16 2008
@@ -1,3 +1,7 @@
+2008-08-03 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/yzyppwrapper.cc: translate patch severities.
+
2008-08-02 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/YGUtils.cc & src/ygtkrichtext.c: fixed some glitches left from

Modified: trunk/gtk/src/YGPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=49606&r1=49605&r2=49606&view=diff
==============================================================================
--- trunk/gtk/src/YGPackageSelector.cc (original)
+++ trunk/gtk/src/YGPackageSelector.cc Sun Aug 3 16:38:16 2008
@@ -1475,7 +1475,7 @@

m_type = gtk_combo_box_new_text();
if (updateMode)
- gtk_combo_box_append_text (GTK_COMBO_BOX (m_type),
_("Patches"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_type),
_("Severity"));
else {
gtk_combo_box_append_text (GTK_COMBO_BOX (m_type),
_("Groups"));
gtk_combo_box_append_text (GTK_COMBO_BOX (m_type),
_("Patterns"));

Modified: trunk/gtk/src/yzyppwrapper.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=49606&r1=49605&r2=49606&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Sun Aug 3 16:38:16 2008
@@ -1422,9 +1422,23 @@
}
};

+ std::string category = category_str;
+ if (type == Package::PATCH_TYPE) {
+ if (category_str == "security")
+ category = _("Security");
+ else if (category_str == "recommended")
+ category = _("Recommended");
+ else if (category_str == "optional")
+ category = _("Optional");
+ else if (category_str == "yast")
+ category = "YaST";
+ else if (category_str == "document")
+ category = _("Documentation");
+ }
+
if (!categories[type])
categories[type] = new StringTree (inner::cmp, '/');
- return categories[type]->add (category_str, 0);
+ return categories[type]->add (category, 0);
}

Ypp::Node *Ypp::Impl::addCategory2 (Ypp::Package::Type type, const std::string
&category_str)

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages