mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Make things a little better with respect to bug #8587.
Is it possible to figure out the current language from within an InsetRef? If so, how?
This commit is contained in:
parent
2c75ad0294
commit
fbe9e96b5e
@ -222,8 +222,10 @@ docstring InsetRef::xhtml(XHTMLStream & xs, OutputParams const &) const
|
||||
// normally, would be "ref on page #", but we have no pages
|
||||
display_string = value;
|
||||
else if (cmd == "pageref" || cmd == "vpageref")
|
||||
// normally would be "on page #", but we have no pages
|
||||
display_string = _("elsewhere");
|
||||
// normally would be "on page #", but we have no pages.
|
||||
// FIXME this is wrong, as it should be the current language,
|
||||
// but it is better than _(), which is what we had before.
|
||||
display_string = buffer().B_("elsewhere");
|
||||
else if (cmd == "eqref")
|
||||
display_string = '(' + value + ')';
|
||||
else if (cmd == "formatted")
|
||||
|
Loading…
Reference in New Issue
Block a user