]> git.lyx.org Git - features.git/commitdiff
* GuiDocument.cpp: make strings translatable.
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 18 Mar 2011 14:11:36 +0000 (14:11 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 18 Mar 2011 14:11:36 +0000 (14:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37948 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 58e1ea54113a69f6e5f9710ae66764e221d2a8e3..5ebc1a497d451b9cce3c32f933a14024e6c0973c 100644 (file)
@@ -1508,7 +1508,7 @@ void GuiDocument::changeBackgroundColor()
        // set the button color and text
        colorModule->backgroundPB->setStyleSheet(
                colorButtonStyleSheet(newColor));
-       colorModule->backgroundPB->setText(toqstr("Change..."));
+       colorModule->backgroundPB->setText(qt_("&Change..."));
        // save color
        set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
        is_backgroundcolor = true;
@@ -1521,7 +1521,7 @@ void GuiDocument::deleteBackgroundColor()
        // set the button color back to default by setting an epmty StyleSheet
        colorModule->backgroundPB->setStyleSheet(QLatin1String(""));
        // change button text
-       colorModule->backgroundPB->setText(toqstr("Default..."));
+       colorModule->backgroundPB->setText(qt_("&Default..."));
        // save default color (white)
        set_backgroundcolor = rgbFromHexName("#ffffff");
        is_backgroundcolor = false;
@@ -1538,7 +1538,7 @@ void GuiDocument::changeFontColor()
        // set the button color and text
        colorModule->fontColorPB->setStyleSheet(
                colorButtonStyleSheet(newColor));
-       colorModule->fontColorPB->setText(toqstr("Change..."));
+       colorModule->fontColorPB->setText(qt_("&Change..."));
        // save color
        set_fontcolor = rgbFromHexName(fromqstr(newColor.name()));
        is_fontcolor = true;
@@ -1551,7 +1551,7 @@ void GuiDocument::deleteFontColor()
        // set the button color back to default by setting an epmty StyleSheet
        colorModule->fontColorPB->setStyleSheet(QLatin1String(""));
        // change button text
-       colorModule->fontColorPB->setText(toqstr("Default..."));
+       colorModule->fontColorPB->setText(qt_("&Default..."));
        // save default color (black)
        set_fontcolor = rgbFromHexName("#000000");
        is_fontcolor = false;