mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Fix a few more translation probelms for XHTML output.
This commit is contained in:
parent
8831e4a11f
commit
a93a8cd393
@ -171,7 +171,7 @@ int InsetFloatList::plaintext(odocstringstream & os,
|
||||
}
|
||||
|
||||
|
||||
docstring InsetFloatList::xhtml(XHTMLStream &, OutputParams const &) const {
|
||||
docstring InsetFloatList::xhtml(XHTMLStream &, OutputParams const & op) const {
|
||||
FloatList const & floats = buffer().params().documentClass().floats();
|
||||
FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
|
||||
|
||||
@ -193,17 +193,20 @@ docstring InsetFloatList::xhtml(XHTMLStream &, OutputParams const &) const {
|
||||
string const type = cit->second.floattype();
|
||||
if (type == "table") {
|
||||
toctype = "table";
|
||||
toclabel = _("List of Tables");
|
||||
toclabel = translateIfPossible(from_ascii("List of Tables"),
|
||||
op.local_font->language()->lang());
|
||||
} else if (type == "figure") {
|
||||
toctype = "figure";
|
||||
toclabel = _("List of Figures");
|
||||
toclabel = translateIfPossible(from_ascii("List of Figures"),
|
||||
op.local_font->language()->lang());
|
||||
} else {
|
||||
LYXERR0("Unknown Builtin Float!");
|
||||
return docstring();
|
||||
}
|
||||
} else {
|
||||
toctype = to_utf8(getParam("type"));
|
||||
toclabel = buffer().B_(cit->second.listName());
|
||||
toclabel = translateIfPossible(from_utf8(cit->second.listName()),
|
||||
op.local_font->language()->lang());
|
||||
}
|
||||
|
||||
// FIXME Do we need to check if it exists? If so, we need a new
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "FuncRequest.h"
|
||||
#include "FuncStatus.h"
|
||||
#include "IndicesList.h"
|
||||
#include "Language.h"
|
||||
#include "LaTeXFeatures.h"
|
||||
#include "Lexer.h"
|
||||
#include "output_latex.h"
|
||||
@ -698,7 +699,7 @@ docstring InsetPrintIndex::xhtml(XHTMLStream &, OutputParams const & op) const
|
||||
|
||||
Layout const & lay = bp.documentClass().htmlTOCLayout();
|
||||
string const & tocclass = lay.defaultCSSClass();
|
||||
string const tocattr = "class='tochead " + tocclass + "'";
|
||||
string const tocattr = "class='index tochead " + tocclass + "'";
|
||||
|
||||
// we'll use our own stream, because we are going to defer everything.
|
||||
// that's how we deal with the fact that we're probably inside a standard
|
||||
@ -706,9 +707,10 @@ docstring InsetPrintIndex::xhtml(XHTMLStream &, OutputParams const & op) const
|
||||
odocstringstream ods;
|
||||
XHTMLStream xs(ods);
|
||||
|
||||
xs << html::StartTag("div", "class='index'");
|
||||
xs << html::StartTag("div", tocattr);
|
||||
xs << html::StartTag(lay.htmltag(), lay.htmlattr())
|
||||
<< _("Index")
|
||||
<< translateIfPossible(from_ascii("Index"),
|
||||
op.local_font->language()->lang())
|
||||
<< html::EndTag(lay.htmltag());
|
||||
xs << html::StartTag("ul", "class='main'");
|
||||
Font const dummy;
|
||||
|
Loading…
Reference in New Issue
Block a user