[gbrainy] Fixes bugzilla #656003



commit 4712a81bf6396e92d801ee3b3a89204288b5be8b
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Aug 22 23:45:46 2011 +0200

    Fixes bugzilla #656003

 po/POTFILES.in                                |   74 ++++++++++----------
 src/Clients/Classical/Makefile.am             |    2 +-
 src/Clients/Classical/MonoAddinsStrings.cs    |   90 +++++++++++++++++++++++++
 src/Clients/Classical/mono-addins-strings.xml |   59 ----------------
 4 files changed, 128 insertions(+), 97 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 22dcf71..80ef8c5 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,17 +1,22 @@
-tools/GameXmlGetString.cs
 data/games.xml
 data/gbrainy.desktop.in
 data/themes/themes.xml
 data/verbal_analogies.xml
-src/Core/Views/CountDownView.cs
-src/Core/Views/FinishView.cs
-src/Core/Views/PlayerHistoryView.cs
-src/Core/Views/ViewsControler.cs
-src/Core/Views/WelcomeView.cs
+src/Clients/Classical/CommandLine.cs
+src/Clients/Classical/Dialogs/AboutDialog.cs
+src/Clients/Classical/Dialogs/CustomGameDialog.cs
+src/Clients/Classical/Dialogs/PdfExportDialog.cs
+src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
+src/Clients/Classical/Dialogs/PreferencesDialog.cs
+src/Clients/Classical/gbrainy.cs
+src/Clients/Classical/MonoAddinsStrings.cs
+src/Clients/Classical/Widgets/BrowseFile.cs
+src/Clients/Classical/Widgets/GameDrawingArea.cs
+src/Clients/Classical/Widgets/Toolbar.cs
 src/Core/Libraries/SVGImage.cs
 src/Core/Main/ColorPalette.cs
-src/Core/Main/Game.cs
 src/Core/Main/GameAnswer.cs
+src/Core/Main/Game.cs
 src/Core/Main/GameManager.cs
 src/Core/Main/GameSession.cs
 src/Core/Main/GameTips.cs
@@ -28,20 +33,21 @@ src/Core/Main/Verbal/AnalogiesPairOfWordsOptions.cs
 src/Core/Main/Verbal/AnalogiesQuestionAnswer.cs
 src/Core/Main/Verbal/Analogy.cs
 src/Core/Main/Xml/GameXml.cs
