[longomatch] Make sure panel headers title string get translated.



commit 2c94840ed64446498df43704d70f026ef899a4f1
Author: Julien Moutte <julien fluendo com>
Date:   Mon Jan 19 14:08:21 2015 +0100

    Make sure panel headers title string get translated.

 LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs      |    6 +++---
 LongoMatch.GUI/Gui/Panel/OpenProjectPanel.cs     |    3 ++-
 LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs |    2 +-
 LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs |    2 +-
 LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs  |    2 +-
 5 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index ccbe8c4..f624572 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -294,11 +294,11 @@ namespace LongoMatch.Gui.Panel
                void UpdateTitle ()
                {
                        if (notebook1.Page == 0) {
-                               panelheader1.Title = "PROJECT TYPE";
+                               panelheader1.Title = Catalog.GetString ("PROJECT TYPE");
                        } else if (notebook1.Page == 1) {
-                               panelheader1.Title = "PROJECT PROPERTIES";
+                               panelheader1.Title = Catalog.GetString ("PROJECT PROPERTIES");
                        } else if (notebook1.Page == 2) {
-                               panelheader1.Title = "PERIODS SYNCHRONIZATION";
+                               panelheader1.Title = Catalog.GetString ("PERIODS SYNCHRONIZATION");
                        }
                }
 
diff --git a/LongoMatch.GUI/Gui/Panel/OpenProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/OpenProjectPanel.cs
index 54cf209..c18197b 100644
--- a/LongoMatch.GUI/Gui/Panel/OpenProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/OpenProjectPanel.cs
@@ -18,6 +18,7 @@
 using System;
 using System.Collections.Generic;
 using Gtk;
+using Mono.Unix;
 using LongoMatch.Core.Handlers;
 using LongoMatch.Gui;
 using LongoMatch.Core.Store;
@@ -39,7 +40,7 @@ namespace LongoMatch.Gui.Panel
                        projectlistwidget.ShowList = false;
                        panelheader1.ApplyVisible = false;
                        panelheader1.BackClicked += HandleClicked;
-                       panelheader1.Title = "OPEN PROJECT";
+                       panelheader1.Title = Catalog.GetString ("OPEN PROJECT");
                }
 
                public List<ProjectDescription> Projects{
diff --git a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs 
b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
index 034beb1..dd42780 100644
--- a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
@@ -68,7 +68,7 @@ namespace LongoMatch.Gui.Panel
                        datepicker.ValueChanged += HandleDateChanged;
 
                        notebook1.Page = 0;
-                       panelheader1.Title = "PROJECTS MANAGER";
+                       panelheader1.Title = Catalog.GetString ("PROJECTS MANAGER");
                        panelheader1.ApplyVisible = false;
                        panelheader1.BackClicked += HandleBackClicked;
                        
diff --git a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs 
b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
index 828a367..605c14a 100644
--- a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
@@ -48,7 +48,7 @@ namespace LongoMatch.Gui.Panel
 
                        // Assign images
                        panelheader1.ApplyVisible = false;
-                       panelheader1.Title = "ANALYSIS DASHBOARDS MANAGER";
+                       panelheader1.Title = Catalog.GetString ("ANALYSIS DASHBOARDS MANAGER");
                        panelheader1.BackClicked += (sender, o) => {
                                Save (true);
                                if (BackEvent != null)
diff --git a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
index 393e39f..62df994 100644
--- a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
@@ -99,7 +99,7 @@ namespace LongoMatch.Gui.Panel
                                SaveLoadedTeam ();};
 
                        panelheader1.ApplyVisible = false;
-                       panelheader1.Title = "TEAMS MANAGER";
+                       panelheader1.Title = Catalog.GetString ("TEAMS MANAGER");
                        panelheader1.BackClicked += (sender, o) => {
                                PromptSave ();
                                if (BackEvent != null)


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