Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] r58482 - in /trunk/gtk: ChangeLog src/YGUtils.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Thu, 03 Sep 2009 02:31:32 -0000
  • Message-id: <E1Mj26m-0006FG-Uq@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Thu Sep 3 04:31:32 2009
New Revision: 58482

URL: http://svn.opensuse.org/viewcvs/yast?rev=58482&view=rev
Log:
* src/YGUtils.cc: bug fix 446524: complement our label mapping
strategy with an array of translatable yast2 labels.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUtils.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=58482&r1=58481&r2=58482&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Sep 3 04:31:32 2009
@@ -30,6 +30,9 @@
* src/YGWidget.cc: emitEvent(): contain context-menu signals
to flags notifyContextMenu().

+ * src/YGUtils.cc: bug fix 446524: complement our label mapping
+ strategy with an array of translatable yast2 labels.
+
2009-08-29 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/yzyppwrapper.h/.cc: split up Package::support()

Modified: trunk/gtk/src/YGUtils.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUtils.cc?rev=58482&r1=58481&r2=58482&view=diff
==============================================================================
--- trunk/gtk/src/YGUtils.cc (original)
+++ trunk/gtk/src/YGUtils.cc Thu Sep 3 04:31:32 2009
@@ -569,6 +569,9 @@
{
static bool firstTime = true; static std::map <std::string,
std::string> stockMap;
if (firstTime) {
+ firstTime = false;
+
+ // match GTK stock labels to yast ones
GSList *list = gtk_stock_list_ids();
for (GSList *i = list; i; i = i->next) {
gchar *id = (gchar *) i->data;
@@ -586,7 +589,18 @@
g_free (id);
}
g_slist_free (list);
- firstTime = false;
+
+ stockMap [_("Apply")] = GTK_STOCK_APPLY;
+ stockMap [_("Accept")] = GTK_STOCK_APPLY;
+ stockMap [_("OK")] = GTK_STOCK_OK;
+ stockMap [_("Cancel")] = GTK_STOCK_CANCEL;
+ stockMap [_("Yes")] = GTK_STOCK_YES;
+ stockMap [_("No")] = GTK_STOCK_NO;
+ stockMap [_("Add")] = GTK_STOCK_ADD;
+ stockMap [_("Edit")] = GTK_STOCK_EDIT;
+ stockMap [_("Delete")] = GTK_STOCK_DELETE;
+ stockMap [_("Up")] = GTK_STOCK_GO_UP;
+ stockMap [_("Down")] = GTK_STOCK_GO_DOWN;
}

std::string id = cutUnderline (label);

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

< Previous Next >
This Thread
  • No further messages