r10249 - in packages/trunk/zaz/debian: . i18n

Miriam Ruiz miriam at alioth.debian.org
Sun Aug 30 14:10:25 UTC 2009


Author: miriam
Date: 2009-08-30 14:10:25 +0000 (Sun, 30 Aug 2009)
New Revision: 10249

Added:
   packages/trunk/zaz/debian/i18n/
   packages/trunk/zaz/debian/i18n/Makefile
   packages/trunk/zaz/debian/i18n/es.po
   packages/trunk/zaz/debian/i18n/i18n_files
Modified:
   packages/trunk/zaz/debian/control
   packages/trunk/zaz/debian/rules
Log:
Add gettext stuff



Modified: packages/trunk/zaz/debian/control
===================================================================
--- packages/trunk/zaz/debian/control	2009-08-30 13:03:50 UTC (rev 10248)
+++ packages/trunk/zaz/debian/control	2009-08-30 14:10:25 UTC (rev 10249)
@@ -4,8 +4,8 @@
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Miriam Ruiz <little_miry at yahoo.es>
 Build-Depends: debhelper (>= 7), quilt, dh-buildinfo, autotools-dev, pkg-config,
- ttf-freefont, libgl1-mesa-dev, libglu1-mesa-dev, libsdl1.2-dev, libxext-dev,
- libsdl-image1.2-dev, libftgl-dev, libvorbis-dev, libtheora-dev
+ gettext, ttf-freefont, libgl1-mesa-dev, libglu1-mesa-dev, libsdl1.2-dev,
+ libxext-dev, libsdl-image1.2-dev, libftgl-dev, libvorbis-dev, libtheora-dev
 Standards-Version: 3.8.3
 Homepage: http://sourceforge.net/projects/zaz/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/zaz/

