r12901 - packages/trunk/pianobooster/debian/patches
Miriam Ruiz
miriam at alioth.debian.org
Wed Nov 30 13:47:35 UTC 2011
Author: miriam
Date: 2011-11-30 13:47:35 +0000 (Wed, 30 Nov 2011)
New Revision: 12901
Modified:
packages/trunk/pianobooster/debian/patches/i18n.patch
Log:
Updated translation support and Spanish translation
Modified: packages/trunk/pianobooster/debian/patches/i18n.patch
===================================================================
--- packages/trunk/pianobooster/debian/patches/i18n.patch 2011-11-30 12:50:46 UTC (rev 12900)
+++ packages/trunk/pianobooster/debian/patches/i18n.patch 2011-11-30 13:47:35 UTC (rev 12901)
@@ -54,6 +54,31 @@
"<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>"
+@@ -470,15 +470,15 @@
+ "<th>Key</th>"
+ "</tr>"
+ );
+- msg += displayShortCut("ShortCuts/RightHand","Choose the right hand");
+- msg += displayShortCut("ShortCuts/BothHands","Choose both hands");
+- msg += displayShortCut("ShortCuts/LeftHand","Choose the left Hand");
+- msg += displayShortCut("ShortCuts/PlayFromStart","Play from start toggle");
+- msg += displayShortCut("ShortCuts/PlayPause","Play Pause Toggle");
+- msg += displayShortCut("ShortCuts/Faster","Increase the speed by 5%");
+- msg += displayShortCut("ShortCuts/Slower","Increase the speed by 5%");
+- msg += displayShortCut("ShortCuts/NextSong","Change to the Next Song");
+- msg += displayShortCut("ShortCuts/PreviousSong","Change to the Previous Song");
++ msg += displayShortCut("ShortCuts/RightHand", tr("Choose the right hand"));
++ msg += displayShortCut("ShortCuts/BothHands", tr("Choose both hands"));
++ msg += displayShortCut("ShortCuts/LeftHand", tr("Choose the left Hand"));
++ msg += displayShortCut("ShortCuts/PlayFromStart", tr("Play from start toggle"));
++ msg += displayShortCut("ShortCuts/PlayPause", tr("Play Pause Toggle"));
++ msg += displayShortCut("ShortCuts/Faster", tr("Increase the speed by 5%"));
++ msg += displayShortCut("ShortCuts/Slower", tr("Increase the speed by 5%"));
++ msg += displayShortCut("ShortCuts/NextSong", tr("Change to the Next Song"));
++ msg += displayShortCut("ShortCuts/PreviousSong", tr("Change to the Previous Song"));
+
+ msg += tr(
+ "<tr><td>Fake Piano keys</td><td>X is middle C</td></tr>"
--- pianobooster-src-0.6.4.orig/src/pianobooster.pro
+++ pianobooster-src-0.6.4/src/pianobooster.pro
@@ -68,6 +68,8 @@
@@ -67,10 +92,25 @@
OBJECTS_DIR = tmp
--- /dev/null
+++ pianobooster-src-0.6.4/src/pianobooster_es.ts
-@@ -0,0 +1,592 @@
+@@ -0,0 +1,715 @@
+<!DOCTYPE TS>
+<TS>
+ <context>
++ <name>CGLView</name>
++ <message>
++ <source>Accuracy:</source>
++ <translation>Precisión:</translation>
++ </message>
++ <message>
++ <source>Song: </source>
++ <translation>Canción: </translation>
++ </message>
++ <message>
++ <source>Bar: </source>
++ <translation>Barra: </translation>
++ </message>
++ </context>
++ <context>
+ <name>CSettings</name>
+ <message>
+ <source>NO MIDI OUTPUT DEVICE: Use menu Setup/Midi Setup ...</source>
@@ -80,6 +120,10 @@
+ <source>NO MIDI FILE LOADED: Use menu File/Open ...</source>
+ <translation>NO SE HA CARGADO UN ARCHIVO MIDI: Use Archivo/Abrir ...</translation>
+ </message>
++ <message>
++ <source>space</source>
++ <translation>espacio</translation>
++ </message>
+ </context>
+ <context>
+ <name>GuiKeyboardSetupDialog</name>
@@ -149,7 +193,7 @@
+ </message>
+ <message>
+ <source><span style="color:black">You can use the PC keyboard instead of a MIDI keyboard; 'x' is middle C.</span></source>
-+ <translation><span style="color:black">Puede usar el teclado del PC en lugar de un teclado MIDI; 'x' es el do (\"C\") central.</span></translation>
++ <translation><span style="color:black">Puede usar el teclado del PC en lugar de un teclado MIDI; 'x' es el do ('C') central.</span></translation>
+ </message>
+ <message>
+ <source><span style="color:red">Oops, you have <b>0 notes</b> on your keyboard!</span></source>
@@ -157,7 +201,7 @@
+ </message>
+ <message>
+ <source><span style="color:black">Your keyboard range is <b>octaves %1</b> and <b>semitones %2</b>; 60 is middle C.</span></source>
-+ <translation><span style="color:black">El rengo de su teclado es de <b>%1 octavas</b> y <b>%2 semitonos</b>; 60 es el do (\"C\") central.</span></translation>
++ <translation><span style="color:black">El rengo de su teclado es de <b>%1 octavas</b> y <b>%2 semitonos</b>; 60 es el do ('C') central.</span></translation>
+ </message>
+ </context>
+ <context>
@@ -380,11 +424,11 @@
+ </message>
+ <message>
+ <source>Follow you</source>
-+ <translation>Ir siguiendo</translation>
++ <translation>Seguir</translation>
+ </message>
+ <message>
+ <source>Play Along</source>
-+ <translation>Acompañar</translation>
++ <translation>Acompañ.</translation>
+ </message>
+ <message>
+ <source>Hands</source>
@@ -392,15 +436,15 @@
+ </message>
+ <message>
+ <source>Right</source>
-+ <translation>Derecha</translation>
++ <translation>Der.</translation>
+ </message>
+ <message>
+ <source>Both</source>
-+ <translation>Ambas</translation>
++ <translation>Amb.</translation>
+ </message>
+ <message>
+ <source>Left</source>
-+ <translation>Izquierda</translation>
++ <translation>Izq.</translation>
+ </message>
+ <message>
+ <source>Adjust the volume of your piano</source>
@@ -420,7 +464,7 @@
+ </message>
+ <message>
+ <source>Mute your part when playing</source>
-+ <translation>Enmudecer la parte que está siendo tocada</translation>
++ <translation>Enmudecer parte tocada</translation>
+ </message>
+ </context>
+ <context>
@@ -470,7 +514,7 @@
+ </message>
+ <message>
+ <source>Key:</source>
-+ <translation>Clave:</translation>
++ <translation>Armadura:</translation>
+ </message>
+ <message>
+ <source>Transpose:</source>
@@ -484,6 +528,78 @@
+ <source>Save this Bar Number</source>
+ <translation>Guardar este número de barra</translation>
+ </message>
++ <message>
++ <source>Major</source>
++ <translation>Mayor</translation>
++ </message>
++ <message>
++ <source>Minor</source>
++ <translation>Menor</translation>
++ </message>
++ <message>
++ <source>Gb</source>
++ <translation>Gb (Sol♭)</translation>
++ </message>
++ <message>
++ <source>Db</source>
++ <translation>Db (Re♭)</translation>
++ </message>
++ <message>
++ <source>Ab</source>
++ <translation>Ab (La♭)</translation>
++ </message>
++ <message>
++ <source>Eb</source>
++ <translation>Eb (Mi♭)</translation>
++ </message>
++ <message>
++ <source>Bb</source>
++ <translation>Bb (Sí♭)</translation>
++ </message>
++ <message>
++ <source>F </source>
++ <translation>F (Fa)</translation>
++ </message>
++ <message>
++ <source>C </source>
++ <translation>C (Do)</translation>
++ </message>
++ <message>
++ <source>G </source>
++ <translation>G (Sol)</translation>
++ </message>
++ <message>
++ <source>D </source>
++ <translation>D (Re)</translation>
++ </message>
++ <message>
++ <source>A </source>
++ <translation>A (La)</translation>
++ </message>
++ <message>
++ <source>E </source>
++ <translation>E (Mi)</translation>
++ </message>
++ <message>
++ <source>B </source>
++ <translation>B (Sí)</translation>
++ </message>
++ <message>
++ <source>F#</source>
++ <translation>F# (Fa#)</translation>
++ </message>
++ <message>
++ <source>G#</source>
++ <translation>G# (Sol#)</translation>
++ </message>
++ <message>
++ <source>C#</source>
++ <translation>C# (Do#)</translation>
++ </message>
++ <message>
++ <source>D#</source>
++ <translation>D# (Re#)</translation>
++ </message>
+ </context>
+ <context>
+ <name>QMessageBox</name>
@@ -624,7 +740,7 @@
+ </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><h3>Comenzando</h3><p>Es necesario un <b>teclado musical MIDI</b> y un <b>interfaz MIDI</b> para el PC. Si no se dispone de un teclado MIDI, es posible usar PianoBooster utilizando el teclado del PC keyboard, 'X' es el do ('C') central.</p><p>Para escuchar la música, es necesario un <b>sintetizador MIDI</b>. En Windows se puede usar el "Microsoft GS Wavetable software synthesizer", pero éste introduce una latencia inaceptable. En Linux se puede usar FluidSynth o Timidity.</p><p>PianoBooster no viene con ningún <b>archivo MIDI</b> por lo que estos deberán ser descargados desde la red, o de cualquier otra fuente. Vaya a <a href="http://pianobooster.sourceforge.net/faq.html" ><b>PianoBooster FAQ</b></a> para accedee a algunos de los sitios desde los que se pueden descargar. PianoBooster funciona mejor con archivos MIDI que tienen separadas las partes del piano ejecutadas por la mano derecha y la izquierda usando los canales MIDI 3 y 4.<h3>Configuración</h3><p>Use el menú <i>Configuración/Configuración MIDI</i> y seleccione la entrada y salida MIDI correspondientes a su arquitectura. A continuación use <i>Archivo/Abrir</i> para abrir un archivo MIDI (".mid") o de karaoke (".kar"). Seleccione si desea simplemente <i>escuchar</i> la música o si desea <i>tocarla</i> en el teclado musical, seleccionando el <i>nivel</i> en el panel lateral. Finalmente, pulse el icono de <i>comenzar a tocar</i> (o la <i>barra espaciadora</i>) para que la canción comience.<h3>Consejos para tocar el teclado musical</h3><p>Para consejos sobre como tocar el teclado musical, vea: <a href="http://pianobooster.sourceforge.net/pianohints.html" ><b>Piano Hints</b></a></p><h3>Más información</h3><p>Para saber más, visite la <a href="http://pianobooster.sourceforge.net/" ><b>página web de PianoBooster website</b></a>, la página de <a href="http://pianobooster.sourceforge.net/faq.html" ><b>preguntas frecuentes (FAQ)</b></a> y el <a href="http://n2.nabble.com/Piano-Booster-Users-f1591936.html" ><b>foro de apoyo</b></a>. </translation>
+ </message>
+ <message>
+ <source>About Piano Booster</source>
@@ -648,7 +764,7 @@
+ </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 (\"C\") central</td></tr></table> </center><br></translation>
++ <translation><tr><td>Teclas de piano simuladas</td><td>X es el do ('C') central</td></tr></table> </center><br></translation>
+ </message>
+ <message>
+ <source>Open Midi File</source>
@@ -658,6 +774,38 @@
+ <source>Midi Files (*.mid *.MID *.midi *.kar *.KAR)</source>
+ <translation>Archivos MIDI (*.mid *.MID *.midi *.kar *.KAR)</translation>
+ </message>
++ <message>
++ <source>Choose the right hand</source>
++ <translation>Elegir la mano derecha</translation>
++ </message>
++ <message>
++ <source>Choose both hands</source>
++ <translation>Elegir ambas manos</translation>
++ </message>
++ <message>
++ <source>Choose the left Hand</source>
++ <translation>Elegir la mano izquierda</translation>
++ </message>
++ <message>
++ <source>Play from start toggle</source>
++ <translation>Reproducir desde el principio</translation>
++ </message>
++ <message>
++ <source>Play Pause Toggle</source>
++ <translation>Reproducir / Parar</translation>
++ </message>
++ <message>
++ <source>Increase the speed by 5%</source>
++ <translation>Aumentar la velocidad en 5%</translation>
++ </message>
++ <message>
++ <source>Change to the Next Song</source>
++ <translation>Cambiar a la canción siguiente</translation>
++ </message>
++ <message>
++ <source>Change to the Previous Song</source>
++ <translation>Cambiar a la canción anterior</translation>
++ </message>
+ </context>
+</TS>
--- pianobooster-src-0.6.4.orig/src/GuiKeyboardSetupDialog.cpp
@@ -738,3 +886,117 @@
followStopPointCombo->setCurrentIndex(m_song->cfg_stopPointMode);
}
+--- pianobooster-src-0.6.4.orig/src/GlView.cpp
++++ pianobooster-src-0.6.4/src/GlView.cpp
+@@ -225,14 +225,14 @@
+ glColor3f(1.0,1.0,1.0);
+
+ if (m_song->getPlayMode() != PB_PLAY_MODE_listen)
+- renderText(30, y-4,0 ,"Accuracy:", m_timeRatingFont);
++ renderText(30, y-4, 0, tr("Accuracy:"), m_timeRatingFont);
+
+ if (m_titleHeight < 45 )
+ return;
+
+ y = Cfg::getAppHeight() - m_titleHeight;
+
+- renderText(30, y+6, 0,"Song: " + m_song->getSongTitle(), m_timeRatingFont);
++ renderText(30, y+6, 0, tr("Song: ") + m_song->getSongTitle(), m_timeRatingFont);
+ /*
+ char buffer[100];
+ sprintf(buffer, "Notes %d wrong %d Late %d Score %4.1f%%",
+@@ -255,7 +255,7 @@
+ //CDraw::drColour (Cfg::noteColourDim());
+ //glRectf(x+30+10, y-2, x + 80, y + 16);
+ glColor3f(1.0,1.0,1.0);
+- renderText(x, y, 0,"Bar: " + QString::number(m_song->getBarNumber()), m_timeRatingFont);
++ renderText(x, y, 0, tr("Bar: ") + QString::number(m_song->getBarNumber()), m_timeRatingFont);
+ }
+
+ void CGLView::resizeGL(int width, int height)
+--- pianobooster-src-0.6.4.orig/src/GuiTopBar.cpp
++++ pianobooster-src-0.6.4/src/GuiTopBar.cpp
+@@ -52,8 +52,8 @@
+ transposeSpin->setMaximum(12);
+ transposeSpin->setMinimum(-12);
+
+- majorCombo->addItem("Major");
+- majorCombo->addItem("Minor");
++ majorCombo->addItem(tr("Major"));
++ majorCombo->addItem(tr("Minor"));
+ setMaximumHeight(30);
+ setMaximumSize(QSize(16777215, 30));
+ }
+@@ -86,35 +86,35 @@
+ keyCombo->clear();
+ if (major)
+ {
+- keyCombo->addItem("Gb"); // -6
+- keyCombo->addItem("Db"); // -5
+- keyCombo->addItem("Ab"); // -4
+- keyCombo->addItem("Eb"); // -3
+- keyCombo->addItem("Bb"); // -2
+- keyCombo->addItem("F "); // -1
+- keyCombo->addItem("C"); // 0
+- keyCombo->addItem("G "); // 1
+- keyCombo->addItem("D "); // 2
+- keyCombo->addItem("A "); // 3
+- keyCombo->addItem("E "); // 4
+- keyCombo->addItem("B "); // 5
+- keyCombo->addItem("F#"); // 6
++ keyCombo->addItem(tr("Gb")); // -6
++ keyCombo->addItem(tr("Db")); // -5
++ keyCombo->addItem(tr("Ab")); // -4
++ keyCombo->addItem(tr("Eb")); // -3
++ keyCombo->addItem(tr("Bb")); // -2
++ keyCombo->addItem(tr("F ")); // -1
++ keyCombo->addItem(tr("C ")); // 0
++ keyCombo->addItem(tr("G ")); // 1
++ keyCombo->addItem(tr("D ")); // 2
++ keyCombo->addItem(tr("A ")); // 3
++ keyCombo->addItem(tr("E ")); // 4
++ keyCombo->addItem(tr("B ")); // 5
++ keyCombo->addItem(tr("F#")); // 6
+ }
+ else
+ {
+- keyCombo->addItem("Eb");
+- keyCombo->addItem("Bb");
+- keyCombo->addItem("F");
+- keyCombo->addItem("C");
+- keyCombo->addItem("G");
+- keyCombo->addItem("D ");
+- keyCombo->addItem("A");
+- keyCombo->addItem("E ");
+- keyCombo->addItem("B ");
+- keyCombo->addItem("F#");
+- keyCombo->addItem("G#");
+- keyCombo->addItem("C#");
+- keyCombo->addItem("D#");
++ keyCombo->addItem(tr("Eb"));
++ keyCombo->addItem(tr("Bb"));
++ keyCombo->addItem(tr("F "));
++ keyCombo->addItem(tr("C "));
++ keyCombo->addItem(tr("G "));
++ keyCombo->addItem(tr("D "));
++ keyCombo->addItem(tr("A "));
++ keyCombo->addItem(tr("E "));
++ keyCombo->addItem(tr("B "));
++ keyCombo->addItem(tr("F#"));
++ keyCombo->addItem(tr("G#"));
++ keyCombo->addItem(tr("C#"));
++ keyCombo->addItem(tr("D#"));
+ }
+ refresh(false);
+ }
+--- pianobooster-src-0.6.4.orig/src/Settings.cpp
++++ pianobooster-src-0.6.4/src/Settings.cpp
+@@ -89,7 +89,7 @@
+ setDefaultValue("ShortCuts/LeftHand", "F2");
+ setDefaultValue("ShortCuts/BothHands","F3");
+ setDefaultValue("ShortCuts/RightHand","F4");
+- setDefaultValue("ShortCuts/PlayFromStart","space");
++ setDefaultValue("ShortCuts/PlayFromStart",tr("space"));
+ setDefaultValue("ShortCuts/PlayPause","P");
+ setDefaultValue("ShortCuts/Faster","=");
+ setDefaultValue("ShortCuts/Slower","-");
More information about the Pkg-games-commits
mailing list