]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / qt_helpers.cpp
index 7f99941b8ba1ef2a0e7823ea33e0e9235ef2439e..92a052048747837b018e33543298cf6052cf0550 100644 (file)
@@ -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())));
 }