Am Montag, den 31.08.2020, 17:21 +0200 schrieb Richard Kimberly Heck:
> + int const item = typeCO->currentIndex();
>
> + // Are we inputting or including a LyX file?
>
> + if (item != 0 && item != 1) {
>
> + okPB->setText("OK");
>
> + return true;
>
> + }
>
> + // Do we have a LyX filename?
>
> + if (!support::isLyXFileName(fromqstr(fname))) {
>
> + okPB->setText("OK");
>
> + return false;
>
> + }
>
> + string const bpath = buffer().filePath();
>
> + QString absfname = makeAbsPath(fname, toqstr(bpath));
>
> + bool const fexists = QFile::exists(absfname);
>
> + okPB->setText(fexists ? "OK" : "Create");Please use localizable strings in all these setText() calls. Jürgen
signature.asc
Description: This is a digitally signed message part
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
