Skip to content

Commit

Permalink
Merge pull request #10769 from albert-github/feature/bug_projectname_…
Browse files Browse the repository at this point in the history
…trdocumentation

Flexibility for trDocumentation  in respect to the ProjectName
  • Loading branch information
doxygen committed Mar 28, 2024
2 parents c8d625b + b6a6eae commit 906bb5f
Show file tree
Hide file tree
Showing 44 changed files with 86 additions and 94 deletions.
2 changes: 1 addition & 1 deletion src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4791,7 +4791,7 @@ static void writeIndex(OutputList &ol)
{
ol.startHeaderSection();
ol.startTitleHead(QCString());
ol.parseText(projPrefix+theTranslator->trDocumentation());
ol.parseText(theTranslator->trDocumentation(projectName));
headerWritten = TRUE;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/translator.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Translator

// index titles (the project name is prepended for these)

virtual QCString trDocumentation() = 0;
virtual QCString trDocumentation(const QCString projName) = 0;
virtual QCString trModuleIndex() = 0;
virtual QCString trHierarchicalIndex() = 0;
virtual QCString trCompoundIndex() = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/translator_am.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ class TranslatorArmenian : public TranslatorAdapter_1_8_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return " - Փաստագրություն"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + " - Փաստագրություն"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_ar.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "التوثيق"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "التوثيق"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_bg.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ class TranslatorBulgarian : public TranslatorAdapter_1_9_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Документация"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документация"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
9 changes: 2 additions & 7 deletions src/translator_br.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,8 @@ class TranslatorBrazilian : public Translator
{ return "Lista de todos os módulos:"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{
// TODO In the future, I think I'll suggest the replacement of this
// method to something like trDocumentationOf(projPrefix). This will allow
// the latin construction "Documentação de ProjA"
return "Documentação";
}
QCString trDocumentation(const QCString projName) override
{ return "Documentação" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_ca.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ class TranslatorCatalan : public TranslatorAdapter_1_8_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return ": Documentació"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + ": Documentació"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_cn.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ class TranslatorChinese : public Translator
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "文档"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "文档"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ class TranslatorCzech : public TranslatorAdapter_1_9_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentace"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentace"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_de.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ class TranslatorGerman : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentation"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentation"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_dk.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ class TranslatorDanish : public TranslatorAdapter_1_8_0
{ return "Her er en liste over alle moduler:"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentation"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentation"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ class TranslatorEnglish : public Translator
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Documentation"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentation"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_eo.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ class TranslatorEsperanto : public TranslatorAdapter_1_8_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentado"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentado"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
7 changes: 2 additions & 5 deletions src/translator_es.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,8 @@ class TranslatorSpanish : public TranslatorAdapter_1_9_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{
// TODO: Replace with something like trDocumentationOf(projName).
// This will allow the latin construction "Documentación de projName"
return "documentación"; }
QCString trDocumentation(const QCString projName) override
{ return "Documentación" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_fa.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "مستندات"; }
QCString trDocumentation(const QCString projName) override
{ return "مستندات" + (!projName.isEmpty()?" " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_fi.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ class TranslatorFinnish : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentaatio"; } // "Documentation"
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentaatio"; } // "Documentation"

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ class TranslatorFrench : public TranslatorAdapter_1_9_5
{ return "Liste de tous les modules :"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Documentation"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentation"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_gr.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ class TranslatorGreek : public TranslatorAdapter_1_11_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Τεκμηρίωση"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Τεκμηρίωση"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_hi.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ class TranslatorHindi : public TranslatorAdapter_1_9_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "दस्तावेज़ीकरण"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "दस्तावेज़ीकरण"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_hr.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ class TranslatorCroatian : public TranslatorAdapter_1_8_2
QCString trModulesDescription() override
{ return "Popis svih modula:"; }

QCString trDocumentation() override
{ return "Dokumentacija"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }
QCString trModuleIndex() override
{ return "Kazalo modula"; }
QCString trHierarchicalIndex() override
Expand Down
4 changes: 2 additions & 2 deletions src/translator_hu.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ class TranslatorHungarian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentáció"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentáció"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentasi"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentasi"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_it.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ class TranslatorItalian : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Documentazione"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentazione"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_jp.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ class TranslatorJapanese : public TranslatorAdapter_1_8_15
{ return "全モジュールの一覧です。"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "詳解"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "詳解"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_kr.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ class TranslatorKorean : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "문서화"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "문서화"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_lt.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ class TranslatorLithuanian : public TranslatorAdapter_1_4_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentacija"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_lv.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ class TranslatorLatvian : public TranslatorAdapter_1_8_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentācija"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentācija"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_mk.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ class TranslatorMacedonian : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Документација"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документација"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ class TranslatorDutch : public Translator
QCString trModulesDescription() override
{ return "Hieronder volgt de lijst met alle modules:"; }

QCString trDocumentation() override
{ return "Documentatie"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentatie"; }
QCString trModuleIndex() override
{ return "Module Index"; }
QCString trHierarchicalIndex() override
Expand Down
4 changes: 2 additions & 2 deletions src/translator_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentasjon"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentasjon"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_pl.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ class TranslatorPolish : public TranslatorAdapter_1_11_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Dokumentacja"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacja"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_pt.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ class TranslatorPortuguese : public Translator


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Documentação"; }
QCString trDocumentation(const QCString projName) override
{ return "Documentação" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_ro.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ class TranslatorRomanian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Documentaţie"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentaţie"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_ru.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ class TranslatorRussian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Документация"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документация"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ class TranslatorSerbianCyrillic : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation() override
{ return "Документација"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документација"; }

/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
Expand Down
4 changes: 2 additions & 2 deletions src/translator_si.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class TranslatorSlovene : public TranslatorAdapter_1_4_6
{ return "Seznam strani z dodatnimi opisi:"; }
QCString trModulesDescription() override
{ return "Seznam modulov:"; }
QCString trDocumentation() override
{ return "Dokumentacija"; }
QCString trDocumentation(const QCString projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }
QCString trModuleIndex() override
{ return "seznam modulov"; }
QCString trHierarchicalIndex() override
Expand Down

0 comments on commit 906bb5f

Please sign in to comment.