X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2Fqt_helpers.cpp;h=92a052048747837b018e33543298cf6052cf0550;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=7f99941b8ba1ef2a0e7823ea33e0e9235ef2439e;hpb=52d9b45b0c557be3372e6833f8981fc4530be634;p=lyx.git diff --git a/src/frontends/qt4/qt_helpers.cpp b/src/frontends/qt4/qt_helpers.cpp index 7f99941b8b..92a0520487 100644 --- a/src/frontends/qt4/qt_helpers.cpp +++ b/src/frontends/qt4/qt_helpers.cpp @@ -112,6 +112,7 @@ void lengthToWidgets(QLineEdit * input, LengthCombo * combo, { combo->setCurrentItem(len.unit()); QLocale loc; + loc.setNumberOptions(QLocale::OmitGroupSeparator); input->setText(loc.toString(Length(len).value())); } @@ -163,6 +164,7 @@ string widgetToDoubleStr(QLineEdit const * input) void doubleToWidget(QLineEdit * input, double const & value, char f, int prec) { QLocale loc; + loc.setNumberOptions(QLocale::OmitGroupSeparator); input->setText(loc.toString(value, f, prec)); } @@ -211,7 +213,7 @@ void rescanTexStyles() return; // FIXME UNICODE frontend::Alert::error(_("Could not update TeX information"), - bformat(_("The script `%s' failed."), from_utf8(command.absFilename()))); + bformat(_("The script `%1$s' failed."), from_utf8(command.absFilename()))); }