[longomatch] Workaround stetic code generation bug. Indeed translatable tooltips are not marked as such in genera
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Workaround stetic code generation bug. Indeed translatable tooltips are not marked as such in genera
- Date: Wed, 11 Feb 2015 15:58:58 +0000 (UTC)
commit bbf1a18383b9293513aac430878a3c58d85e6bc1
Author: Julien Moutte <julien fluendo com>
Date: Tue Feb 10 22:51:32 2015 +0100
Workaround stetic code generation bug.
Indeed translatable tooltips are not marked as such in generated code.
LongoMatch.GUI/Gui/Dialog/DrawingTool.cs | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 67cc3b7..42bbbf7 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -83,7 +83,26 @@ namespace LongoMatch.Gui.Dialog
playerbutton.Toggled += HandleToolClicked;
anglebutton.Toggled += HandleToolClicked;
numberbutton.Toggled += HandleToolClicked;
-
+
+ // Force tooltips to be translatable as there seems to be a bug in stetic
+ // code generation for translatable tooltips.
+ selectbutton.TooltipMarkup = Catalog.GetString ("Selection tool");
+ eraserbutton.TooltipMarkup = Catalog.GetString ("Rubber tool");
+ penbutton.TooltipMarkup = Catalog.GetString ("Pencil tool");
+ textbutton.TooltipMarkup = Catalog.GetString ("Text tool");
+ linebutton.TooltipMarkup = Catalog.GetString ("Line tool");
+ crossbutton.TooltipMarkup = Catalog.GetString ("Cross tool");
+ rectanglebutton.TooltipMarkup = Catalog.GetString ("Rectangle tool");
+ ellipsebutton.TooltipMarkup = Catalog.GetString ("Ellipse tool");
+ rectanglefilledbutton.TooltipMarkup = Catalog.GetString ("Filled rectangle tool");
+ ellipsefilledbutton.TooltipMarkup = Catalog.GetString ("Filled ellipse tool");
+ playerbutton.TooltipMarkup = Catalog.GetString ("Player tool");
+ numberbutton.TooltipMarkup = Catalog.GetString ("Index tool");
+ anglebutton.TooltipMarkup = Catalog.GetString ("Angle tool");
+ stylecombobox.TooltipMarkup = Catalog.GetString ("Change the line style");
+ typecombobox.TooltipMarkup = Catalog.GetString ("Change the line style");
+ clearbutton.TooltipMarkup = Catalog.GetString ("Clear all drawings");
+
FillLineStyle ();
FillLineType ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]