* GuiDocument.cpp (less_textclass_avail_desc):

- fix bug 5410 (use translateIfPossible() instead of _() for strings that come from
	  layout files).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27133 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-10-26 09:48:11 +00:00
parent 189c535fca
commit 57e1ab3e63

View File

@ -169,7 +169,8 @@ public:
LayoutFile const & tc2 = LayoutFileList::get()[rhs];
return (tc1.isTeXClassAvailable() && !tc2.isTeXClassAvailable()) ||
(tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() &&
_(tc1.description()) < _(tc2.description()));
translateIfPossible(from_utf8(tc1.description()))
< translateIfPossible(from_utf8(tc2.description())));
}
};