Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 17, 2017
2 parents a6d0a94 + c48cb77 commit e9c3137
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OMEdit/OMEditGUI/OMEditApplication.cpp
Expand Up @@ -82,8 +82,10 @@ OMEditApplication::OMEditApplication(int &argc, char **argv)
QLocale settingsLocale = QLocale(pSettings->value("language").toString());
settingsLocale = settingsLocale.name() == "C" ? pSettings->value("language").toLocale() : settingsLocale;
QString locale = settingsLocale.name().isEmpty() ? QLocale::system().name() : settingsLocale.name();
/* set the default locale of the application so that QSpinBox etc show values according to the locale. */
QLocale::setDefault(settingsLocale);
/* Set the default locale of the application so that QSpinBox etc show values according to the locale.
* Set OMEdit locale to C so that we get dot as decimal separator instead of comma.
*/
QLocale::setDefault(QLocale::c());

QString translationDirectory = omhome + QString("/share/omedit/nls");
// install Qt's default translations
Expand Down

0 comments on commit e9c3137

Please sign in to comment.