1
0
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:
Christian Muehlhaeuser
2011-11-22 07:37:09 +01:00
parent f023bb2bc7
commit b62dd8e96a
3 changed files with 3033 additions and 1 deletions

3028
lang/tomahawk_en.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -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>

View File

@@ -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 )
{