Added: packages/trunk/zaz/debian/i18n/Makefile
===================================================================
--- packages/trunk/zaz/debian/i18n/Makefile	                        (rev 0)
+++ packages/trunk/zaz/debian/i18n/Makefile	2009-08-30 14:10:25 UTC (rev 10249)
@@ -0,0 +1,50 @@
+# 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/code.pot -f debian/i18n/i18n_files --from-code=iso-8859-1
+	cd ../..; for i in data/level*.lvl; do \
+		l=$$(head -n 1 "$$i") ; \
+		echo "#: data/$${i}:1" ; \
+		echo "msgid \"$$l\"" ; \
+		echo "msgstr \"\"" ; \
+		echo "" ; \
+	done > debian/i18n/levels.pot
+	msgcat code.pot levels.pot > zaz.pot
+	rm levels.pot code.pot
+
+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 *.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/trunk/zaz/debian/i18n/es.po
===================================================================
--- packages/trunk/zaz/debian/i18n/es.po	                        (rev 0)
+++ packages/trunk/zaz/debian/i18n/es.po	2009-08-30 14:10:25 UTC (rev 10249)
@@ -0,0 +1,227 @@
+# translation of es.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: es\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-08-30 16:03+0200\n"
+"PO-Revision-Date: 2009-08-30 16:07+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:32
+msgid "Options"
+msgstr "Opciones"
+
+#: src/mainmenu.cpp:33
+msgid "Credits"
+msgstr "Créditos"
+
+#: src/mainmenu.cpp:34
+msgid "Exit"
+msgstr "Salir"
+
+#: src/mainmenu.cpp:48
+msgid "Resolution"
+msgstr "Resolución"
+
+#: src/mainmenu.cpp:49
+msgid "Fullscreen"
+msgstr "Pantalla completa"
+
+#: src/mainmenu.cpp:50
+msgid "Show FPS"
+msgstr "Mostrar FPS"
+
+#: src/mainmenu.cpp:51
+msgid "Mouse sensivity"
+msgstr "Sensib. ratón"
+
+#: src/mainmenu.cpp:52
+msgid "SFX volume"
+msgstr "Vol. de sonidos"
+
+#: src/mainmenu.cpp:53
+msgid "Music volume"
+msgstr "Vol. de música"
+
+#: src/mainmenu.cpp:54 src/gameloop.cpp:69
+msgid "Back to main menu"
+msgstr "Volver al menú principal"
+
+#: src/mainmenu.cpp:58 src/mainmenu.cpp:62
+msgid "Back"
+msgstr "Volver"
+
+#: src/mainmenu.cpp:395
+msgid "Hall of Fame"
+msgstr "Mejores"
+
+#: src/mainmenu.cpp:421
+msgid "code, gfx, snd & design:"
+msgstr "código, gráficos, sonido y diseño"
+
+#: src/mainmenu.cpp:422
+msgid "Remigiusz Dybka"
+msgstr ""
+
+#: src/mainmenu.cpp:423
+msgid "[remigiusz.dybka at gmail.com]"
+msgstr ""
+
+#: src/mainmenu.cpp:425
+msgid "music:"
+msgstr "música:"
+
+#: src/mainmenu.cpp:426
+msgid "Nine Inch Nails"
+msgstr ""
+
+#: src/mainmenu.cpp:427
+msgid ""
+"[http://nin.com] Released under Creative Commons Attribution Non-Commercial "
+"Share Alike License"
+msgstr ""
+"[http://nin.com] Publicado bajo la licencia Creative Commons Reconocimiento-"
+"No comercial-Compartir bajo la misma licencia"
+
+#: src/mainmenu.cpp:429
+msgid "quality assurance:"
+msgstr ""
+
+#: src/mainmenu.cpp:430
+msgid "Irena Klon & Kamil Krzyspiak"
+msgstr ""
+
+#: src/mainmenu.cpp:534
+msgid "locked"
+msgstr "bloqueado"
+
+#: src/gameloop.cpp:57 src/gameloop.cpp:63 src/gameloop.cpp:77
+msgid "End game"
+msgstr "Terminar el juego"
+
+#: src/gameloop.cpp:58
+msgid "Continue"
+msgstr "Continuar"
+
+#: src/gameloop.cpp:62
+msgid "Next level"
+msgstr "Siguiente nivel"
+
+#: src/gameloop.cpp:64 src/gameloop.cpp:71 src/gameloop.cpp:78
+msgid "View replay"
+msgstr "Ver repetición"
+
+#: src/gameloop.cpp:65 src/gameloop.cpp:72 src/gameloop.cpp:79
+msgid "Export video"
+msgstr "Exportar vídeo"
+
+#: src/gameloop.cpp:70
+msgid "Restart game"
+msgstr "Volver a empezar"
+
+#: src/gameloop.cpp:76
+msgid "Retry level"
+msgstr "Reintentar nivel"
+
+#: src/gameloop.cpp:481
+#, c-format
+msgid "Lives left: %d"
+msgstr "Vidas restantes: %d"
+
+#: src/gameloop.cpp:484 src/gameloop.cpp:508
+#, c-format
+msgid "Current score: %05d"
+msgstr "Puntuación actual: %05d"
+
+#: src/gameloop.cpp:492
+msgid "Game paused"
+msgstr "Juego en pausa"
+
+#: src/gameloop.cpp:505
+msgid "Level cleared"
+msgstr "Nivel superado"
+
+#: src/gameloop.cpp:519
+msgid "Game Over"
+msgstr "Fin del juego"
+
+#: src/gameloop.cpp:525
+#, c-format
+msgid "Score: %05d"
+msgstr "Puntuación: %05d"
+
+#: src/gameloop.cpp:533
+msgid "Congratulations !!! You just pwned"
+msgstr "¡¡Enhorabuena!! ¡¡Has triunfado!!"
+
+#: src/gameloop.cpp:558
+msgid "You have a new hi score"
+msgstr "Tienes un nuevo record"
+
+#: src/gameloop.cpp:559
+msgid "please enter your name"
+msgstr "por favor, introduce tu nombre"
+
+#: src/game.cpp:556
+msgid "Extra Life !"
+msgstr "¡ Vida extra !"
+
+#: src/game.cpp:625
+#, c-format
+msgid "Time Bonus ! (%d sec * %d = %d)"
+msgstr "¡ Tiempo extra ! (%d seg * %d = %d)"
+
+#: data/data/level10.lvl:1
+msgid "The Three Dragonz"
+msgstr "Los tres dragones"
+
+#: data/data/level1.lvl:1
+msgid "Zatlantiz"
+msgstr "Zatlántida"
+
+#: data/data/level2.lvl:1
+msgid "Zuza"
+msgstr "Zuza"
+
+#: data/data/level3.lvl:1
+msgid "Bendlantiz"
+msgstr "Torzlántida"
+
+#: data/data/level4.lvl:1
+msgid "You have been warned"
+msgstr "¡Cuidado! ¡ojo!"
+
+#: data/data/level5.lvl:1
+msgid "Double D"
+msgstr "Doble D"
+
+#: data/data/level6.lvl:1
+msgid "SuperZaz"
+msgstr "Super Zaz"
+
+#: data/data/level7.lvl:1
+msgid "Bacteria"
+msgstr "Bacteria"
+
+#: data/data/level8.lvl:1
+msgid "Midnight Queen"
+msgstr "Reina de la medianoche"
+
+#: data/data/level9.lvl:1
+msgid "Joker"
+msgstr "Bufón"
+

Added: packages/trunk/zaz/debian/i18n/i18n_files
===================================================================
--- packages/trunk/zaz/debian/i18n/i18n_files	                        (rev 0)
+++ packages/trunk/zaz/debian/i18n/i18n_files	2009-08-30 14:10:25 UTC (rev 10249)
@@ -0,0 +1,3 @@
+src/mainmenu.cpp
+src/gameloop.cpp
+src/game.cpp

Modified: packages/trunk/zaz/debian/rules
===================================================================
--- packages/trunk/zaz/debian/rules	2009-08-30 13:03:50 UTC (rev 10248)
+++ packages/trunk/zaz/debian/rules	2009-08-30 14:10:25 UTC (rev 10249)
@@ -47,12 +47,14 @@
 	dh_testdir
 	export PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" && \
 		$(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
 	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
@@ -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