mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Add a default english translation. Fallback to 'en' if locale is set to 'C'.
This commit is contained in:
3028
lang/tomahawk_en.ts
Normal file
3028
lang/tomahawk_en.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/lang">
|
||||
<file>tomahawk_en.qm</file>
|
||||
<file>tomahawk_de.qm</file>
|
||||
<file>tomahawk_sv.qm</file>
|
||||
</qresource>
|
||||
|
@@ -69,10 +69,13 @@ main( int argc, char *argv[] )
|
||||
if ( guard.isPrimaryInstance() )
|
||||
a.init();
|
||||
|
||||
QString locale = QLocale::system().name();
|
||||
QString locale = QLocale::c().name();
|
||||
if ( locale == "C" )
|
||||
locale = "en";
|
||||
QTranslator translator;
|
||||
translator.load( QString( ":/lang/tomahawk_" ) + locale );
|
||||
a.installTranslator( &translator );
|
||||
tDebug() << "Using locale:" << locale;
|
||||
|
||||
if ( argc > 1 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user