Doxygen
Loading...
Searching...
No Matches
language.cpp File Reference
#include "types.h"
#include "message.h"
#include "config.h"
#include "util.h"
#include "language.h"
#include "translator.h"
#include "translator_en.h"
#include "translator_adapter.h"
#include "translator_nl.h"
#include "translator_am.h"
#include "translator_sv.h"
#include "translator_cz.h"
#include "translator_fr.h"
#include "translator_id.h"
#include "translator_it.h"
#include "translator_de.h"
#include "translator_jp.h"
#include "translator_je.h"
#include "translator_es.h"
#include "translator_eo.h"
#include "translator_fi.h"
#include "translator_ru.h"
#include "translator_hr.h"
#include "translator_pl.h"
#include "translator_pt.h"
#include "translator_hi.h"
#include "translator_hu.h"
#include "translator_ke.h"
#include "translator_kr.h"
#include "translator_ro.h"
#include "translator_si.h"
#include "translator_cn.h"
#include "translator_tw.h"
#include "translator_no.h"
#include "translator_br.h"
#include "translator_dk.h"
#include "translator_sk.h"
#include "translator_ua.h"
#include "translator_gr.h"
#include "translator_sr.h"
#include "translator_ca.h"
#include "translator_lt.h"
#include "translator_lv.h"
#include "translator_za.h"
#include "translator_ar.h"
#include "translator_fa.h"
#include "translator_mk.h"
#include "translator_sc.h"
#include "translator_vi.h"
#include "translator_tr.h"
#include "translator_bg.h"
#include "configimpl.h"
+ Include dependency graph for language.cpp:

Go to the source code of this file.

Functions

void setTranslator (OUTPUT_LANGUAGE_t langName)
 

Variables

TranslatortheTranslator =nullptr
 

Function Documentation

◆ setTranslator()

void setTranslator ( OUTPUT_LANGUAGE_t langName)

Definition at line 73 of file language.cpp.

74{
75 switch (langName)
76 {
77 case OUTPUT_LANGUAGE_t::English: theTranslator = new TranslatorEnglish; break;
78 case OUTPUT_LANGUAGE_t::Afrikaans: theTranslator = new TranslatorAfrikaans; break;
79 case OUTPUT_LANGUAGE_t::Arabic: theTranslator = new TranslatorArabic; break;
80 case OUTPUT_LANGUAGE_t::Armenian: theTranslator = new TranslatorArmenian; break;
81 case OUTPUT_LANGUAGE_t::Brazilian: theTranslator = new TranslatorBrazilian; break;
82 case OUTPUT_LANGUAGE_t::Bulgarian: theTranslator = new TranslatorBulgarian; break;
83 case OUTPUT_LANGUAGE_t::Catalan: theTranslator = new TranslatorCatalan; break;
84 case OUTPUT_LANGUAGE_t::Chinese: theTranslator = new TranslatorChinese; break;
85 case OUTPUT_LANGUAGE_t::Chinese_Traditional: theTranslator = new TranslatorChinesetraditional; break;
86 case OUTPUT_LANGUAGE_t::Croatian: theTranslator = new TranslatorCroatian; break;
87 case OUTPUT_LANGUAGE_t::Czech: theTranslator = new TranslatorCzech; break;
88 case OUTPUT_LANGUAGE_t::Danish: theTranslator = new TranslatorDanish; break;
89 case OUTPUT_LANGUAGE_t::Dutch: theTranslator = new TranslatorDutch; break;
90 case OUTPUT_LANGUAGE_t::Esperanto: theTranslator = new TranslatorEsperanto; break;
91 case OUTPUT_LANGUAGE_t::Farsi: theTranslator = new TranslatorPersian; break;
92 case OUTPUT_LANGUAGE_t::Finnish: theTranslator = new TranslatorFinnish; break;
93 case OUTPUT_LANGUAGE_t::French: theTranslator = new TranslatorFrench; break;
94 case OUTPUT_LANGUAGE_t::German: theTranslator = new TranslatorGerman; break;
95 case OUTPUT_LANGUAGE_t::Greek: theTranslator = new TranslatorGreek; break;
96 case OUTPUT_LANGUAGE_t::Hindi: theTranslator = new TranslatorHindi; break;
97 case OUTPUT_LANGUAGE_t::Hungarian: theTranslator = new TranslatorHungarian; break;
98 case OUTPUT_LANGUAGE_t::Indonesian: theTranslator = new TranslatorIndonesian; break;
99 case OUTPUT_LANGUAGE_t::Italian: theTranslator = new TranslatorItalian; break;
100 case OUTPUT_LANGUAGE_t::Japanese: theTranslator = new TranslatorJapanese; break;
101 case OUTPUT_LANGUAGE_t::Japanese_en: theTranslator = new TranslatorJapaneseEn; break;
102 case OUTPUT_LANGUAGE_t::Korean: theTranslator = new TranslatorKorean; break;
103 case OUTPUT_LANGUAGE_t::Korean_en: theTranslator = new TranslatorKoreanEn; break;
104 case OUTPUT_LANGUAGE_t::Latvian: theTranslator = new TranslatorLatvian; break;
105 case OUTPUT_LANGUAGE_t::Lithuanian: theTranslator = new TranslatorLithuanian; break;
106 case OUTPUT_LANGUAGE_t::Macedonian: theTranslator = new TranslatorMacedonian; break;
107 case OUTPUT_LANGUAGE_t::Norwegian: theTranslator = new TranslatorNorwegian; break;
108 case OUTPUT_LANGUAGE_t::Persian: theTranslator = new TranslatorPersian; break;
109 case OUTPUT_LANGUAGE_t::Polish: theTranslator = new TranslatorPolish; break;
110 case OUTPUT_LANGUAGE_t::Portuguese: theTranslator = new TranslatorPortuguese; break;
111 case OUTPUT_LANGUAGE_t::Romanian: theTranslator = new TranslatorRomanian; break;
112 case OUTPUT_LANGUAGE_t::Russian: theTranslator = new TranslatorRussian; break;
113 case OUTPUT_LANGUAGE_t::Serbian: theTranslator = new TranslatorSerbian; break;
114 case OUTPUT_LANGUAGE_t::Serbian_Cyrillic: theTranslator = new TranslatorSerbianCyrillic; break;
115 case OUTPUT_LANGUAGE_t::Slovak: theTranslator = new TranslatorSlovak; break;
116 case OUTPUT_LANGUAGE_t::Slovene: theTranslator = new TranslatorSlovene; break;
117 case OUTPUT_LANGUAGE_t::Spanish: theTranslator = new TranslatorSpanish; break;
118 case OUTPUT_LANGUAGE_t::Swedish: theTranslator = new TranslatorSwedish; break;
119 case OUTPUT_LANGUAGE_t::Turkish: theTranslator = new TranslatorTurkish; break;
120 case OUTPUT_LANGUAGE_t::Ukrainian: theTranslator = new TranslatorUkrainian; break;
121 case OUTPUT_LANGUAGE_t::Vietnamese: theTranslator = new TranslatorVietnamese; break;
122 }
123
124 QCString msg = theTranslator->updateNeededMessage();
125 if (!msg.isEmpty()) ConfigImpl::config_warn("%s", qPrint(msg));
126}
static void config_warn(const char *fmt,...)
Definition configimpl.l:78
This is an alternative implementation of QCString.
Definition qcstring.h:101
Translator * theTranslator
Definition language.cpp:71
void msg(const char *fmt,...)
Definition message.cpp:98
const char * qPrint(const char *s)
Definition qcstring.h:672

