Browse Source

More string translation using tr() and french update

dynamic_words_list
squeaky otter 5 years ago
parent
commit
ba3da4beb3
Signed by: dashie GPG Key ID: C2D57B325840B755
  1. 4
      Prefs.cpp
  2. 216
      cutecw_en.ts
  3. BIN
      cutecw_fr.qm
  4. 216
      cutecw_fr.ts
  5. 6
      modes/GroupingMode.cpp
  6. 2
      modes/KeyTraining.cpp
  7. 2
      modes/PlayMode.cpp
  8. 10
      modes/ReadMode.cpp
  9. 5
      modes/SpeedTrainingMode.cpp
  10. 22
      modes/TrainingMode.cpp
  11. 16
      modes/WordTrainingMode.cpp
  12. 2
      modes/games/GroupGame.cpp
  13. 1
      modes/games/HighScores.cpp
  14. 4
      modes/games/KeyInvaders.cpp
  15. 2
      modes/games/WordGame.cpp
  16. 4
      widgets/KeyTimingDisplay.cpp

4
Prefs.cpp

@ -39,8 +39,8 @@ Prefs::Prefs(Morse *morse, QWidget *parent) :
genericForm->addRow(tr("Play startup sound"), m_StartSound);
m_Lang = new QComboBox();
m_Lang->addItem("English", QVariant("en"));
m_Lang->addItem("Français", QVariant("fr"));
m_Lang->addItem(tr("English"), QVariant("en"));
m_Lang->addItem(tr("Français"), QVariant("fr"));
int langIndex = m_Lang->findData(QVariant(m_morse->lang()));
m_Lang->setCurrentIndex(langIndex);

216
cutecw_en.ts

