mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
* frontends/qt4/GuiWorkArea.C: make "unknown version" translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15983 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7dc674a7aa
commit
946ede62d0
@ -18,6 +18,7 @@
|
|||||||
#include "QLyXKeySym.h"
|
#include "QLyXKeySym.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
|
#include "gettext.h"
|
||||||
#include "LyXView.h"
|
#include "LyXView.h"
|
||||||
|
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
@ -529,7 +530,7 @@ void GuiWorkArea::doGreyOut(QLPainter & pain)
|
|||||||
// return;
|
// return;
|
||||||
lyxerr << "show banner: " << lyxrc.show_banner << endl;
|
lyxerr << "show banner: " << lyxrc.show_banner << endl;
|
||||||
/// The text to be written on top of the pixmap
|
/// The text to be written on top of the pixmap
|
||||||
string const text = lyx_version ? lyx_version : "unknown";
|
QString const text = lyx_version ? QString(lyx_version) : qt_("unknown version");
|
||||||
string const file = support::libFileSearch("images", "banner", "ppm");
|
string const file = support::libFileSearch("images", "banner", "ppm");
|
||||||
if (file.empty())
|
if (file.empty())
|
||||||
return;
|
return;
|
||||||
@ -559,7 +560,7 @@ void GuiWorkArea::doGreyOut(QLPainter & pain)
|
|||||||
|
|
||||||
pain.setPen(QColor(255, 255, 0));
|
pain.setPen(QColor(255, 255, 0));
|
||||||
pain.setFont(font);
|
pain.setFont(font);
|
||||||
pain.drawText(x, y, toqstr(text));
|
pain.drawText(x, y, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user