References ConfigImpl::config_warn(), msg(), qPrint(), and theTranslator.

Referenced by adjustConfiguration(), and readConfiguration().

Variable Documentation

◆ theTranslator

Translator* theTranslator =nullptr

Definition at line 71 of file language.cpp.

Referenced by DefinitionImpl::_setBriefDescription(), MemberDefImpl::_writeCallerGraph(), MemberDefImpl::_writeCallGraph(), MemberDefImpl::_writeCategoryRelation(), MemberDefImpl::_writeEnumValues(), MemberDefImpl::_writeMultiLineInitializer(), MemberDefImpl::_writeReimplementedBy(), MemberDefImpl::_writeReimplements(), DefinitionImpl::_writeSourceRefList(), Qhp::addContentsItem(), MemberDefImpl::addListReference(), addListReferences(), ClassDefImpl::addListReferences(), FileDefImpl::addListReferences(), GroupDefImpl::addListReferences(), ModuleDefImpl::addListReferences(), NamespaceDefImpl::addListReferences(), RTFGenerator::beginRTFDocument(), buildPageList(), cleanUpDoxygen(), DotGfxHierarchyTable::computeTheGraph(), DotLegendGraph::computeTheGraph(), HtmlHelp::Private::createProjectFile(), dateToString(), encodeForOutput(), HtmlGenerator::endDotGraph(), RTFGenerator::endIndexSection(), LatexDocVisitor::endLink(), ClassDefImpl::endMemberDeclarations(), LayoutParser::endNavIndex(), formatDateTime(), ClassDefImpl::generatedFromFiles(), generateJSNavTree(), CitationManager::generatePage(), FTVHelp::generateTreeViewInline(), generateXML(), getCmhlInfo(), getFmhlInfo(), MemberDefImpl::getLabels(), getMmhlInfo(), getNmhlInfo(), getOverloadDocs(), DocPara::handleDoxyConfig(), HtmlGenerator::init(), Crawlmap::initialize(), ClassDefImpl::internalInsertMember(), isLeadBytes(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), DocHtmlDetails::parse(), recursivelyAddGroupListToTitle(), SearchIndex::setCurrentDoc(), setOutput(), setTranslator(), DirDefImpl::shortTitle(), DocbookGenerator::startExamples(), HtmlGenerator::startExamples(), LatexGenerator::startExamples(), ManGenerator::startExamples(), RTFGenerator::startExamples(), DocbookGenerator::startFile(), HtmlGenerator::startFile(), DocbookGenerator::startMemberDocSimple(), HtmlGenerator::startMemberDocSimple(), LatexGenerator::startMemberDocSimple(), ManGenerator::startMemberDocSimple(), RTFGenerator::startMemberDocSimple(), LayoutParser::startNavEntry(), substituteHtmlKeywords(), substituteKeywords(), substituteLatexKeywords(), ClassDefImpl::title(), ConceptDefImpl::title(), FileDefImpl::title(), NamespaceDefImpl::title(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedExceptionIndex(), writeAnnotatedIndex(), writeAnnotatedInterfaceIndex(), writeAnnotatedStructIndex(), ClassDefImpl::writeAuthorSection(), ConceptDefImpl::writeAuthorSection(), FileDefImpl::writeAuthorSection(), GroupDefImpl::writeAuthorSection(), ModuleDefImpl::writeAuthorSection(), NamespaceDefImpl::writeAuthorSection(), writeBoxMemberList(), ConceptDefImpl::writeBriefDescription(), DirDefImpl::writeBriefDescription(), FileDefImpl::writeBriefDescription(), GroupDefImpl::writeBriefDescription(), ModuleDefImpl::writeBriefDescription(), NamespaceDefImpl::writeBriefDescription(), writeClassMemberIndex(), writeClassMemberIndexFiltered(), VhdlDocGen::writeClassType(), writeClientSearchBox(), ClassDefImpl::writeCollaborationGraph(), writeConceptIndex(), MemberDefImpl::writeDeclaration(), ClassDefImpl::writeDeclarationLink(), ConceptDefImpl::writeDeclarationLink(), ModuleDefImpl::writeDeclarationLink(), writeDefaultQuickLinks(), FileDefImpl::writeDetailedDescription(), DirDefImpl::writeDirectoryGraph(), GroupDefImpl::writeDirs(), ClassLinkedRefMap::writeDocumentation(), ConceptDefImpl::writeDocumentation(), DirDefImpl::writeDocumentation(), DirRelation::writeDocumentation(), FileDefImpl::writeDocumentation(), ModuleDefImpl::writeDocumentation(), PageDefImpl::writeDocumentation(), writeExampleIndex(), writeExamples(), ModuleDefImpl::writeExports(), HtmlGenerator::writeExternalSearchPage(), writeFileIndex(), DirDefImpl::writeFileList(), writeFileMemberIndex(), writeFileMemberIndexFiltered(), GroupDefImpl::writeFiles(), ModuleDefImpl::writeFiles(), writeGraphicalClassHierarchy(), writeGraphicalExceptionHierarchy(), writeGraphicalInterfaceHierarchy(), writeGraphInfo(), GroupDefImpl::writeGroupGraph(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), FileDefImpl::writeIncludedByGraph(), ClassDefImpl::writeIncludeFilesForSlice(), FileDefImpl::writeIncludeGraph(), writeIndex(), ClassDefImpl::writeInheritanceGraph(), DocbookGenerator::writeInheritedSectionTitle(), HtmlGenerator::writeInheritedSectionTitle(), LatexGenerator::writeInheritedSectionTitle(), ManGenerator::writeInheritedSectionTitle(), RTFGenerator::writeInheritedSectionTitle(), writeJavasScriptSearchDataPage(), writeLatexMakefile(), DocbookGenerator::writeLocalToc(), HtmlGenerator::writeLocalToc(), HtmlGenerator::writeLogoAsString(), writeMakeBat(), ClassDefImpl::writeMemberList(), writeModuleIndex(), writeModuleMemberIndex(), writeModuleMemberIndexFiltered(), ClassDefImpl::writeMoreLink(), writeNamespaceIndex(), writeNamespaceMemberIndex(), writeNamespaceMemberIndexFiltered(), writePageIndex(), writePageRef(), MemberList::writePlainDeclarations(), HtmlGenerator::writeSearchInfoStatic(), HtmlGenerator::writeSearchPage(), writeServerSearchBox(), writeSingleFileIndex(), DefinitionImpl::writeSourceDef(), FileDefImpl::writeSourceHeader(), FileDefImpl::writeSourceLink(), DefinitionImpl::writeSourceReffedBy(), DefinitionImpl::writeSourceRefs(), DirDefImpl::writeSubDirList(), ClassDefImpl::writeSummaryLinks(), HtmlCodeGenerator::writeTooltip(), writeTopicIndex(), writeTypeConstraints(), ConfigImpl::writeXMLDoxyfile(), and writeXMLHeader().