added missing tr() functions, WIP German translation, changed --translation in --notranslation so that the translation is on per default
This commit is contained in:
parent
ae250f2c16
commit
b56912b2b3
8 changed files with 255 additions and 217 deletions
|
@ -364,7 +364,7 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
rbtBufferDelayDefault->setText ( GenSndCrdBufferDelayString (
|
rbtBufferDelayDefault->setText ( GenSndCrdBufferDelayString (
|
||||||
FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES,
|
FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES,
|
||||||
", preferred" ) );
|
", " + tr ( "preferred" ) ) );
|
||||||
|
|
||||||
rbtBufferDelaySafe->setText ( GenSndCrdBufferDelayString (
|
rbtBufferDelaySafe->setText ( GenSndCrdBufferDelayString (
|
||||||
FRAME_SIZE_FACTOR_SAFE * SYSTEM_FRAME_SIZE_SAMPLES ) );
|
FRAME_SIZE_FACTOR_SAFE * SYSTEM_FRAME_SIZE_SAMPLES ) );
|
||||||
|
|
16
src/main.cpp
16
src/main.cpp
|
@ -59,7 +59,7 @@ int main ( int argc, char** argv )
|
||||||
bool bShowAnalyzerConsole = false;
|
bool bShowAnalyzerConsole = false;
|
||||||
bool bCentServPingServerInList = false;
|
bool bCentServPingServerInList = false;
|
||||||
bool bNoAutoJackConnect = false;
|
bool bNoAutoJackConnect = false;
|
||||||
bool bUseTranslation = false;
|
bool bUseTranslation = true;
|
||||||
int iNumServerChannels = DEFAULT_USED_NUM_CHANNELS;
|
int iNumServerChannels = DEFAULT_USED_NUM_CHANNELS;
|
||||||
int iMaxDaysHistory = DEFAULT_DAYS_HISTORY;
|
int iMaxDaysHistory = DEFAULT_DAYS_HISTORY;
|
||||||
int iCtrlMIDIChannel = INVALID_MIDI_CH;
|
int iCtrlMIDIChannel = INVALID_MIDI_CH;
|
||||||
|
@ -214,17 +214,14 @@ int main ( int argc, char** argv )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Enable translations -------------------------------------------------
|
// Disable translations ------------------------------------------------
|
||||||
// Undocumented debugging command line argument: Enable translations
|
|
||||||
// (since translation is still WIP, it is not enabled by default but
|
|
||||||
// must be enabled with this undocumented command line flag)
|
|
||||||
if ( GetFlagArgument ( argv,
|
if ( GetFlagArgument ( argv,
|
||||||
i,
|
i,
|
||||||
"--translation", // no short form
|
"-t",
|
||||||
"--translation" ) )
|
"--notranslation" ) )
|
||||||
{
|
{
|
||||||
bUseTranslation = true;
|
bUseTranslation = false;
|
||||||
tsConsole << "- translations enabled" << endl;
|
tsConsole << "- translations disabled" << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -680,6 +677,7 @@ QString UsageArguments ( char **argv )
|
||||||
" -i, --inifile initialization file name\n"
|
" -i, --inifile initialization file name\n"
|
||||||
" -n, --nogui disable GUI\n"
|
" -n, --nogui disable GUI\n"
|
||||||
" -p, --port set your local port number\n"
|
" -p, --port set your local port number\n"
|
||||||
|
" -t, --notranslation disable translation (use englisch language)\n"
|
||||||
" -v, --version output version information and exit\n"
|
" -v, --version output version information and exit\n"
|
||||||
"\nServer only:\n"
|
"\nServer only:\n"
|
||||||
" -a, --servername server name, required for HTML status\n"
|
" -a, --servername server name, required for HTML status\n"
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -1128,6 +1128,11 @@
|
||||||
<source>Default (North America)</source>
|
<source>Default (North America)</source>
|
||||||
<translation>Por defecto (Norteamérica)</translation>
|
<translation>Por defecto (Norteamérica)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||||
|
<source>preferred</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||||
|
@ -1456,6 +1461,11 @@
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>CHelpMenu</name>
|
<name>CHelpMenu</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../util.cpp" line="835"/>
|
||||||
|
<source>&Help</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../util.cpp" line="840"/>
|
<location filename="../../util.cpp" line="840"/>
|
||||||
<location filename="../../util.cpp" line="845"/>
|
<location filename="../../util.cpp" line="845"/>
|
||||||
|
|
|
@ -1136,6 +1136,11 @@
|
||||||
<source>Default (North America)</source>
|
<source>Default (North America)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||||
|
<source>preferred</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||||
|
@ -1464,6 +1469,11 @@
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>CHelpMenu</name>
|
<name>CHelpMenu</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../util.cpp" line="835"/>
|
||||||
|
<source>&Help</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../util.cpp" line="840"/>
|
<location filename="../../util.cpp" line="840"/>
|
||||||
<location filename="../../util.cpp" line="845"/>
|
<location filename="../../util.cpp" line="845"/>
|
||||||
|
|
|
@ -1136,6 +1136,11 @@
|
||||||
<source>Default (North America)</source>
|
<source>Default (North America)</source>
|
||||||
<translation>Servidor Padrão (America do Norte)</translation>
|
<translation>Servidor Padrão (America do Norte)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||||
|
<source>preferred</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||||
|
@ -1464,6 +1469,11 @@
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>CHelpMenu</name>
|
<name>CHelpMenu</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../util.cpp" line="835"/>
|
||||||
|
<source>&Help</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../util.cpp" line="840"/>
|
<location filename="../../util.cpp" line="840"/>
|
||||||
<location filename="../../util.cpp" line="845"/>
|
<location filename="../../util.cpp" line="845"/>
|
||||||
|
|
|
@ -832,7 +832,7 @@ void CMusProfDlg::OnSkillActivated ( int iCntryListItem )
|
||||||
|
|
||||||
|
|
||||||
// Help menu -------------------------------------------------------------------
|
// Help menu -------------------------------------------------------------------
|
||||||
CHelpMenu::CHelpMenu ( const bool bIsClient, QWidget* parent ) : QMenu ( "&Help", parent )
|
CHelpMenu::CHelpMenu ( const bool bIsClient, QWidget* parent ) : QMenu ( tr ( "&Help" ), parent )
|
||||||
{
|
{
|
||||||
// standard help menu consists of about and what's this help
|
// standard help menu consists of about and what's this help
|
||||||
if ( bIsClient )
|
if ( bIsClient )
|
||||||
|
|
Loading…
Reference in a new issue