mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Translate labels for float:algorithm, float:figure and float:table.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4079 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9383796455
commit
1a5a664e44
@ -1,3 +1,7 @@
|
||||
2002-04-26 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* insetfloat.C (c-tor, wide): translate the name of the float.
|
||||
|
||||
2002-04-22 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* insetcite.[Ch]: take Herbert's patch to give WYSIWYG citation labels
|
||||
|
@ -99,11 +99,25 @@ using std::endl;
|
||||
//
|
||||
// Lgb
|
||||
|
||||
namespace {
|
||||
|
||||
string floatname(string const & type)
|
||||
{
|
||||
FloatList::const_iterator it = floatList[type];
|
||||
if (it == floatList.end())
|
||||
return type;
|
||||
|
||||
return _(it->second.name());
|
||||
}
|
||||
|
||||
} // namespace anon
|
||||
|
||||
|
||||
InsetFloat::InsetFloat(BufferParams const & bp, string const & type)
|
||||
: InsetCollapsable(bp), wide_(false)
|
||||
{
|
||||
string lab(_("float:"));
|
||||
lab += type;
|
||||
string lab(_("float: "));
|
||||
lab += floatname(type);
|
||||
setLabel(lab);
|
||||
LyXFont font(LyXFont::ALL_SANE);
|
||||
font.decSize();
|
||||
@ -294,16 +308,14 @@ string const & InsetFloat::placement() const
|
||||
void InsetFloat::wide(bool w)
|
||||
{
|
||||
wide_ = w;
|
||||
if (wide_) {
|
||||
string lab(_("float:"));
|
||||
lab += floatType_;
|
||||
|
||||
string lab(_("float:"));
|
||||
lab += floatname(floatType_);
|
||||
|
||||
if (wide_)
|
||||
lab += "*";
|
||||
setLabel(lab);
|
||||
} else {
|
||||
string lab(_("float:"));
|
||||
lab += floatType_;
|
||||
setLabel(lab);
|
||||
}
|
||||
|
||||
setLabel(lab);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user