[longomatch] Fix strings in subcategory editor



commit 915031f14de2218e3e637a7226f5285e9af6de42
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Apr 16 18:23:47 2015 +0200

    Fix strings in subcategory editor

 LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs   |   24 +++++++------------
 .../LongoMatch.Gui.Dialog.EventTypeTagsEditor.cs   |    2 +-
 LongoMatch.GUI/gtk-gui/gui.stetic                  |    2 +-
 3 files changed, 11 insertions(+), 17 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs 
b/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
index c996037..9581725 100644
--- a/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
+++ b/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
@@ -106,7 +106,7 @@ namespace LongoMatch.Gui.Dialog
 
                void RemoveGroup (TagsGroup g)
                {
-                       string msg = Catalog.GetString ("Do you want to remove this group and all its tags?");
+                       string msg = Catalog.GetString ("Do you want to remove this subcategory and all its 
tags?");
                        if (Config.GUIToolkit.QuestionMessage (msg, null, this)) {
                                EventType.Tags.RemoveAll (g.tags.Contains);
                                mainvbox.Remove (g.container);
@@ -145,16 +145,14 @@ namespace LongoMatch.Gui.Dialog
                        Entry entry = new Entry (name);
                        Button b = Button ("gtk-remove");
                        
-                       l.Markup = Catalog.GetString ("<b>Group name:</b>");
+                       l.Markup = Catalog.GetString ("<b>Subcategory name:</b>");
                        g.nameEntry = entry;
                        entry.Changed += (sender, e) => {
                                foreach (Tag t in g.tags) {
                                        t.Group = entry.Text;
                                }
                        };
-                       b.Clicked += (sender, e) => {
-                               RemoveGroup (g);
-                       };
+                       b.Clicked += (sender, e) => RemoveGroup (g);
                        box.PackStart (l, false, false, 0);
                        box.PackStart (entry, false, true, 0);
                        box.PackStart (b, false, false, 0);
@@ -169,9 +167,7 @@ namespace LongoMatch.Gui.Dialog
                        Button editHK = Button ("gtk-edit");
                        Button b = Button ("gtk-remove");
 
-                       b.Clicked += (sender, e) => {
-                               RemoveTag (tag, g);
-                       };
+                       b.Clicked += (sender, e) => RemoveTag (tag, g);
 
                        editHK.Clicked += (sender, e) => {
                                HotKey hotkey = Config.GUIToolkit.SelectHotkey (tag.HotKey);
@@ -224,19 +220,17 @@ namespace LongoMatch.Gui.Dialog
 
                Button CreateAddGroupButton ()
                {
-                       Button b = CreateButton (Catalog.GetString ("Add new group"), IconSize.LargeToolbar);
-                       b.Clicked += (sender, e) => {
-                               AddNewGroup (Catalog.GetString ("New group"), new List<Tag> ());
-                       };
+                       Button b = CreateButton (Catalog.GetString ("Add new subcategory"),
+                                          IconSize.LargeToolbar);
+                       b.Clicked += (sender, e) =>
+                               AddNewGroup (Catalog.GetString ("New subcategory"), new List<Tag> ());
                        return b;
                }
 
                Button CreateAddTagButton (TagsGroup g)
                {
                        Button b = CreateButton (Catalog.GetString ("Add new tag"), IconSize.Button);
-                       b.Clicked += (sender, e) => {
-                               AddTag (g);
-                       };
+                       b.Clicked += (sender, e) => AddTag (g);
                        return b;
                }
 
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EventTypeTagsEditor.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EventTypeTagsEditor.cs
index 33485fc..bbcf0d2 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EventTypeTagsEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EventTypeTagsEditor.cs
@@ -17,7 +17,7 @@ namespace LongoMatch.Gui.Dialog
                        global::Stetic.Gui.Initialize (this);
                        // Widget LongoMatch.Gui.Dialog.EventTypeTagsEditor
                        this.Name = "LongoMatch.Gui.Dialog.EventTypeTagsEditor";
-                       this.Title = global::Mono.Unix.Catalog.GetString ("Edit event tags");
+                       this.Title = global::Mono.Unix.Catalog.GetString ("Edit event subcategory tags");
                        this.Icon = global::Stetic.IconLoader.LoadIcon (this, "longomatch", 
global::Gtk.IconSize.Menu);
                        this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
                        this.WindowPosition = ((global::Gtk.WindowPosition)(4));
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 28b20f3..3d32d51 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -10657,7 +10657,7 @@ You can continue with the current capture, cancel it or save your project.
   </widget>
   <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.EventTypeTagsEditor" design-size="1009 532">
     <property name="MemberName" />
-    <property name="Title" translatable="yes">Edit event tags</property>
+    <property name="Title" translatable="yes">Edit event subcategory tags</property>
     <property name="Icon">stock:longomatch Menu</property>
     <property name="TypeHint">Dialog</property>
     <property name="WindowPosition">CenterOnParent</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]