[LyX/master] Localization

Richard Kimberly Heck rikiheck at lyx.org
Tue Sep 1 05:16:21 UTC 2020


commit 1ba785f2c6ed0c2dc70b4f046571c425d3eb3e49
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Tue Sep 1 01:41:10 2020 -0400

    Localization
---
 src/frontends/qt/GuiInclude.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiInclude.cpp b/src/frontends/qt/GuiInclude.cpp
index 5949d17..61a9a55 100644
--- a/src/frontends/qt/GuiInclude.cpp
+++ b/src/frontends/qt/GuiInclude.cpp
@@ -315,19 +315,19 @@ bool GuiInclude::isValid()
 	int const item = typeCO->currentIndex();
 	// Are we inputting or including a LyX file?
 	if (item != 0 && item != 1) {
-		okbutton->setText("OK");
+		okbutton->setText(qt_("OK"));
 		return true;
 	}
 	// Do we have a LyX filename?
 	if (!isLyXFileName(fromqstr(fname))) {
-		okbutton->setText("OK");
+		okbutton->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
-	okbutton->setText(absfname.exists() ? "OK" : "Create");
+	okbutton->setText(absfname.exists() ? qt_("OK") : qt_("Create"));
 	// enable edit button iff file is open in some Buffer
 	editPB->setEnabled(theBufferList().getBuffer(absfname));
 	return true;


More information about the lyx-cvs mailing list