mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Localization
This commit is contained in:
parent
3c25899eab
commit
1ba785f2c6
@ -315,19 +315,19 @@ bool GuiInclude::isValid()
|
|||||||
int const item = typeCO->currentIndex();
|
int const item = typeCO->currentIndex();
|
||||||
// Are we inputting or including a LyX file?
|
// Are we inputting or including a LyX file?
|
||||||
if (item != 0 && item != 1) {
|
if (item != 0 && item != 1) {
|
||||||
okbutton->setText("OK");
|
okbutton->setText(qt_("OK"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Do we have a LyX filename?
|
// Do we have a LyX filename?
|
||||||
if (!isLyXFileName(fromqstr(fname))) {
|
if (!isLyXFileName(fromqstr(fname))) {
|
||||||
okbutton->setText("OK");
|
okbutton->setText(qt_("OK"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
string const bpath = buffer().filePath();
|
string const bpath = buffer().filePath();
|
||||||
// Path might be relative to current Buffer, so make absolute
|
// Path might be relative to current Buffer, so make absolute
|
||||||
FileName const absfname = support::makeAbsPath(fromqstr(fname), bpath);
|
FileName const absfname = support::makeAbsPath(fromqstr(fname), bpath);
|
||||||
// Set OK button text according to whether file already exists
|
// 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
|
// enable edit button iff file is open in some Buffer
|
||||||
editPB->setEnabled(theBufferList().getBuffer(absfname));
|
editPB->setEnabled(theBufferList().getBuffer(absfname));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user