make index label translatable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20318 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-09-16 14:43:10 +00:00
parent 2876db148e
commit 6258199fe8

View File

@ -36,7 +36,7 @@ docstring const InsetIndex::getScreenLabel(Buffer const &) const
{
size_t const maxLabelChars = 25;
docstring label = "Idx:" + getParam("name");
docstring label = _("Idx: ") + getParam("name");
if (label.size() > maxLabelChars) {
label.erase(maxLabelChars - 3);
label += "...";