FAUST compiler  0.9.9.6b8
Functions
doc_lang.hh File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <string>
Include dependency graph for doc_lang.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void loadTranslationFile (const string &lang)
 

Function Documentation

void loadTranslationFile ( const string &  lang)

First ensure that the default file is loaded a least.

Then try and load the target file.

Definition at line 76 of file doc_lang.cpp.

References gDocTextsDefaultFile, importDocStrings(), initDocAutodoc(), initDocMath(), initDocMetadatas(), and initDocNotice().

Referenced by printDoc().

77 {
78  initDocMath();
79  initDocNotice();
82 
85 
87  if ( ! lang.empty() ) {
88  importDocStrings( "mathdoctexts-" + lang + ".txt" );
89  }
90 }
static const string gDocTextsDefaultFile
Definition: doc_lang.cpp:53
static void importDocStrings(const string &filename)
Feed the content of doc texts maps from a file.
Definition: doc_lang.cpp:113
void initDocMetadatas()
Dispatch initialization of metadatas container.
void initDocNotice()
Dispatch initialization of notice containers, after default notice file loading.
Definition: doc_notice.cpp:134
void initDocMath()
Dispatch initialization of autodoc container.
Definition: lateq.cpp:468
void initDocAutodoc()
Dispatch initialization of autodoc container.

Here is the call graph for this function:

Here is the caller graph for this function: