if (inset) {
if (!runparams.for_toc || inset->isInToc()) {
OutputParams np = runparams;
+ np.local_font = &font;
if (!inset->getLayout().htmlisblock())
np.html_in_par = true;
retval += inset->xhtml(xs, np);
#include "Cursor.h"
#include "DispatchResult.h"
#include "InsetLabel.h"
+#include "Language.h"
#include "LaTeXFeatures.h"
#include "LyX.h"
#include "OutputParams.h"
}
-docstring InsetRef::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring InsetRef::xhtml(XHTMLStream & xs, OutputParams const & op) const
{
docstring const & ref = getParam("reference");
InsetLabel const * il = buffer().insetLabel(ref);
display_string = value;
else if (cmd == "pageref" || cmd == "vpageref")
// 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");
+ display_string = translateIfPossible(from_ascii("elsewhere"),
+ op.local_font->language()->lang());
else if (cmd == "eqref")
display_string = '(' + value + ')';
else if (cmd == "formatted"
- Reset counters properly when outputting included XHTML files (bug 8598).
-- Translate "elsewhere" to the Buffer language when outputting XHTML.
- This is not quite right, but it is better than translating it to the
- UI language (partial fix for #8587).
+- Translate "elsewhere" when outputting XHTML (bug 8587).
* USER INTERFACE