* src/frontends/qt4/QParagraph.cpp:

* src/frontends/qt4/QParagraph.h: fix untranslateable label in the
	paragraph dialog


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19017 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-07-09 19:01:27 +00:00
parent 72535633e3
commit 1f2f2892c4
2 changed files with 8 additions and 8 deletions

View File

@ -83,11 +83,11 @@ QParagraphDialog::QParagraphDialog(QParagraph * form)
radioMap[LYX_ALIGN_RIGHT] = alignRightRB;
radioMap[LYX_ALIGN_CENTER] = alignCenterRB;
labelMap[LYX_ALIGN_LAYOUT] = "Use Paragraph's Default Alignment";
labelMap[LYX_ALIGN_BLOCK] = "Justified";
labelMap[LYX_ALIGN_LEFT] = "Left";
labelMap[LYX_ALIGN_RIGHT] = "Right";
labelMap[LYX_ALIGN_CENTER] = "Center";
labelMap[LYX_ALIGN_LAYOUT] = _("Use Paragraph's Default Alignment");
labelMap[LYX_ALIGN_BLOCK] = _("Justified");
labelMap[LYX_ALIGN_LEFT] = _("Left");
labelMap[LYX_ALIGN_RIGHT] = _("Right");
labelMap[LYX_ALIGN_CENTER] = _("Center");
}
@ -123,10 +123,10 @@ void QParagraphDialog::checkAlignmentRadioButtons() {
it->second->setEnabled((align & alignPossible) ||
(align == LYX_ALIGN_LAYOUT));
}
std::string label = labelMap[LYX_ALIGN_LAYOUT];
docstring label = labelMap[LYX_ALIGN_LAYOUT];
if (!form_->controller().haveMulitParSelection())
label += (" (" + labelMap[form_->controller().alignDefault()] + ")");
alignDefaultRB->setText(qt_(label));
alignDefaultRB->setText(toqstr(label));
}

View File

@ -44,7 +44,7 @@ private:
QParagraph * form_;
typedef std::map<LyXAlignment, QRadioButton *> QPRadioMap;
QPRadioMap radioMap;
typedef std::map<LyXAlignment, std::string> QPAlignmentLabels;
typedef std::map<LyXAlignment, docstring> QPAlignmentLabels;
QPAlignmentLabels labelMap;
protected Q_SLOTS: