r12898 - in packages/trunk/pianobooster/debian: . patches
Miriam Ruiz
miriam at alioth.debian.org
Wed Nov 30 07:04:17 UTC 2011
Author: miriam
Date: 2011-11-30 07:04:16 +0000 (Wed, 30 Nov 2011)
New Revision: 12898
Added:
packages/trunk/pianobooster/debian/patches/i18n.patch
Modified:
packages/trunk/pianobooster/debian/changelog
packages/trunk/pianobooster/debian/patches/series
packages/trunk/pianobooster/debian/pianobooster.desktop
packages/trunk/pianobooster/debian/pianobooster.install
packages/trunk/pianobooster/debian/rules
Log:
Added support for translations: i18n.patch
Modified: packages/trunk/pianobooster/debian/changelog
===================================================================
--- packages/trunk/pianobooster/debian/changelog 2011-11-30 00:49:03 UTC (rev 12897)
+++ packages/trunk/pianobooster/debian/changelog 2011-11-30 07:04:16 UTC (rev 12898)
@@ -1,3 +1,12 @@
+pianobooster (0.6.4-2) UNRELEASED; urgency=low
+
+ [ Miriam Ruiz ]
+ * Added support for translations: i18n.patch
+ * Added Spanish translation
+ * Fixed desktop file
+
+ -- Miriam Ruiz <little_miry at yahoo.es> Wed, 30 Nov 2011 08:02:42 +0100
+
pianobooster (0.6.4-1) unstable; urgency=low
* Initial release. Closes: #650398
Added: packages/trunk/pianobooster/debian/patches/i18n.patch
===================================================================
--- packages/trunk/pianobooster/debian/patches/i18n.patch (rev 0)
+++ packages/trunk/pianobooster/debian/patches/i18n.patch 2011-11-30 07:04:16 UTC (rev 12898)
@@ -0,0 +1,631 @@
+--- pianobooster-src-0.6.4.orig/src/QtMain.cpp
++++ pianobooster-src-0.6.4/src/QtMain.cpp
+@@ -20,6 +20,7 @@
+ ****************************************************************************/
+
+ #include <QApplication>
++#include <QTranslator>
+
+ #include <QtOpenGL>
+ #include "QtWindow.h"
+@@ -28,9 +29,23 @@
+ {
+ QApplication app(argc, argv);
+
++ // See: http://doc.qt.nokia.com/latest/i18n-source-translation.html
++
++ QTranslator qtTranslator;
++ qtTranslator.load("qt_" + QLocale::system().name(),
++ // Look for the translations file in the system's translation path
++ QLibraryInfo::location(QLibraryInfo::TranslationsPath));
++ app.installTranslator(&qtTranslator);
++
++ QTranslator appTranslator;
++ appTranslator.load("pianobooster_" + QLocale::system().name(),
++ // Look for the translations file in the specified path
++ "/usr/share/games/pianobooster/translations/");
++ app.installTranslator(&appTranslator);
++
+ if (!QGLFormat::hasOpenGL()) {
+- QMessageBox::information(0, "OpenGL support",
+- "This system does not support OpenGL which is needed to run Piano Booster.");
++ QMessageBox::information(0, QMessageBox::tr("OpenGL support"),
++ QMessageBox::tr("This system does not support OpenGL which is needed to run Piano Booster."));
+ return -1;
+ }
+
+--- pianobooster-src-0.6.4.orig/src/QtWindow.cpp
++++ pianobooster-src-0.6.4/src/QtWindow.cpp
+@@ -300,7 +300,7 @@
+
+ m_setupKeyboardAct = new QAction(tr("Piano &Keyboard Setting ..."), this);
+ m_setupKeyboardAct->setShortcut(tr("Ctrl+K"));
+- m_setupKeyboardAct->setStatusTip(tr("Change the piano keybaord settings"));
++ m_setupKeyboardAct->setStatusTip(tr("Change the piano keyboard settings"));
+ connect(m_setupKeyboardAct, SIGNAL(triggered()), this, SLOT(showKeyboardSetup()));
+
+ m_toggleSidePanelAct = new QAction(tr("&Show/Hide the Side Panel"), this);
+@@ -429,7 +429,7 @@
+ msgBox.setWindowTitle (tr("About Piano Booster"));
+ msgBox.setText(
+ tr(
+- "<b>PainoBooster - Version " PB_VERSION "</b> <br><br>"
++ "<b>PianoBooster - Version " PB_VERSION "</b> <br><br>"
+ "<b>Boost</b> your <b>Piano</b> playing skills!<br><br>"
+ "<a href=\"http://pianobooster.sourceforge.net/\" ><b>http://pianobooster.sourceforge.net</b></a><br><br>"
+ "Copyright(c) L. J. Barman, 2008-2009; All rights reserved.<br><br>"
+--- pianobooster-src-0.6.4.orig/src/pianobooster.pro
++++ pianobooster-src-0.6.4/src/pianobooster.pro
+@@ -68,6 +68,8 @@
+
+ RC_FILE = pianobooster.rc
+
++TRANSLATIONS = pianobooster_es.ts
++
+ INCLUDEPATH += rtmidi
+
+ OBJECTS_DIR = tmp
+--- /dev/null
++++ pianobooster-src-0.6.4/src/pianobooster_es.ts
+@@ -0,0 +1,561 @@
++<?xml version="1.0" encoding="utf-8"?>
++<!DOCTYPE TS>
++<TS version="2.0">
++<context>
++ <name>CSettings</name>
++ <message>
++ <source>NO MIDI OUTPUT DEVICE: Use menu Setup/Midi Setup ...</source>
++ <translation>SIN DISPOSITIVO DE SALIDA MIDI: Use Setup/Midi Setup ...</translation>
++ </message>
++ <message>
++ <source>NO MIDI FILE LOADED: Use menu File/Open ...</source>
++ <translation>NO SE HA CARGADO UN ARCHIVO MIDI: Use menu File/Open ...</translation>
++ </message>
++</context>
++<context>
++ <name>GuiKeyboardSetupDialog</name>
++ <message>
++ <source>Dialog</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Setup Your Piano Keyboard</source>
++ <translation>Configure su teclado musical</translation>
++ </message>
++ <message>
++ <source>Right Notes</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>sound:</source>
++ <translation>sonido:</translation>
++ </message>
++ <message>
++ <source>volume:</source>
++ <translation>volumen:</translation>
++ </message>
++ <message>
++ <source>%</source>
++ <translation>%</translation>
++ </message>
++ <message>
++ <source>Test</source>
++ <translation>Prueba</translation>
++ </message>
++ <message>
++ <source>Wrong Notes</source>
++ <translation>Notas erróneas</translation>
++ </message>
++ <message>
++ <source>Keyboard Note Range</source>
++ <translation>Rango de notas del teclado</translation>
++ </message>
++ <message>
++ <source>Lowest Note:</source>
++ <translation>Nota inferior:</translation>
++ </message>
++ <message>
++ <source>The note number between 0 and 127</source>
++ <translation>Número de la nota entre 0 y 127</translation>
++ </message>
++ <message>
++ <source>000; </source>
++ <translation>000; </translation>
++ </message>
++ <message>
++ <source>Highest Note:</source>
++ <translation>Nota superior:</translation>
++ </message>
++ <message>
++ <source>Reset</source>
++ <translation>Reiniciar</translation>
++ </message>
++ <message>
++ <source>Piano Keyboard Settings</source>
++ <translation>Configuración del teclado musical</translation>
++ </message>
++</context>
++<context>
++ <name>GuiLoopingPopup</name>
++ <message>
++ <source>Form</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Repeat Bars:</source>
++ <translation>Barras de repetición:</translation>
++ </message>
++ <message>
++ <source>End bar</source>
++ <translation>Barra final</translation>
++ </message>
++ <message>
++ <source>Continuous Looping</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Repeat End Bar: </source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Repeat Bar is disabled</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>GuiMidiSettingsDialog</name>
++ <message>
++ <source>Dialog</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>MIDI input && output</source>
++ <translation>Entrada y salida MIDI</translation>
++ </message>
++ <message>
++ <source>Select the MIDI devices</source>
++ <translation>Seleccione los dispositivos MIDI</translation>
++ </message>
++ <message>
++ <source>Midi Input Device:</source>
++ <translation>Dispositivo de entrada MIDI:</translation>
++ </message>
++ <message>
++ <source>Midi Output Device:</source>
++ <translation>Dispositivo de salida MIDI:</translation>
++ </message>
++ <message>
++ <source>FluidSynth</source>
++ <translation>FluidSynth</translation>
++ </message>
++ <message>
++ <source>Sound Fonts</source>
++ <translation>Fuentes de sonido</translation>
++ </message>
++ <message>
++ <source>Add</source>
++ <translation>Añadir</translation>
++ </message>
++ <message>
++ <source>Remove</source>
++ <translation>Eliminar</translation>
++ </message>
++ <message>
++ <source>Settings</source>
++ <translation>Configuración</translation>
++ </message>
++ <message>
++ <source>Audio Device:</source>
++ <translation>Dispositivo de audio:</translation>
++ </message>
++ <message>
++ <source>Master Gain:</source>
++ <translation>Ganancia principal:</translation>
++ </message>
++ <message>
++ <source>Audio Driver:</source>
++ <translation>Driver de audio:</translation>
++ </message>
++ <message>
++ <source>Sample Rate:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Bufer Size</source>
++ <translation>Tamaño del búffer</translation>
++ </message>
++ <message>
++ <source>Buffer counts</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Reverb</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Chorus</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Latency Fix</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Latency</source>
++ <translation>Latencia</translation>
++ </message>
++ <message>
++ <source>0 (msec)</source>
++ <translation>0 (msec)</translation>
++ </message>
++</context>
++<context>
++ <name>GuiMidiSetupDialog</name>
++ <message>
++ <source>None (PC Keyboard)</source>
++ <translation>Ninguno (teclado del PC)</translation>
++ </message>
++ <message>
++ <source>None</source>
++ <translation>Ninguno</translation>
++ </message>
++ <message>
++ <source>%1 mSec</source>
++ <translation>%1 mSec</translation>
++ </message>
++ <message>
++ <source>Enter a value for the latency fix in milliseconds</source>
++ <translation>Introduzca un valor para fijar la latencia en milisegundos</translation>
++ </message>
++ <message>
++ <source>The latency fix works by running the music ahead of what you<br>are playing to counteract the delay within the sound generator.<br><br>You will need a piano <b>with speakers</b> that are <b>turned up</b>.<br><br>Enter the time in milliseconds for the delay (1000 mSec = 1 sec)<br>(For the Microsoft GS Wavetable SW Synth try a value of 150)<br>If you are not sure enter a value of zero.</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Open SoundFont2 File for fluid synth</source>
++ <translation>Abrir archivo SoundFont2 para el sintetizador fluid</translation>
++ </message>
++ <message>
++ <source>SoundFont2 Files (*.sf2)</source>
++ <translation>Archivos SoundFont2 (*.sf2)</translation>
++ </message>
++</context>
++<context>
++ <name>GuiPreferencesDialog</name>
++ <message>
++ <source>Dialog</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Score Settings</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Timing Markers</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Follow stop point:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Show Note Names</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Courtesy Accidentals</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Video Settings</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Video optimisation</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>GuiSidePanel</name>
++ <message>
++ <source>Form</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Book:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Song:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Skill</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Listen</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Follow you</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Play Along</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Hands</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Right</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Both</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Left</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Adjust the volume of your piano</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Parts</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Adjust the volume of the selected part</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Mute the currently selected part</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Mute your part when playing</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>GuiSongDetailsDialog</name>
++ <message>
++ <source>Dialog</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source> Song Details</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>MIDI Channels for left and right hand piano parts:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Right Hand MIDI Channel:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Left Hand MIDI Channel:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>No channel assigned</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>GuiTopBar</name>
++ <message>
++ <source>Form</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Start playing music from the start</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Start and stop playing music</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Speed:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Key:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Transpose:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Start Bar:</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Save this Bar Number</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>QMessageBox</name>
++ <message>
++ <source>OpenGL support</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>This system does not support OpenGL which is needed to run Piano Booster.</source>
++ <translation type="unfinished"></translation>
++ </message>
++</context>
++<context>
++ <name>QtWindow</name>
++ <message>
++ <source>Piano Booster</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&Open...</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Ctrl+O</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Open an existing file</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>E&xit</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Ctrl+Q</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Exit the application</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&About</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Show the application's About box</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&PC Shortcut Keys</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>The PC Keyboard shortcut keys</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&Midi Setup ...</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Ctrl+S</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Setup the Midi input an output</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Piano &Keyboard Setting ...</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Ctrl+K</source>
++ <translation>Ctrl+K</translation>
++ </message>
++ <message>
++ <source>Change the piano keyboard settings</source>
++ <translation>Cambiar la configuración del teclado musical</translation>
++ </message>
++ <message>
++ <source>&Show/Hide the Side Panel</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>F11</source>
++ <translation>F11</translation>
++ </message>
++ <message>
++ <source>&Preferences ...</source>
++ <translation>&Preferencias ...</translation>
++ </message>
++ <message>
++ <source>Ctrl+P</source>
++ <translation>Ctrl+P</translation>
++ </message>
++ <message>
++ <source>&Song Details ...</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Shift+F1</source>
++ <translation>Shift+F1</translation>
++ </message>
++ <message>
++ <source>Alt+F1</source>
++ <translation>Alt+F1</translation>
++ </message>
++ <message>
++ <source>&File</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&View</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&Song</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>Set&up</source>
++ <translation>Config&uración</translation>
++ </message>
++ <message>
++ <source>&Help</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>&Website</source>
++ <translation>Página &Web</translation>
++ </message>
++ <message>
++ <source>Piano Booster Help</source>
++ <translation>Ayuda de Piano Booster</translation>
++ </message>
++ <message>
++ <source><h3>Getting Started</h3><p>You need a <b>MIDI Piano Keyboard </b> and a <b>MIDI interface</b> for the PC. If you don't have a MIDI keyboard you can still try out PianoBooster using the PC keyboard, 'X' is middle C.</p><p>To hear the music you will need a <b>General Midi sound synthesizer</b>. The "Microsoft GS Wavetable software synthesizer" that comes with Windows can be used but it introduces an unacceptable delay (latency).</p><p>PianoBooster does not come with any <b>MIDI Files</b> and so you will need to get them from the net. See the <a href="http://pianobooster.sourceforge.net/faq.html" ><b>PianoBooster FAQ</b></a> for where to get MIDI files. PianoBooster works best with MIDI files that have separate left and right piano parts using MIDI channels 3 and 4.<h3>Setting Up</h3><p>First use the <i>Setup/Midi Setup</i> menu and in the dialog box select the MIDI input and MIDI output interfaces that match your hardware. Next use <i>File/Open</i> to open the MIDI file ".mid" or a karaoke ".kar" file. Now select whether you want to just <i>listen</i> to the music or <i>play along</i> on the piano keyboard by setting the <i>skill</i> level on the side panel. Finally when you are ready click the <i>play icon</i> (or press the <i>space bar</i>) to roll the music.<h3>Hints on Playing the Piano</h3><p>For hints on how to play the piano see: <a href="http://pianobooster.sourceforge.net/pianohints.html" ><b>Piano Hints</b></a></p><h3>More Information</h3><p>For more help please visit the PianoBooster <a href="http://pianobooster.sourceforge.net/" ><b>website</b></a>, the PianoBooster <a href="http://pianobooster.sourceforge.net/faq.html" ><b>FAQ</b></a> and the <a href="http://n2.nabble.com/Piano-Booster-Users-f1591936.html" ><b>user forum</b></a>. </source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source>About Piano Booster</source>
++ <translation>Acerca de Piano Booster</translation>
++ </message>
++ <message>
++ <source><b>PianoBooster - Version </source>
++ <translation><b>PianoBooster - Versión </translation>
++ </message>
++ <message>
++ <source>PC Keyboard Short Cuts</source>
++ <translation>Atajos del teclado del PC</translation>
++ </message>
++ <message>
++ <source><h2><center>Keyboard short cuts</center></h2><p>The following PC keyboard short cuts have been defined.</p><center><table border='1' cellspacing='0' cellpadding='4' ></source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <source><tr><th>Action</th><th>Key</th></tr></source>
++ <translation><tr><th>Acción</th><th>Key</th></tr></translation>
++ </message>
++ <message>
++ <source><tr><td>Fake Piano keys</td><td>X is middle C</td></tr></table> </center><br></source>
++ <translation><tr><td>Teclas de piano simuladas</td><td>X es el do central</td></tr></table> </center><br></translation>
++ </message>
++ <message>
++ <source>Open Midi File</source>
++ <translation>Abrir un archivo MIDI</translation>
++ </message>
++ <message>
++ <source>Midi Files (*.mid *.MID *.midi *.kar *.KAR)</source>
++ <translation>Archivos MIDI (*.mid *.MID *.midi *.kar *.KAR)</translation>
++ </message>
++</context>
++</TS>
Modified: packages/trunk/pianobooster/debian/patches/series
===================================================================
--- packages/trunk/pianobooster/debian/patches/series 2011-11-30 00:49:03 UTC (rev 12897)
+++ packages/trunk/pianobooster/debian/patches/series 2011-11-30 07:04:16 UTC (rev 12898)
@@ -1 +1,2 @@
rtmidi-1.0.15.patch
+i18n.patch
Modified: packages/trunk/pianobooster/debian/pianobooster.desktop
===================================================================
--- packages/trunk/pianobooster/debian/pianobooster.desktop 2011-11-30 00:49:03 UTC (rev 12897)
+++ packages/trunk/pianobooster/debian/pianobooster.desktop 2011-11-30 07:04:16 UTC (rev 12898)
@@ -7,4 +7,4 @@
Exec=pianobooster
Terminal=false
MimeType=audio/x-karaoke;audio/x-midi;audio/midi;
-Categories=Audio;AudioVideo;Midi;Music;Player;Education;Qt
+Categories=Audio;AudioVideo;Midi;Music;Player;Education;Qt;
Modified: packages/trunk/pianobooster/debian/pianobooster.install
===================================================================
--- packages/trunk/pianobooster/debian/pianobooster.install 2011-11-30 00:49:03 UTC (rev 12897)
+++ packages/trunk/pianobooster/debian/pianobooster.install 2011-11-30 07:04:16 UTC (rev 12898)
@@ -2,3 +2,4 @@
debian/*.png usr/share/pixmaps/
debian/*.xpm usr/share/pixmaps/
debian/*.desktop usr/share/applications/
+src/*.qm usr/share/games/pianobooster/translations/
Modified: packages/trunk/pianobooster/debian/rules
===================================================================
--- packages/trunk/pianobooster/debian/rules 2011-11-30 00:49:03 UTC (rev 12897)
+++ packages/trunk/pianobooster/debian/rules 2011-11-30 07:04:16 UTC (rev 12898)
@@ -9,6 +9,7 @@
config-stamp:
dh_testdir
[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
+
# Perform an out-of-tree build to keep a clean source tree
mkdir $(BUILD_TREE)
cd $(BUILD_TREE); cmake $(CURDIR)/src/ \
@@ -26,6 +27,7 @@
build-stamp: config
dh_testdir
cd $(BUILD_TREE); $(MAKE)
+ cd src && lrelease *.ts
touch $@
build-indep:
@@ -35,8 +37,9 @@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp config-stamp
- rm -fr $(BUILD_TREE)
+ rm -fv build-stamp config-stamp
+ rm -fvr $(BUILD_TREE)
+ rm -fv src/*.qm
[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
dh_clean
@@ -72,5 +75,12 @@
dh_md5sums
dh_builddeb
+refresh-tr:
+ dh_testdir
+ -quilt push -a
+
+ # Update translations
+ cd $(CURDIR)/src/ && lupdate -verbose pianobooster.pro
+
binary: binary-indep binary-arch
.PHONY: config build build-indep build-arch clean binary-indep binary-arch binary install
More information about the Pkg-games-commits
mailing list