translate ShortCut

This commit is contained in:
sasha 2019-03-04 14:09:46 +09:00
parent 19e819e2b4
commit bbfb33555b
2 changed files with 30 additions and 23 deletions

View File

@ -600,10 +600,12 @@ void QtWindow::about()
QString QtWindow::displayShortCut(QString key, QString description)
{
QString space = tr("space");
QString str = QString("<tr>"
"<td>%1</td>"
"<td>%2</td>"
"</tr>").arg( description ).arg( m_settings->value(key).toString());
"</tr>").arg( description ).arg(tr(m_settings->value(key).toString().toUtf8().data()));
return str;
}

View File

@ -1286,23 +1286,23 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/GuiSongDetailsDialog.ui" line="23"/>
<location filename="../src/GuiSongDetailsDialog.ui" line="27"/>
<location filename="../src/GuiSongDetailsDialog.cpp" line="39"/>
<source>Song Details</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/GuiSongDetailsDialog.ui" line="29"/>
<location filename="../src/GuiSongDetailsDialog.ui" line="33"/>
<source>MIDI Channels for left and right hand piano parts:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/GuiSongDetailsDialog.ui" line="41"/>
<location filename="../src/GuiSongDetailsDialog.ui" line="45"/>
<source>Right Hand MIDI Channel:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/GuiSongDetailsDialog.ui" line="64"/>
<location filename="../src/GuiSongDetailsDialog.ui" line="68"/>
<source>Left Hand MIDI Channel:</source>
<translation type="unfinished"></translation>
</message>
@ -1780,7 +1780,7 @@
</message>
<message>
<location filename="../src/QtWindow.cpp" line="588"/>
<source>Copyright(c) Olivier Humbert, 2018 pour la traduction en français (for the French translation).&lt;br&gt;&lt;br&gt;</source>
<source>Copyright(c) Olivier Humbert, 2018 for the French translation.&lt;br&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
@ -1794,83 +1794,88 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="614"/>
<source>PC Keyboard Short Cuts</source>
<location filename="../src/QtWindow.cpp" line="603"/>
<source>space</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="616"/>
<source>PC Keyboard Short Cuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="618"/>
<source>&lt;h2&gt;&lt;center&gt;Keyboard short cuts&lt;/center&gt;&lt;/h2&gt;&lt;p&gt;The following PC keyboard short cuts have been defined.&lt;/p&gt;&lt;center&gt;&lt;table border=&apos;1&apos; cellspacing=&apos;0&apos; cellpadding=&apos;4&apos; &gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="622"/>
<location filename="../src/QtWindow.cpp" line="624"/>
<source>&lt;tr&gt;&lt;th&gt;Action&lt;/th&gt;&lt;th&gt;Key&lt;/th&gt;&lt;/tr&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="628"/>
<location filename="../src/QtWindow.cpp" line="630"/>
<source>Choose the right hand</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="629"/>
<location filename="../src/QtWindow.cpp" line="631"/>
<source>Choose both hands</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="630"/>
<location filename="../src/QtWindow.cpp" line="632"/>
<source>Choose the left Hand</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="631"/>
<location filename="../src/QtWindow.cpp" line="633"/>
<source>Play from start toggle</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="632"/>
<location filename="../src/QtWindow.cpp" line="634"/>
<source>Play Pause Toggle</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="633"/>
<location filename="../src/QtWindow.cpp" line="634"/>
<location filename="../src/QtWindow.cpp" line="635"/>
<location filename="../src/QtWindow.cpp" line="636"/>
<source>Increase the speed by 5%</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="635"/>
<location filename="../src/QtWindow.cpp" line="637"/>
<source>Change to the Next Song</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="636"/>
<location filename="../src/QtWindow.cpp" line="638"/>
<source>Change to the Previous Song</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="637"/>
<location filename="../src/QtWindow.cpp" line="639"/>
<source>Change to the Next Book</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="638"/>
<location filename="../src/QtWindow.cpp" line="640"/>
<source>Change to the Previous Book</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="640"/>
<location filename="../src/QtWindow.cpp" line="642"/>
<source>&lt;tr&gt;&lt;td&gt;Fake Piano keys&lt;/td&gt;&lt;td&gt;X is middle C&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/center&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="661"/>
<location filename="../src/QtWindow.cpp" line="663"/>
<source>Open Midi File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/QtWindow.cpp" line="662"/>
<location filename="../src/QtWindow.cpp" line="664"/>
<source>Midi Files</source>
<translation type="unfinished"></translation>
</message>