@ -75,6 +75,11 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/GroupGame.cpp" line="26"/>
<source>HighScores</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/GroupGame.cpp" line="35"/>
<source>Grouping Game</source>
@ -113,6 +118,21 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="47"/>
<source>%1 - &lt;font color=&quot;green&quot;&gt;GOOD&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="50"/>
<source>%1 - &lt;font color=&quot;red&quot;&gt;FAIL (%2)&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="58"/>
<source>current length = %1, good = %2, bad = %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="106"/>
<source>Grouping Training</source>
@ -124,6 +144,14 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>HighScores</name>
<message>
<location filename="modes/games/HighScores.cpp" line="54"/>
<source>GamesHigh Scores</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>HighScoresDialog</name>
<message>
@ -154,6 +182,16 @@
<source>&lt;font color=&quot;green&quot;&gt;Key the letters using a st.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="95"/>
<source>HighScores</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="113"/>
<source>Fear The Invaders</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="149"/>
<source>&lt;p&gt;Shoot letters falling from the sky by keying them appropriately.&lt;/p&gt;</source>
@ -165,6 +203,19 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>KeyTimingDisplay</name>
<message>
<location filename="widgets/KeyTimingDisplay.cpp" line="29"/>
<source>keyed:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="widgets/KeyTimingDisplay.cpp" line="30"/>
<source>expected:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>KeyTraining</name>
<message>
@ -177,6 +228,11 @@
<source>this is for practing keying.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/KeyTraining.cpp" line="45"/>
<source>&lt;font color=&quot;green&quot;&gt;Key the letters using any keyborad key as a straight key.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/KeyTraining.cpp" line="55"/>
<source>Number of Letters:</source>
@ -362,6 +418,11 @@
</context>
<context>
<name>PlayMode</name>
<message>
<location filename="modes/PlayMode.cpp" line="15"/>
<source>&lt;font color=&quot;green&quot;&gt;Type letters to hear the keys in morse code&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/PlayMode.cpp" line="22"/>
<source>&lt;p&gt;In &lt;/i&gt;Type Morse Code&lt;/i&gt; mode, simply type keys and the Cute CW engine will play what you type at the speeds set in the preferences dialog box. This is a fun mode to simply hear code that you type, but to begin your true training, switch to one of the other modes.&lt;p&gt;You may also wish to try the &lt;i&gt;read to me&lt;/i&gt; mode as well.</source>
@ -395,6 +456,16 @@
<source>Play startup sound</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="Prefs.cpp" line="42"/>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="Prefs.cpp" line="43"/>
<source>Français</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="Prefs.cpp" line="48"/>
<source>App language</source>
@ -436,11 +507,36 @@
</context>
<context>
<name>ReadMode</name>
<message>
<location filename="modes/ReadMode.cpp" line="21"/>
<source>&lt;font color=&quot;green&quot;&gt;Enter text and hit the play button to hear the entire sequence.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="37"/>
<source>Load File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="93"/>
<source>Loading news.... Please wait....</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="100"/>
<source>Failed to load the news</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="120"/>
<source>no news is likely not good news in this case</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="123"/>
<source>Failed to load the news document</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="129"/>
<source>Load a file</source>
@ -474,6 +570,11 @@
</context>
<context>
<name>SpeedTrainingMode</name>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="20"/>
<source>&lt;font color=&quot;green&quot;&gt;Type the letter you hear ASAP. The keying will get faster.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="86"/>
<source>Characters in the sequence will play at you with short pauses between each character. The goal here is to train for both accuracy while under slight pressure as the next letter starts playing at you. As you guess more and more correctly the speed will increase and incorrect guesses will slow down the keying rate. As you get better, the spacing between the letters will decrease and will continue to challange you hopefully right near your learning point.</source>
@ -485,27 +586,32 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="270"/>
<location filename="modes/SpeedTrainingMode.cpp" line="187"/>
<source>All WPM: %1, %2 WPM: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="269"/>
<source>Speed Acceptance Rate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="274"/>
<location filename="modes/SpeedTrainingMode.cpp" line="273"/>
<source>Speed Increasing Aggressiveness</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="278"/>
<location filename="modes/SpeedTrainingMode.cpp" line="277"/>
<source>(lower values mean speed increases more quickly)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="284"/>
<location filename="modes/SpeedTrainingMode.cpp" line="283"/>
<source>Speed Multiplier</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="288"/>
<location filename="modes/SpeedTrainingMode.cpp" line="287"/>
<source>(higher forces a slower starting speed)</source>
<translation type="unfinished"></translation>
</message>
@ -517,16 +623,66 @@
<source>Koch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="26"/>
<source>Full Koch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="30"/>
<source>Koch part 1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="34"/>
<source>Koch part 2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="38"/>
<source>Koch part 3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="42"/>
<source>Koch part 4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="48"/>
<source>Alphabet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="50"/>
<source>Full</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="71"/>
<source>Similar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="96"/>
<source>Numbers</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="100"/>
<source>Symbols</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="104"/>
<source>Everything</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="110"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="125"/>
<source>Clear Training</source>
@ -537,6 +693,11 @@
<source>Use &amp;Entire Sequence</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="162"/>
<source>All WPM: [None], K WPM: NEW</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WordGame</name>
@ -545,6 +706,11 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/WordGame.cpp" line="26"/>
<source>HighScores</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/games/WordGame.cpp" line="35"/>
<source>Word Training Game</source>
@ -574,11 +740,51 @@
</context>
<context>
<name>WordTrainingMode</name>
<message>
<location filename="modes/WordTrainingMode.cpp" line="29"/>
<source>Words 1-100</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="33"/>
<source>Words 101-200</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="37"/>
<source>Words 201-300</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="41"/>
<source>Words 301-400</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="45"/>
<source>Words 401-500</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="57"/>
<source>&lt;font color=&quot;green&quot;&gt;Enter the word you hear and hit enter.&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="88"/>
<source>Words: %1/%2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="112"/>
<source>%1 - &lt;font color=&quot;green&quot;&gt;GOOD&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="121"/>
<source>%1 - &lt;font color=&quot;red&quot;&gt;FAIL (%2)&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="132"/>
<source>Most words that you read or hear are from a very small set of words. For example, 33% of the most common words fall into 100 simple words. If you memorize these words so you can regonize them not as individual letters but as entire words you&apos;ll greatly increase your listening rate. &lt;p&gt;As you hear words, type them in and hit enter when done. After hitting enter the next word will be played. As you begin the number of words selected from will be small but will increase quickly for every right answer (and decrease for every wrong).&lt;p&gt;Once you get good at the words in this group, try switching to the &lt;i&gt;Word Game&lt;/i&gt; mode and see what score you can achieve!</source>

BIN
cutecw_fr.qm

Binary file not shown.

216
cutecw_fr.ts

