]> git.lyx.org Git - features.git/commitdiff
Localization
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 1 Sep 2020 05:41:10 +0000 (01:41 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 1 Sep 2020 05:44:39 +0000 (01:44 -0400)
(cherry picked from commit 1ba785f2c6ed0c2dc70b4f046571c425d3eb3e49)

src/frontends/qt4/GuiInclude.cpp

index 7bc512bb19adb04218854e714867b64346d0edf0..1abfd7b273c2829d70c602100835dc2208ddaa07 100644 (file)
@@ -314,19 +314,19 @@ bool GuiInclude::isValid()
        int const item = typeCO->currentIndex();
        // Are we inputting or including a LyX file?
        if (item != 0 && item != 1) {
-               okPB->setText("OK");
+               okPB->setText(qt_("OK"));
                return true;
        }
        // Do we have a LyX filename?
        if (!isLyXFileName(fromqstr(fname))) {
-               okPB->setText("OK");
+               okPB->setText(qt_("OK"));
                return false;
        }
        string const bpath = buffer().filePath();
        // Path might be relative to current Buffer, so make absolute
        FileName const absfname = support::makeAbsPath(fromqstr(fname), bpath);
        // Set OK button text according to whether file already exists
-       okPB->setText(absfname.exists() ? "OK" : "Create");
+       okPB->setText(absfname.exists() ? qt_("OK") : qt_("Create"));
        // enable edit button iff file is open in some Buffer
        editPB->setEnabled(theBufferList().getBuffer(absfname));
        return true;