* src/insets/insetpagebreak.C:

* src/insets/insetpagebreak.h: fix localization


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16039 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-11-25 16:52:09 +00:00
parent 82b0e98d54
commit f96236b5f5
2 changed files with 6 additions and 7 deletions

View File

@ -53,8 +53,6 @@ void InsetPagebreak::metrics(MetricsInfo & mi, Dimension & dim) const
void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
{
docstring const label = _(insetLabel());
LyXFont font;
font.setColor(LColor::pagebreak);
font.decSize();
@ -62,12 +60,12 @@ void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
int w = 0;
int a = 0;
int d = 0;
theFontMetrics(font).rectText(label, w, a, d);
theFontMetrics(font).rectText(insetLabel(), w, a, d);
int const text_start = int(x + (dim_.wid - w) / 2);
int const text_end = text_start + w;
pi.pain.rectText(text_start, y + d, label, font,
pi.pain.rectText(text_start, y + d, insetLabel(), font,
LColor::none, LColor::none);
pi.pain.line(x, y, text_start, y,

View File

@ -14,6 +14,7 @@
#include "inset.h"
#include "gettext.h"
namespace lyx {
@ -45,7 +46,7 @@ public:
bool display() const { return true; }
virtual std::string insetLabel() const { return "Page Break"; }
virtual docstring insetLabel() const { return _("Page Break"); }
virtual std::string getCmdName() const { return "\\newpage"; }
@ -61,7 +62,7 @@ class InsetClearPage : public InsetPagebreak {
public:
InsetClearPage() {}
std::string insetLabel() const { return "Clear Page"; }
docstring insetLabel() const { return _("Clear Page"); }
std::string getCmdName() const { return "\\clearpage"; }
@ -77,7 +78,7 @@ class InsetClearDoublePage : public InsetPagebreak {
public:
InsetClearDoublePage() {}
std::string insetLabel() const { return "Clear Double Page"; }
docstring insetLabel() const { return _("Clear Double Page"); }
std::string getCmdName() const { return "\\cleardoublepage"; }