@ -75,6 +75,11 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tape au clavier, aussi vite que possible, les groupes de caractères que tu entends.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/games/GroupGame.cpp" line="26"/>
<source>HighScores</source>
<translation>Meilleurs scores</translation>
</message>
<message>
<location filename="modes/games/GroupGame.cpp" line="35"/>
<source>Grouping Game</source>
@ -113,6 +118,21 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tape au clavier, aussi vite que possible, les groupes de caractères que tu entends.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="47"/>
<source>%1 - &lt;font color=&quot;green&quot;&gt;GOOD&lt;/font&gt;</source>
<translation>%1 - &lt;font color=&quot;green&quot;&gt;CORRECT&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="50"/>
<source>%1 - &lt;font color=&quot;red&quot;&gt;FAIL (%2)&lt;/font&gt;</source>
<translation>%1 - &lt;font color=&quot;red&quot;&gt;INCORRECT (%2)&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="58"/>
<source>current length = %1, good = %2, bad = %3</source>
<translation>taille en cours = %1, correct = %2, incorrect = %3</translation>
</message>
<message>
<location filename="modes/GroupingMode.cpp" line="106"/>
<source>Grouping Training</source>
@ -124,6 +144,14 @@
<translation>Les caractères dans cette séquence dentraînement seront joués en commençant par un caractère seul. Tape le ou les caractères que tu entends dans chaque groupe. Tes résultats (bons ou mauvais) seront affichés sur lécran, en vert ou rouge, indiquant les bonnes et les mauvaises réponses.&lt;p&gt;Comme tu décoderas de plus en plus de groupes correctement, le nombre de caractères dans le groupe augmentera lentement. Après quatre séries réussies, le nombre de caractères augmentera dun caractère.&lt;p&gt;Le temps mis pour saisir le groupe ne compte pas aussi tu peux copier préalablement le groupe sur du papier ou faire travailler la mémoire des lettres ou des séquences.&lt;/p&gt;&lt;p&gt;Après avoir réussi dans le &lt;i&gt;mode de groupes&lt;/i&gt;, tu pourras essayer le &lt;i&gt;jeu de groupes&lt;/i&gt;, qui augmente les caractèresdun groupe plus rapidement, qui augmente et réduit aussi la vitesse en mots par minute (et qui gardera aussi en mémoire tes scores !)</translation>
</message>
</context>
<context>
<name>HighScores</name>
<message>
<location filename="modes/games/HighScores.cpp" line="54"/>
<source>GamesHigh Scores</source>
<translation>Meilleurs scores de jeu</translation>
</message>
</context>
<context>
<name>HighScoresDialog</name>
<message>
@ -155,6 +183,16 @@
<translatorcomment>using a st ????? clavier je suppose ???</translatorcomment>
<translation>&lt;font color=&quot;green&quot;&gt;Jouez les lettres en utilisant le clavier.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="95"/>
<source>HighScores</source>
<translation>Meilleurs scores</translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="113"/>
<source>Fear The Invaders</source>
<translation>Aillez peur de l&apos;invader</translation>
</message>
<message>
<location filename="modes/games/KeyInvaders.cpp" line="149"/>
<source>&lt;p&gt;Shoot letters falling from the sky by keying them appropriately.&lt;/p&gt;</source>
@ -166,6 +204,19 @@
<translation>Lettres Invaders</translation>
</message>
</context>
<context>
<name>KeyTimingDisplay</name>
<message>
<location filename="widgets/KeyTimingDisplay.cpp" line="29"/>
<source>keyed:</source>
<translation>tapé :</translation>
</message>
<message>
<location filename="widgets/KeyTimingDisplay.cpp" line="30"/>
<source>expected:</source>
<translation>attendu :</translation>
</message>
</context>
<context>
<name>KeyTraining</name>
<message>
@ -178,6 +229,11 @@
<source>this is for practing keying.</source>
<translation>ceci est pour l&apos;entrainement a la manipulation.</translation>
</message>
<message>
<location filename="modes/KeyTraining.cpp" line="45"/>
<source>&lt;font color=&quot;green&quot;&gt;Key the letters using any keyborad key as a straight key.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tapez les lettres en utilisant n&apos;importe quelle touche du clavier comme manipulateur.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/KeyTraining.cpp" line="55"/>
<source>Number of Letters:</source>
@ -363,6 +419,11 @@
</context>
<context>
<name>PlayMode</name>
<message>
<location filename="modes/PlayMode.cpp" line="15"/>
<source>&lt;font color=&quot;green&quot;&gt;Type letters to hear the keys in morse code&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tapez les lettres pour les entendre comme code morse&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/PlayMode.cpp" line="22"/>
<source>&lt;p&gt;In &lt;/i&gt;Type Morse Code&lt;/i&gt; mode, simply type keys and the Cute CW engine will play what you type at the speeds set in the preferences dialog box. This is a fun mode to simply hear code that you type, but to begin your true training, switch to one of the other modes.&lt;p&gt;You may also wish to try the &lt;i&gt;read to me&lt;/i&gt; mode as well.</source>
@ -397,6 +458,16 @@
<source>Play startup sound</source>
<translation>Jouer le son de démarrage</translation>
</message>
<message>
<location filename="Prefs.cpp" line="42"/>
<source>English</source>
<translation>Anglais</translation>
</message>
<message>
<location filename="Prefs.cpp" line="43"/>
<source>Français</source>
<translation>Français</translation>
</message>
<message>
<location filename="Prefs.cpp" line="48"/>
<source>App language</source>
@ -438,11 +509,36 @@
</context>
<context>
<name>ReadMode</name>
<message>
<location filename="modes/ReadMode.cpp" line="21"/>
<source>&lt;font color=&quot;green&quot;&gt;Enter text and hit the play button to hear the entire sequence.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Entrez le texte et appuyez sur le bouton jouer pour entendre la séquence entière.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="37"/>
<source>Load File</source>
<translation>Charger un fichier</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="93"/>
<source>Loading news.... Please wait....</source>
<translation>Chargement des news.... Veuillez patienter....</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="100"/>
<source>Failed to load the news</source>
<translation>Echec de chargement des news</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="120"/>
<source>no news is likely not good news in this case</source>
<translation>aucune nouvelles est probablement une mauvaise nouvelle dans notre cas</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="123"/>
<source>Failed to load the news document</source>
<translation>Echec de chargement du document de news</translation>
</message>
<message>
<location filename="modes/ReadMode.cpp" line="129"/>
<source>Load a file</source>
@ -476,6 +572,11 @@
</context>
<context>
<name>SpeedTrainingMode</name>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="20"/>
<source>&lt;font color=&quot;green&quot;&gt;Type the letter you hear ASAP. The keying will get faster.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tape au clavier, aussi vite que possible. La vitesse de tape va s&apos;accelérer.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="86"/>
<source>Characters in the sequence will play at you with short pauses between each character. The goal here is to train for both accuracy while under slight pressure as the next letter starts playing at you. As you guess more and more correctly the speed will increase and incorrect guesses will slow down the keying rate. As you get better, the spacing between the letters will decrease and will continue to challange you hopefully right near your learning point.</source>
@ -487,27 +588,32 @@
<translation>Entrainement à la vitesse</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="270"/>
<location filename="modes/SpeedTrainingMode.cpp" line="187"/>
<source>All WPM: %1, %2 WPM: %3</source>
<translation>Tous les MPM : %1, %2 MPM. %3</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="269"/>
<source>Speed Acceptance Rate</source>
<translation>Objectif de vitesse</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="274"/>
<location filename="modes/SpeedTrainingMode.cpp" line="273"/>
<source>Speed Increasing Aggressiveness</source>
<translation>Augmentation de la vitesse</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="278"/>
<location filename="modes/SpeedTrainingMode.cpp" line="277"/>
<source>(lower values mean speed increases more quickly)</source>
<translation>(Une valeur faible provoque une augmentation plus rapide de la vitesse)</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="284"/>
<location filename="modes/SpeedTrainingMode.cpp" line="283"/>
<source>Speed Multiplier</source>
<translation>Multiplicateur de vitesse</translation>
</message>
<message>
<location filename="modes/SpeedTrainingMode.cpp" line="288"/>
<location filename="modes/SpeedTrainingMode.cpp" line="287"/>
<source>(higher forces a slower starting speed)</source>
<translation>(Elevé provoque une vitesse de départ plus faible)</translation>
</message>
@ -519,16 +625,66 @@
<source>Koch</source>
<translation>Koch</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="26"/>
<source>Full Koch</source>
<translation>Tout Koch</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="30"/>
<source>Koch part 1</source>
<translation>Koch partie 1</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="34"/>
<source>Koch part 2</source>
<translation>Koch partie 2</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="38"/>
<source>Koch part 3</source>
<translation>Koch partie 3</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="42"/>
<source>Koch part 4</source>
<translation>Koch partie 3</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="48"/>
<source>Alphabet</source>
<translation>Alphabet</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="50"/>
<source>Full</source>
<translation>Tout</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="71"/>
<source>Similar</source>
<translation>Similaire</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="96"/>
<source>Numbers</source>
<translation>Nombres</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="100"/>
<source>Symbols</source>
<translation>Symboles</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="104"/>
<source>Everything</source>
<translation>Absolument tout</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="110"/>
<source>Custom</source>
<translation>Personnalisé</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="125"/>
<source>Clear Training</source>
@ -539,6 +695,11 @@
<source>Use &amp;Entire Sequence</source>
<translation>Utiliser la séquence &amp;entière</translation>
</message>
<message>
<location filename="modes/TrainingMode.cpp" line="162"/>
<source>All WPM: [None], K WPM: NEW</source>
<translation>Tous MPM: [Aucuns], K MPM: NEW</translation>
</message>
</context>
<context>
<name>WordGame</name>
@ -547,6 +708,11 @@
<source>&lt;font color=&quot;green&quot;&gt;Type the groups of characters you hear ASAP.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Tape au clavier, aussi vite que possible, les groupes de caractères que tu entends.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/games/WordGame.cpp" line="26"/>
<source>HighScores</source>
<translation>Meilleurs scores</translation>
</message>
<message>
<location filename="modes/games/WordGame.cpp" line="35"/>
<source>Word Training Game</source>
@ -576,11 +742,51 @@
</context>
<context>
<name>WordTrainingMode</name>
<message>
<location filename="modes/WordTrainingMode.cpp" line="29"/>
<source>Words 1-100</source>
<translation>Mots 1-100</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="33"/>
<source>Words 101-200</source>
<translation>Mots 101-200</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="37"/>
<source>Words 201-300</source>
<translation>Mots 201-300</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="41"/>
<source>Words 301-400</source>
<translation>Mots 301-400</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="45"/>
<source>Words 401-500</source>
<translation>Mots 401-500</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="57"/>
<source>&lt;font color=&quot;green&quot;&gt;Enter the word you hear and hit enter.&lt;/font&gt;</source>
<translation>&lt;font color=&quot;green&quot;&gt;Entrez le mot que vous entendez et pressez entré.&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="88"/>
<source>Words: %1/%2</source>
<translation>Mots : %1/%2</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="112"/>
<source>%1 - &lt;font color=&quot;green&quot;&gt;GOOD&lt;/font&gt;</source>
<translation>%1 - &lt;font color=&quot;green&quot;&gt;CORRECT&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="121"/>
<source>%1 - &lt;font color=&quot;red&quot;&gt;FAIL (%2)&lt;/font&gt;</source>
<translation>%1 - &lt;font color=&quot;red&quot;&gt;INCORRECT (%2)&lt;/font&gt;</translation>
</message>
<message>
<location filename="modes/WordTrainingMode.cpp" line="132"/>
<source>Most words that you read or hear are from a very small set of words. For example, 33% of the most common words fall into 100 simple words. If you memorize these words so you can regonize them not as individual letters but as entire words you&apos;ll greatly increase your listening rate. &lt;p&gt;As you hear words, type them in and hit enter when done. After hitting enter the next word will be played. As you begin the number of words selected from will be small but will increase quickly for every right answer (and decrease for every wrong).&lt;p&gt;Once you get good at the words in this group, try switching to the &lt;i&gt;Word Game&lt;/i&gt; mode and see what score you can achieve!</source>

