Skip to content

Commit

Permalink
Re-enable system locale support
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 5, 2016
1 parent 19a04cb commit e4f2feb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ int main( int argc, char ** argv )

QTranslator qfieldTranslator;
QTranslator qtTranslator;
qWarning() << qfieldTranslator.load( QLocale( "de_DE" ), "qfield", "_", ":/" );
qWarning() << qtTranslator.load( QLocale( "de_DE" ), "qt", "_", ":/" );
qWarning() << qtTranslator.translate( "MessageDialog", "Cancel" );
qfieldTranslator.load( QLocale(), "qfield", "_", ":/" );
qtTranslator.load( QLocale(), "qt", "_", ":/" );
app.installTranslator( &qtTranslator );
app.installTranslator( &qfieldTranslator );

Expand Down

0 comments on commit e4f2feb

Please sign in to comment.