-src/Clients/Classical/gbrainy.cs
-src/Clients/Classical/CommandLine.cs
-src/Clients/Classical/Dialogs/AboutDialog.cs
-src/Clients/Classical/Dialogs/CustomGameDialog.cs
-src/Clients/Classical/Dialogs/PdfExportDialog.cs
-src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
-src/Clients/Classical/Dialogs/PreferencesDialog.cs
-[type: gettext/glade] src/Clients/Classical/Dialogs/ui/CustomGameDialog.ui
-[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PdfExportDialog.ui
-[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
-[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PreferencesDialog.ui
-src/Clients/Classical/Widgets/BrowseFile.cs
-src/Clients/Classical/Widgets/GameDrawingArea.cs
-src/Clients/Classical/Widgets/Toolbar.cs
+src/Core/Views/CountDownView.cs
+src/Core/Views/FinishView.cs
+src/Core/Views/PlayerHistoryView.cs
+src/Core/Views/ViewsControler.cs
+src/Core/Views/WelcomeView.cs
+src/Games/Calculation/CalculationArithmetical.cs
+src/Games/Calculation/CalculationAverage.cs
+src/Games/Calculation/CalculationCloserFraction.cs
+src/Games/Calculation/CalculationFractions.cs
+src/Games/Calculation/CalculationGreatestDivisor.cs
+src/Games/Calculation/CalculationOperator.cs
+src/Games/Calculation/CalculationPrimes.cs
+src/Games/Calculation/CalculationProportions.cs
+src/Games/Calculation/CalculationRatio.cs
+src/Games/Calculation/CalculationTwoNumbers.cs
 src/Games/Logic/Puzzle3DCube.cs
 src/Games/Logic/PuzzleBalance.cs
 src/Games/Logic/PuzzleBuildTriangle.cs
@@ -60,11 +66,12 @@ src/Games/Logic/PuzzleFigureLetter.cs
 src/Games/Logic/PuzzleFigurePattern.cs
 src/Games/Logic/PuzzleFigures.cs
 src/Games/Logic/PuzzleFourSided.cs
+src/Games/Logic/PuzzleGridCircles.cs
+src/Games/Logic/PuzzleGridDots.cs
+src/Games/Logic/PuzzleGridNumbers.cs
 src/Games/Logic/PuzzleHandshakes.cs
 src/Games/Logic/PuzzleLargerShape.cs
 src/Games/Logic/PuzzleLines.cs
-src/Games/Logic/PuzzleGridCircles.cs
-src/Games/Logic/PuzzleGridNumbers.cs
 src/Games/Logic/PuzzleMissingPiece.cs
 src/Games/Logic/PuzzleMissingSlice.cs
 src/Games/Logic/PuzzleMostInCommon.cs
@@ -73,13 +80,12 @@ src/Games/Logic/PuzzleNextFigure.cs
 src/Games/Logic/PuzzleNumericRelation.cs
 src/Games/Logic/PuzzleNumericSequence.cs
 src/Games/Logic/PuzzleOstracism.cs
-src/Games/Logic/PuzzlePredicateLogic.cs
 src/Games/Logic/PuzzlePencil.cs
 src/Games/Logic/PuzzlePeopleTable.cs
 src/Games/Logic/PuzzlePercentage.cs
+src/Games/Logic/PuzzlePredicateLogic.cs
 src/Games/Logic/PuzzleQuadrilaterals.cs
 src/Games/Logic/PuzzleRelatedNumbers.cs
-src/Games/Logic/PuzzleGridDots.cs
 src/Games/Logic/PuzzleSquaresAndLetters.cs
 src/Games/Logic/PuzzleSquares.cs
 src/Games/Logic/PuzzleSquareSheets.cs
@@ -92,21 +98,15 @@ src/Games/Memory/MemoryColouredFigures.cs
 src/Games/Memory/MemoryColouredText.cs
 src/Games/Memory/MemoryCountDots.cs
 src/Games/Memory/MemoryFacts.cs
-src/Games/Memory/MemoryFigures.cs
 src/Games/Memory/MemoryFiguresAndText.cs
+src/Games/Memory/MemoryFigures.cs
 src/Games/Memory/MemoryFiguresNumbers.cs
 src/Games/Memory/MemoryIndications.cs
 src/Games/Memory/MemoryNumbers.cs
 src/Games/Memory/MemoryWords.cs
-src/Games/Calculation/CalculationArithmetical.cs
-src/Games/Calculation/CalculationAverage.cs
-src/Games/Calculation/CalculationCloserFraction.cs
-src/Games/Calculation/CalculationFractions.cs
-src/Games/Calculation/CalculationGreatestDivisor.cs
-src/Games/Calculation/CalculationOperator.cs
-src/Games/Calculation/CalculationPrimes.cs
-src/Games/Calculation/CalculationProportions.cs
-src/Games/Calculation/CalculationRatio.cs
-src/Games/Calculation/CalculationTwoNumbers.cs
+tools/GameXmlGetString.cs
+[type: gettext/glade] src/Clients/Classical/Dialogs/ui/CustomGameDialog.ui
+[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PdfExportDialog.ui
+[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
+[type: gettext/glade] src/Clients/Classical/Dialogs/ui/PreferencesDialog.ui
 [type: gettext/glade] src/Clients/Classical/gbrainy.ui
-src/Clients/Classical/mono-addins-strings.xml
diff --git a/src/Clients/Classical/Makefile.am b/src/Clients/Classical/Makefile.am
index c2a987c..f48b2d3 100644
--- a/src/Clients/Classical/Makefile.am
+++ b/src/Clients/Classical/Makefile.am
@@ -73,7 +73,7 @@ all: ../../gbrainy.exe $(TARGET_CFG)
 EXTRA_DIST =					\
 	gbrainy.ui 				\
 	$(srcdir)/gbrainy.exe.config.in 	\
-	$(srcdir)/mono-addins-strings.xml 	\
+	$(srcdir)/MonoAddinsStrings.cs	 	\
 	$(srcdir)/gbrainy.ui 			\
 	$(srcdir)/Dialogs/ui/PreferencesDialog.ui \
 	$(srcdir)/Dialogs/ui/PlayerHistoryDialog.ui \
diff --git a/src/Clients/Classical/MonoAddinsStrings.cs b/src/Clients/Classical/MonoAddinsStrings.cs
new file mode 100644
index 0000000..9b7193a
--- /dev/null
+++ b/src/Clients/Classical/MonoAddinsStrings.cs
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2011 Jordi Mas i HernÃndez <jmas softcatala org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+using System;
+using Mono.Unix;
+
+// To localize Mono.Addins.Gui we should include the GUI strings in the application
+// See: http://groups.google.com/group/mono-addins/browse_thread/thread/b6c1d648c3493a65
+//
+// This file is never compiled just used from POTFILE.in to get the strings
+public class MonoAddinsStrings
+{
+	void SingularStrings ()
+	{
+		Catalog.GetString ("Add-in Manager");
+		Catalog.GetString ("Additional extensions are required to perform this operation.");
+		Catalog.GetString ("The following add-ins will be installed:");
+		Catalog.GetString ("<big><b>Add-in Manager</b></big>");
+		Catalog.GetString ("The following add-ins are currently installed:");
+		Catalog.GetString ("_Install Add-ins...");
+		Catalog.GetString ("_Repositories...");
+		Catalog.GetString ("_Uninstall...");
+		Catalog.GetString ("Enable");
+		Catalog.GetString ("Disable");
+		Catalog.GetString ("Add-in");
+		Catalog.GetString ("Version");
+		Catalog.GetString ("Other");
+		Catalog.GetString ("Version:");
+		Catalog.GetString ("Author:");
+		Catalog.GetString ("Copyright:");
+		Catalog.GetString ("Add-in Dependencies:");
+		Catalog.GetString ("<b>Select the add-ins to install and click on Next</b>");
+		Catalog.GetString ("Show all packages");
+		Catalog.GetString ("Show new versions only");
+		Catalog.GetString ("Show updates only");
+		Catalog.GetString ("_Unselect All");
+		Catalog.GetString ("Select _All");
+		Catalog.GetString ("Add-in Installation");
+		Catalog.GetString ("Name");
+		Catalog.GetString ("Url");
+		Catalog.GetString ("Install from:");
+		Catalog.GetString ("Repository");
+		Catalog.GetString ("All registered repositories");
+		Catalog.GetString ("Register an on-line repository");
+		Catalog.GetString ("Select the location of the repository you want to register:");
+		Catalog.GetString ("Register a local repository");
+		Catalog.GetString ("Url:");
+		Catalog.GetString ("Browse...");
+		Catalog.GetString ("Path:");
+
+		/* Mono Addins 0.6 */
+		Catalog.GetString ("Installed");
+		Catalog.GetString ("Updates");
+		Catalog.GetString ("Gallery");
+		Catalog.GetString ("Repository:");
+		Catalog.GetString ("Install from file...");
+		Catalog.GetString ("No selection");
+		Catalog.GetString ("No add-ins found");
+		Catalog.GetString ("Refresh");
+		Catalog.GetString ("Add-in packages");
+		Catalog.GetString ("Install Add-in Package");
+		Catalog.GetString ("All repositories");
+		Catalog.GetString ("Manage Repositories...");
+		Catalog.GetString ("Add-in Repository Management");
+	}
+
+	void PluralStrings ()
+	{
+		int variable = 0;
+		// Translators: {0} is a number indicating the Addins available for update
+		Catalog.GetPluralString ("{0} update available", "{0} updates available", variable)
+	}
+}
+



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