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 (
|
||||
FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES,
|
||||
", preferred" ) );
|
||||
", " + tr ( "preferred" ) ) );
|
||||
|
||||
rbtBufferDelaySafe->setText ( GenSndCrdBufferDelayString (
|
||||
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 bCentServPingServerInList = false;
|
||||
bool bNoAutoJackConnect = false;
|
||||
bool bUseTranslation = false;
|
||||
bool bUseTranslation = true;
|
||||
int iNumServerChannels = DEFAULT_USED_NUM_CHANNELS;
|
||||
int iMaxDaysHistory = DEFAULT_DAYS_HISTORY;
|
||||
int iCtrlMIDIChannel = INVALID_MIDI_CH;
|
||||
|
@ -214,17 +214,14 @@ int main ( int argc, char** argv )
|
|||
}
|
||||
|
||||
|
||||
// Enable 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)
|
||||
// Disable translations ------------------------------------------------
|
||||
if ( GetFlagArgument ( argv,
|
||||
i,
|
||||
"--translation", // no short form
|
||||
"--translation" ) )
|
||||
"-t",
|
||||
"--notranslation" ) )
|
||||
{
|
||||
bUseTranslation = true;
|
||||
tsConsole << "- translations enabled" << endl;
|
||||
bUseTranslation = false;
|
||||
tsConsole << "- translations disabled" << endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -680,6 +677,7 @@ QString UsageArguments ( char **argv )
|
|||
" -i, --inifile initialization file name\n"
|
||||
" -n, --nogui disable GUI\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"
|
||||
"\nServer only:\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>
|
||||
<translation>Por defecto (Norteamérica)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||
<source>preferred</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||
|
@ -1456,6 +1461,11 @@
|
|||
</context>
|
||||
<context>
|
||||
<name>CHelpMenu</name>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="835"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="840"/>
|
||||
<location filename="../../util.cpp" line="845"/>
|
||||
|
|
|
@ -1136,6 +1136,11 @@
|
|||
<source>Default (North America)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||
<source>preferred</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||
|
@ -1464,6 +1469,11 @@
|
|||
</context>
|
||||
<context>
|
||||
<name>CHelpMenu</name>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="835"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="840"/>
|
||||
<location filename="../../util.cpp" line="845"/>
|
||||
|
|
|
@ -1136,6 +1136,11 @@
|
|||
<source>Default (North America)</source>
|
||||
<translation>Servidor Padrão (America do Norte)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="367"/>
|
||||
<source>preferred</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="457"/>
|
||||
<location filename="../../clientsettingsdlg.cpp" line="461"/>
|
||||
|
@ -1464,6 +1469,11 @@
|
|||
</context>
|
||||
<context>
|
||||
<name>CHelpMenu</name>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="835"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../util.cpp" line="840"/>
|
||||
<location filename="../../util.cpp" line="845"/>
|
||||
|
|
|
@ -832,7 +832,7 @@ void CMusProfDlg::OnSkillActivated ( int iCntryListItem )
|
|||
|
||||
|
||||
// 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
|
||||
if ( bIsClient )
|
||||
|
|
Loading…
Reference in a new issue