Skip to content

Commit

Permalink
Fixed for index.hhp output when using template engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed May 28, 2016
1 parent d38d33c commit e629fc6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/context.cpp
Expand Up @@ -35,6 +35,7 @@
#include "docparser.h"
#include "htmlgen.h"
#include "htmldocvisitor.h"
#include "htmlhelp.h"
#include "latexgen.h"
#include "latexdocvisitor.h"
#include "dot.h"
Expand Down Expand Up @@ -1006,6 +1007,10 @@ class TranslateContext::Private
{
return theTranslator->trExamplesDescription();
}
TemplateVariant langString() const
{
return HtmlHelp::getLanguageString();
}
Private()
{
static bool init=FALSE;
Expand Down Expand Up @@ -1195,6 +1200,8 @@ class TranslateContext::Private
s_inst.addProperty("extendsClass", &Private::extendsClass);
//%% string examplesDescription
s_inst.addProperty("examplesDescription",&Private::examplesDescription);
//%% string langstring
s_inst.addProperty("langString", &Private::langString);

init=TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion src/htmlhelp.cpp
Expand Up @@ -447,7 +447,7 @@ void HtmlHelp::initialize()
}


static QCString getLanguageString()
QCString HtmlHelp::getLanguageString()
{
if (!theTranslator->idLanguage().isEmpty())
{
Expand Down
1 change: 1 addition & 0 deletions src/htmlhelp.h
Expand Up @@ -84,6 +84,7 @@ class HtmlHelp : public IndexIntf
void addIndexFile(const char *name);
void addImageFile(const char *);
void addStyleSheetFile(const char *) {}
static QCString getLanguageString();

private:
friend class HtmlHelpIndex;
Expand Down
4 changes: 2 additions & 2 deletions templates/html/htmljsmenudata.tpl
Expand Up @@ -36,9 +36,9 @@ var menudata={children:[
{% if fileList %}
,{text:'{{ tr.files }}',url:'files{{ config.HTML_FILE_EXTENSION }}',children[
{text:'{{ tr.fileList }}',url:'files{{ config.HTML_FILE_EXTENSION }}'}
{% if fileMemberIndex.all %}
{% if globalsIndex.all %}
,{text:'{{ tr.fileMembers }}',url'globals{{ config.HTML_FILE_EXTENSION }}',children:[
{% with page=fileMembersIndex %}
{% with page=globalsIndex %}
{% include 'htmljsmenumembersdata.tpl' %}
{% endwith %}
]}
Expand Down

0 comments on commit e629fc6

Please sign in to comment.