r10204 - in packages/branches/zaz/miriam-i18n/debian: . i18n patches
Miriam Ruiz
miriam at alioth.debian.org
Mon Aug 24 21:57:35 UTC 2009
Author: miriam
Date: 2009-08-24 21:57:35 +0000 (Mon, 24 Aug 2009)
New Revision: 10204
Added:
packages/branches/zaz/miriam-i18n/debian/i18n/
packages/branches/zaz/miriam-i18n/debian/i18n/Makefile
packages/branches/zaz/miriam-i18n/debian/i18n/es.po
packages/branches/zaz/miriam-i18n/debian/i18n/i18n_files
Modified:
packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch
packages/branches/zaz/miriam-i18n/debian/rules
Log:
gettext support added
Added: packages/branches/zaz/miriam-i18n/debian/i18n/Makefile
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/i18n/Makefile (rev 0)
+++ packages/branches/zaz/miriam-i18n/debian/i18n/Makefile 2009-08-24 21:57:35 UTC (rev 10204)
@@ -0,0 +1,41 @@
+# Copyright 2009 Miriam Ruiz <little_miry at yahoo.es>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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
+# Library General Public License for more details.
+
+LOCALEDIR=./
+
+all: zaz.pot build-stamp
+
+zaz.pot:
+ cd ../..; xgettext -k_ -o debian/i18n/zaz.pot -f debian/i18n/i18n_files --from-code=iso-8859-1
+
+build: build-stamp
+build-stamp:
+ for f in *.po; do i=`basename $$f .po`; echo Building Language \"$$i\"; msgfmt $$f -o $$i.mo; done
+ touch $@
+
+clean:
+ #for f in *.po; do i=`echo $$f | awk 'BEGIN {FS="."} {print $$1}'`; rm -rf "$$i"; done
+ rm -f *.mo
+ rm -f zaz.pot
+ rm -f build-stamp
+
+install: build-stamp
+ for f in *.mo; do \
+ i=`basename $$f .mo` ; \
+ echo Installing Language \"$$i\" in \"$(LOCALEDIR)$$i\" ; \
+ install -d $(LOCALEDIR)$$i ; \
+ install -p -d -m 755 $(LOCALEDIR)$$i/LC_MESSAGES ; \
+ install -m 644 $$f $(LOCALEDIR)$$i/LC_MESSAGES/zaz.mo ; \
+ done
+
+uninstall:
+
Added: packages/branches/zaz/miriam-i18n/debian/i18n/es.po
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/i18n/es.po (rev 0)
+++ packages/branches/zaz/miriam-i18n/debian/i18n/es.po 2009-08-24 21:57:35 UTC (rev 10204)
@@ -0,0 +1,67 @@
+# translation of zaz.po to español
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Miriam Ruiz <miriam at debian.org>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: zaz\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-08-24 23:33+0200\n"
+"PO-Revision-Date: 2009-08-24 23:35+0200\n"
+"Last-Translator: Miriam Ruiz <miriam at debian.org>\n"
+"Language-Team: español <es at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: src/mainmenu.cpp:31
+msgid "Start game"
+msgstr "Comenzar el juego"
+
+#: src/mainmenu.cpp:33
+msgid "Options"
+msgstr "Opciones"
+
+#: src/mainmenu.cpp:34
+msgid "Credits"
+msgstr "Créditos"
+
+#: src/mainmenu.cpp:35
+msgid "Exit"
+msgstr "Salir"
+
+#: src/mainmenu.cpp:49
+msgid "Resolution"
+msgstr "Resolución"
+
+#: src/mainmenu.cpp:50
+msgid "Fullscreen"
+msgstr "Pantalla completa"
+
+#: src/mainmenu.cpp:51
+msgid "Show FPS"
+msgstr "Mostrar FPS"
+
+#: src/mainmenu.cpp:52
+msgid "Mouse sensivity"
+msgstr "Sensibilidad del ratón"
+
+#: src/mainmenu.cpp:53
+msgid "SFX volume"
+msgstr "Volumen de los sonidos"
+
+#: src/mainmenu.cpp:54
+msgid "Music volume"
+msgstr "Volumen de la música"
+
+#: src/mainmenu.cpp:55
+msgid "Back to main menu"
+msgstr "Volver al menú principal"
+
+#: src/mainmenu.cpp:242
+msgid "Hall of Fame"
+msgstr "Mejores"
+
Added: packages/branches/zaz/miriam-i18n/debian/i18n/i18n_files
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/i18n/i18n_files (rev 0)
+++ packages/branches/zaz/miriam-i18n/debian/i18n/i18n_files 2009-08-24 21:57:35 UTC (rev 10204)
@@ -0,0 +1 @@
+src/mainmenu.cpp
Modified: packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch 2009-08-24 21:26:24 UTC (rev 10203)
+++ packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch 2009-08-24 21:57:35 UTC (rev 10204)
@@ -39,8 +39,8 @@
+ setlocale (LC_MESSAGES, "");
+ setlocale (LC_CTYPE, "");
+ setlocale (LC_COLLATE, "");
-+ textdomain ("fluid");
-+ bindtextdomain ("fluid", NULL);
++ textdomain ("zaz");
++ bindtextdomain ("zaz", NULL);
+ }
+}
+
@@ -87,3 +87,51 @@
#include "error.h"
#include "settings.h"
#include "hiscores.h"
+--- zaz-0.2.6.orig/src/mainmenu.cpp
++++ zaz-0.2.6/src/mainmenu.cpp
+@@ -28,11 +28,11 @@
+ renderHiscores(true), showCredits(false), oldFullscreen(settings->getb("fullscreen", false)),
+ oldRes(settings->get("resolution", "")), logoGpl(LoadTexture ("gpl3.png"))
+ {
+- startMenu.Add(new GenericMenuItem("Start game", startMenuStartHandler, this));
++ startMenu.Add(new GenericMenuItem(_("Start game"), startMenuStartHandler, this));
+ // startMenu.Add("Practice");
+- startMenu.Add(new GenericMenuItem("Options", startMenuOptionsHandler, this));
+- startMenu.Add(new GenericMenuItem("Credits", startMenuCreditsHandler, this));
+- startMenu.Add(new GenericMenuItem("Exit", startMenuExitHandler, this));
++ startMenu.Add(new GenericMenuItem(_("Options"), startMenuOptionsHandler, this));
++ startMenu.Add(new GenericMenuItem(_("Credits"), startMenuCreditsHandler, this));
++ startMenu.Add(new GenericMenuItem(_("Exit"), startMenuExitHandler, this));
+
+ startMenu.SetDimensions(60, 40, 40);
+
+@@ -46,13 +46,13 @@
+ resolutions.push_back(sm.str());
+ }
+
+- optionsMenu.Add(new OptionMenuItem("Resolution", resolutions, settings, "resolution"));
+- optionsMenu.Add(new BooleanMenuItem("Fullscreen", settings, "fullscreen"));
+- optionsMenu.Add(new BooleanMenuItem("Show FPS", settings, "showFps"));
+- optionsMenu.Add(new ValueMenuItem("Mouse sensivity", 1, 10, settings, "mouseSensivity"));
+- optionsMenu.Add(new ValueMenuItem("SFX volume", 0, 100, settings, "sfxVolume"));
+- optionsMenu.Add(new ValueMenuItem("Music volume", 0, 100, settings, "musicVolume"));
+- optionsMenu.Add(new GenericMenuItem("Back to main menu", optionsMenuBackHandler, this));
++ optionsMenu.Add(new OptionMenuItem(_("Resolution"), resolutions, settings, "resolution"));
++ optionsMenu.Add(new BooleanMenuItem(_("Fullscreen"), settings, "fullscreen"));
++ optionsMenu.Add(new BooleanMenuItem(_("Show FPS"), settings, "showFps"));
++ optionsMenu.Add(new ValueMenuItem(_("Mouse sensivity"), 1, 10, settings, "mouseSensivity"));
++ optionsMenu.Add(new ValueMenuItem(_("SFX volume"), 0, 100, settings, "sfxVolume"));
++ optionsMenu.Add(new ValueMenuItem(_("Music volume"), 0, 100, settings, "musicVolume"));
++ optionsMenu.Add(new GenericMenuItem(_("Back to main menu"), optionsMenuBackHandler, this));
+
+ optionsMenu.SetDimensions(55, 45, 60);
+
+@@ -239,7 +239,7 @@
+ glScalef(0.15f, 0.15f, 0.15f);
+ glColor4d(1.0, 1.0, 1.0, 1.0);
+
+- font3->Render("Hall of Fame", -1);
++ font3->Render(_("Hall of Fame"), -1);
+ glPopMatrix();
+
+ float y = 35;
Modified: packages/branches/zaz/miriam-i18n/debian/rules
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/rules 2009-08-24 21:26:24 UTC (rev 10203)
+++ packages/branches/zaz/miriam-i18n/debian/rules 2009-08-24 21:57:35 UTC (rev 10204)
@@ -38,12 +38,14 @@
build-stamp: config
dh_testdir
$(MAKE)
+ $(MAKE) -C debian/i18n
touch $@
clean: config
dh_testdir
dh_testroot
rm -f build-stamp config-stamp
+ $(MAKE) -C debian/i18n clean
[ ! -f Makefile ] || $(MAKE) distclean
rm -f config.sub config.guess config.log config.cache
@@ -73,6 +75,7 @@
mv debian/zaz/usr/share/games/applications/ debian/zaz/usr/share/
mv debian/zaz/usr/share/games/pixmaps/ debian/zaz/usr/share/
dh_movefiles --sourcedir=debian/zaz
+ $(MAKE) -C debian/i18n LOCALEDIR="$(CURDIR)/debian/zaz/usr/share/locale/" install
# Build architecture-independent files here.
binary-indep: install
More information about the Pkg-games-commits
mailing list