6
modes/GroupingMode.cpp

@ -44,10 +44,10 @@ void GroupingMode::handleKeyPress(QChar letter) {
if (m_currentSequence.length() == m_enteredWord.length()) {
if (m_wordWasGood) {
m_goodGuesses++;
m_ui->letter->setText(m_ui->letter->text() + " - <font color=\"green\">GOOD</font>");
m_ui->letter->setText(tr("%1 - <font color=\"green\">GOOD</font>").arg(m_ui->letter->text()));
} else {
m_badGuesses++;
m_ui->letter->setText(m_ui->letter->text() + " - <font color=\"red\">FAIL (" + m_currentSequence + ")</font>");
m_ui->letter->setText(tr("%1 - <font color=\"red\">FAIL (%2)</font>").arg(m_ui->letter->text()).arg(m_currentSequence));
}
emit groupEntered(m_rightCount, m_currentSequence.length());
}
@ -55,7 +55,7 @@ void GroupingMode::handleKeyPress(QChar letter) {
}
void GroupingMode::setSequenceText() {
m_sequenceLabel->setText(QString("current length = %1, good = %2, bad = %3").arg(m_groupLength).arg(m_goodGuesses).arg(m_badGuesses));
m_sequenceLabel->setText(tr("current length = %1, good = %2, bad = %3").arg(m_groupLength).arg(m_goodGuesses).arg(m_badGuesses));
}
void GroupingMode::createNextSequence() {

2
modes/KeyTraining.cpp

@ -42,7 +42,7 @@ void KeyTraining::changeNumberOfLetters(int value) {
void KeyTraining::switchToMode()
{
m_ui->letter->show();
m_ui->helpBar->setText("<font color=\"green\">Key the letters using any keyborad key as a straight key.</font>");
m_ui->helpBar->setText(tr("<font color=\"green\">Key the letters using any keyborad key as a straight key.</font>"));
m_ui->play->show();
QVBoxLayout *vbox = new QVBoxLayout();

2
modes/PlayMode.cpp

@ -12,7 +12,7 @@ void PlayMode::handleKeyPress(QChar letterPressed)
void PlayMode::switchToMode()
{
m_ui->helpBar->setText("<font color=\"green\">Type letters to hear the keys in morse code</font>");
m_ui->helpBar->setText(tr("<font color=\"green\">Type letters to hear the keys in morse code</font>"));
clear();
setupWPMWidgets();
}

10
modes/ReadMode.cpp

@ -18,7 +18,7 @@ ReadMode::ReadMode(Morse *parent, Ui::MainWindow *ui)
void
ReadMode::switchToMode() {
m_ui->helpBar->setText("<font color=\"green\">Enter text and hit the play button to hear the entire sequence.</font>");
m_ui->helpBar->setText(tr("<font color=\"green\">Enter text and hit the play button to hear the entire sequence.</font>"));
m_ui->play->show();
clear();
@ -90,14 +90,14 @@ ReadMode::fetchNews(const QString &source) {
m_reply = m_manager->get(QNetworkRequest(QUrl(source)));
if (m_reply) {
connect(m_manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(netLoadFinished(QNetworkReply*)));
m_textEdit->setText("Loading news.... Please wait....");
m_textEdit->setText(tr("Loading news.... Please wait...."));
}
}
void
ReadMode::netLoadFinished(QNetworkReply *reply) {
if (reply->error() != QNetworkReply::NoError) {
m_textEdit->setText("Failed to load the news");
m_textEdit->setText(tr("Failed to load the news"));
return;
}
QDomDocument document;
@ -117,10 +117,10 @@ ReadMode::netLoadFinished(QNetworkReply *reply) {
}
m_textEdit->setText(totalText);
} else {
m_textEdit->setText("no news is likely not good news in this case");
m_textEdit->setText(tr("no news is likely not good news in this case"));
}
} else {
m_textEdit->setText("Failed to load the news document");
m_textEdit->setText(tr("Failed to load the news document"));
}
}

5
modes/SpeedTrainingMode.cpp

@ -17,7 +17,7 @@ void SpeedTrainingMode::switchToMode() {
m_ui->letter->show();
m_ui->changeSequence->show();
//m_ui->forModes->show();
m_ui->helpBar->setText("<font color=\"green\">Type the letter you hear ASAP. The keying will get faster.</font>");
m_ui->helpBar->setText(tr("<font color=\"green\">Type the letter you hear ASAP. The keying will get faster.</font>"));
m_ui->play->show();
m_ui->WPM->show();
@ -184,8 +184,7 @@ QTime SpeedTrainingMode::startNextTrainingKey() {
totalWPM += pauseWPM;
}
m_avewpmLabel->setText("All WPM: " + QString().setNum(msToPauseWPM(totalTime/letterCount)) + ", " +
currentLetterGoal + " WPM: " + QString().setNum(msToPauseWPM(thisTime)));
m_avewpmLabel->setText(tr("All WPM: %1, %2 WPM: %3").arg(QString().setNum(msToPauseWPM(totalTime/letterCount))).arg(currentLetterGoal).arg(QString().setNum(msToPauseWPM(thisTime))));
setWPMLabel(msToPauseWPMF((float(m_badCount + m_countWeight)/float(m_goodCount + m_countWeight)) * totalTime/float(letterCount)));
// now pick a random time between 0 and the total of all the averages; averages with a slower speed are more likely

22
modes/TrainingMode.cpp

@ -23,23 +23,23 @@ void TrainingMode::setupSequences() {
QMenu *subMenu = modeMenu->addMenu(tr("Koch"));
QAction *action = subMenu->addAction("Full Koch");
QAction *action = subMenu->addAction(tr("Full Koch"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) KOCH);
action = subMenu->addAction("Koch part 1");
action = subMenu->addAction(tr("Koch part 1"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) KOCH1);
action = subMenu->addAction("Koch part 2");
action = subMenu->addAction(tr("Koch part 2"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) KOCH2);
action = subMenu->addAction("Koch part 3");
action = subMenu->addAction(tr("Koch part 3"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) KOCH3);
action = subMenu->addAction("Koch part 4");
action = subMenu->addAction(tr("Koch part 4"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) KOCH4);
@ -47,7 +47,7 @@ void TrainingMode::setupSequences() {
// Alphabet sequences
subMenu = modeMenu->addMenu(tr("Alphabet"));
action = subMenu->addAction("Full");
action = subMenu->addAction(tr("Full"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) ALPHABET);
@ -93,21 +93,21 @@ void TrainingMode::setupSequences() {
// numbers and symbols
action = modeMenu->addAction("Numbers");
action = modeMenu->addAction(tr("Numbers"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) NUMBERS);
action = modeMenu->addAction("Symbols");
action = modeMenu->addAction(tr("Symbols"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) SYMBOLS);
action = modeMenu->addAction("Everything");
action = modeMenu->addAction(tr("Everything"));
connect(action, SIGNAL(triggered()), m_sequenceSignalMapper, SLOT(map()));
m_sequenceSignalMapper->setMapping(action, (int) EVERYTHING);
// Custom
action = modeMenu->addAction("Custom");
action = modeMenu->addAction(tr("Custom"));
connect(action, SIGNAL(triggered()), this, SLOT(chooseCustomeSequence()));
// Connect the mapper
@ -159,7 +159,7 @@ void TrainingMode::clear() {
m_goodCount = 0;
m_badCount = 0;
m_avewpmLabel->setText("All WPM: [None], K WPM: NEW");
m_avewpmLabel->setText(tr("All WPM: [None], K WPM: NEW"));
if (runningMode() == RUNNING)
playButton(); // pretend a pause was pressed too

16
modes/WordTrainingMode.cpp

@ -26,23 +26,23 @@ void WordTrainingMode::setupWordsMenu() {
QMenu *modeMenu = new QMenu(m_ui->changeWords);
m_ui->changeWords->setMenu(modeMenu);
QAction *action = modeMenu->addAction("Words 1-100");
QAction *action = modeMenu->addAction(tr("Words 1-100"));
connect(action, SIGNAL(triggered()), m_wordSignalMapper, SLOT(map()));
m_wordSignalMapper->setMapping(action, (int) N100);
action = modeMenu->addAction("Words 101-200");
action = modeMenu->addAction(tr("Words 101-200"));
connect(action, SIGNAL(triggered()), m_wordSignalMapper, SLOT(map()));
m_wordSignalMapper->setMapping(action, (int) N200);
action = modeMenu->addAction("Words 201-300");
action = modeMenu->addAction(tr("Words 201-300"));
connect(action, SIGNAL(triggered()), m_wordSignalMapper, SLOT(map()));
m_wordSignalMapper->setMapping(action, (int) N300);
action = modeMenu->addAction("Words 301-400");
action = modeMenu->addAction(tr("Words 301-400"));
connect(action, SIGNAL(triggered()), m_wordSignalMapper, SLOT(map()));
m_wordSignalMapper->setMapping(action, (int) N400);
action = modeMenu->addAction("Words 401-500");
action = modeMenu->addAction(tr("Words 401-500"));
connect(action, SIGNAL(triggered()), m_wordSignalMapper, SLOT(map()));
m_wordSignalMapper->setMapping(action, (int) N500);
@ -54,7 +54,7 @@ void WordTrainingMode::switchToMode() {
m_ui->letter->show();
m_ui->changeWords->show();
m_ui->helpBar->setText("<font color=\"green\">Enter the word you hear and hit enter.</font>");
m_ui->helpBar->setText(tr("<font color=\"green\">Enter the word you hear and hit enter.</font>"));
m_ui->play->show();
setupWordsMenu();
@ -109,7 +109,7 @@ void WordTrainingMode::handleKeyPress(QChar letter) {
m_enteredWord.append(letter);
if ((*(words[m_wordsNumber]))[m_wordnumber].length() == m_enteredWord.length()) {
if (m_wordWasGood) {
m_ui->letter->setText(m_ui->letter->text() + " - <font color=\"green\">GOOD</font>");
m_ui->letter->setText(tr("%1 - <font color=\"green\">GOOD</font>").arg(m_ui->letter->text()));
if (m_maxWord < 10)
m_maxWord += 2;
else
@ -118,7 +118,7 @@ void WordTrainingMode::handleKeyPress(QChar letter) {
m_maxWord = (*(words[m_wordsNumber])).count();
} else {
m_ui->letter->setText(m_ui->letter->text() + " - <font color=\"red\">FAIL (" + (*(words[m_wordsNumber]))[m_wordnumber] + ")</font>");
m_ui->letter->setText(tr("%1 - <font color=\"red\">FAIL (%2)</font>").arg(m_ui->letter->text()).arg((*(words[m_wordsNumber]))[m_wordnumber]));
if (m_maxWord > 1)
m_maxWord--;
}

2
modes/games/GroupGame.cpp

@ -23,7 +23,7 @@ void GroupGame::switchToMode() {
void GroupGame::modeMenus() {
// Create the high scores button
QAction *action = menu()->addAction("HighScores");
QAction *action = menu()->addAction(tr("HighScores"));
connect(action, SIGNAL(triggered()), &m_scores, SLOT(showScores()));
}

1
modes/games/HighScores.cpp

@ -51,6 +51,7 @@ int HighScores::addScore(const QString &name, int score)
void HighScores::showScores() {
HighScoresDialog hsdialog(m_tableName, &m_scores, -1, -1);
hsdialog.setWindowTitle(tr("GamesHigh Scores"));
hsdialog.exec();
}

4
modes/games/KeyInvaders.cpp

@ -92,7 +92,7 @@ void KeyInvaders::switchToMode() {
void KeyInvaders::modeMenus() {
// Create the high scores button
QAction *action = menu()->addAction("HighScores");
QAction *action = menu()->addAction(tr("HighScores"));
connect(action, SIGNAL(triggered()), &m_scores, SLOT(showScores()));
}
@ -110,7 +110,7 @@ void KeyInvaders::setupWidgets() {
m_scene->addRect(-10,0,220,100,whitePen);
m_scene->addRect(-10,maxInvaderY,220,10, greenPen, greenBrush);
QGraphicsTextItem *item = m_scene->addText("Fear The Invaders");
QGraphicsTextItem *item = m_scene->addText(tr("Fear The Invaders"));
item->setZValue(-5);
item->setPos(20,50);

2
modes/games/WordGame.cpp

@ -23,7 +23,7 @@ void WordGame::switchToMode() {
void WordGame::modeMenus() {
// Create the high scores button
QAction *action = menu()->addAction("HighScores");
QAction *action = menu()->addAction(tr("HighScores"));
connect(action, SIGNAL(triggered()), &m_scores, SLOT(showScores()));
}

4
widgets/KeyTimingDisplay.cpp

@ -26,8 +26,8 @@ void KeyTimingDisplay::paintEvent(QPaintEvent *event)
painter.drawRect(0, 0, width(), height());
painter.setPen(Qt::yellow);
painter.drawText(QRect(0, lineHeight, 100, lineHeight), "keyed:");
painter.drawText(QRect(0, lineHeight*2 + spacingHeight, 100, lineHeight), "expected:");
painter.drawText(QRect(0, lineHeight, 100, lineHeight), tr("keyed:"));
painter.drawText(QRect(0, lineHeight*2 + spacingHeight, 100, lineHeight), tr("expected:"));
if (m_keyedTimings.length() > 0) {
int biggestTime = qMax(m_keyedTimings.last(), m_requiredTimings.last());

Loading…
Cancel
Save