Orb/Doxygen/src/translatordecoder.h
changeset 0 42188c7ea2d9
child 4 468f4c8d3d5b
equal deleted inserted replaced
-1:000000000000 0:42188c7ea2d9
       
     1 /******************************************************************************
       
     2  *
       
     3  * 
       
     4  *
       
     5  * Copyright (C) 1997-2008 by Dimitri van Heesch.
       
     6  *
       
     7  * Permission to use, copy, modify, and distribute this software and its
       
     8  * documentation under the terms of the GNU General Public License is hereby 
       
     9  * granted. No representations are made about the suitability of this software 
       
    10  * for any purpose. It is provided "as is" without express or implied warranty.
       
    11  * See the GNU General Public License for more details.
       
    12  *
       
    13  * Documents produced by Doxygen are derivative works derived from the
       
    14  * input used in their production; they are not affected by this license.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef TRANSLATORDECODER_H
       
    19 #define TRANSLATORDECODER_H
       
    20 
       
    21 #include "translator.h"
       
    22 #include "portable.h"
       
    23 
       
    24 class TranslatorDecoder : public Translator
       
    25 {
       
    26   public:
       
    27 
       
    28     TranslatorDecoder(Translator *translator) : m_translator(translator) 
       
    29     {
       
    30       m_toUtf8   = portable_iconv_open("UTF-8",translator->idLanguageCharset()); 
       
    31       m_fromUtf8 = portable_iconv_open(translator->idLanguageCharset(),"UTF-8"); 
       
    32     }
       
    33     virtual ~TranslatorDecoder() 
       
    34     { 
       
    35       if (m_toUtf8!=(void *)(-1))   portable_iconv_close(m_toUtf8);
       
    36       if (m_fromUtf8!=(void *)(-1)) portable_iconv_close(m_fromUtf8);
       
    37       delete m_translator; 
       
    38     }
       
    39    
       
    40     /*! This method is used to provide warning message that is displayed
       
    41      *  if the user chooses a language whose translation is not up to date. 
       
    42      *  It is implemented by the adapter classes.
       
    43      */
       
    44     virtual QCString updateNeededMessage() { return m_translator->updateNeededMessage(); }
       
    45 
       
    46     // Please, have a look at comments inside the translator_en.h file
       
    47     // to learn the meaning of the following methods.  The translator_en.h
       
    48     // file contains the TranslatorEnglish implementation, which is 
       
    49     // always up-to-date (by definition).
       
    50    
       
    51     // --- Language control methods -------------------
       
    52     
       
    53     QCString idLanguage()  
       
    54     { return m_translator->idLanguage(); }
       
    55     QCString latexLanguageSupportCommand()  
       
    56     { return m_translator->latexLanguageSupportCommand(); }
       
    57     QCString idLanguageCharset()  
       
    58     { return m_translator->idLanguageCharset(); }
       
    59 
       
    60     QCString recode(const QCString &s,void *cd) 
       
    61     {
       
    62       if (cd==(void*)(-1)) return s;
       
    63       int iSize        = s.length();
       
    64       int oSize        = iSize*4+1;
       
    65       QCString output(oSize);
       
    66       size_t iLeft     = iSize;
       
    67       size_t oLeft     = oSize;
       
    68       const char *iPtr = s.data();
       
    69       char *oPtr       = output.data();
       
    70       if (!portable_iconv(cd,&iPtr,&iLeft,&oPtr,&oLeft))
       
    71       {
       
    72         oSize -= oLeft;
       
    73         output.resize(oSize+1);
       
    74         output.at(oSize)='\0';
       
    75         return output;
       
    76       }
       
    77       else
       
    78       {
       
    79         return s;
       
    80       }
       
    81     }
       
    82     QCString toUtf8(const QCString &s) 
       
    83     {
       
    84       return recode(s,m_toUtf8);
       
    85     }
       
    86     QCString fromUtf8(const QCString &s) 
       
    87     {
       
    88       return recode(s,m_fromUtf8);
       
    89     }
       
    90 
       
    91     // --- Language translation methods -------------------
       
    92 
       
    93     QCString trRelatedFunctions()  
       
    94     { return toUtf8(m_translator->trRelatedFunctions()); }
       
    95     QCString trRelatedSubscript()  
       
    96     { return toUtf8(m_translator->trRelatedSubscript()); }
       
    97     QCString trDetailedDescription()  
       
    98     { return toUtf8(m_translator->trDetailedDescription()); }
       
    99     QCString trMemberTypedefDocumentation()  
       
   100     { return toUtf8(m_translator->trMemberTypedefDocumentation()); }
       
   101     QCString trMemberEnumerationDocumentation()  
       
   102     { return toUtf8(m_translator->trMemberEnumerationDocumentation()); }
       
   103         
       
   104     QCString trMemberFunctionDocumentation()  
       
   105     { return toUtf8(m_translator->trMemberFunctionDocumentation()); }
       
   106     QCString trMemberDataDocumentation()  
       
   107     { return toUtf8(m_translator->trMemberDataDocumentation()); }
       
   108     QCString trMore()  
       
   109     { return toUtf8(m_translator->trMore()); }
       
   110     QCString trListOfAllMembers()  
       
   111     { return toUtf8(m_translator->trListOfAllMembers()); }
       
   112     QCString trMemberList()  
       
   113     { return toUtf8(m_translator->trMemberList()); }
       
   114     QCString trThisIsTheListOfAllMembers()  
       
   115     { return toUtf8(m_translator->trThisIsTheListOfAllMembers()); }
       
   116     QCString trIncludingInheritedMembers()  
       
   117     { return toUtf8(m_translator->trIncludingInheritedMembers()); }
       
   118     QCString trGeneratedAutomatically(const char *s)  
       
   119     { return toUtf8(m_translator->trGeneratedAutomatically(fromUtf8(s))); }
       
   120     QCString trEnumName()  
       
   121     { return toUtf8(m_translator->trEnumName()); }
       
   122     QCString trEnumValue()  
       
   123     { return toUtf8(m_translator->trEnumValue()); }
       
   124     QCString trDefinedIn()  
       
   125     { return toUtf8(m_translator->trDefinedIn()); }
       
   126 
       
   127     // quick reference sections
       
   128 
       
   129     QCString trModules()  
       
   130     { return toUtf8(m_translator->trModules()); }
       
   131     QCString trClassHierarchy()  
       
   132     { return toUtf8(m_translator->trClassHierarchy()); }
       
   133     QCString trCompoundList()  
       
   134     { return toUtf8(m_translator->trCompoundList()); }
       
   135     
       
   136     QCString trFileList()  
       
   137     { return toUtf8(m_translator->trFileList()); }
       
   138     QCString trCompoundMembers()  
       
   139     { return toUtf8(m_translator->trCompoundMembers()); }
       
   140     QCString trFileMembers()  
       
   141     { return toUtf8(m_translator->trFileMembers()); }
       
   142     QCString trRelatedPages()  
       
   143     { return toUtf8(m_translator->trRelatedPages()); }
       
   144     QCString trExamples()  
       
   145     { return toUtf8(m_translator->trExamples()); }
       
   146     QCString trSearch()  
       
   147     { return toUtf8(m_translator->trSearch()); }
       
   148     QCString trClassHierarchyDescription()  
       
   149     { return toUtf8(m_translator->trClassHierarchyDescription()); }
       
   150     QCString trFileListDescription(bool extractAll)  
       
   151     { return toUtf8(m_translator->trFileListDescription(extractAll)); }
       
   152     QCString trCompoundListDescription()  
       
   153     { return toUtf8(m_translator->trCompoundListDescription()); }
       
   154     QCString trCompoundMembersDescription(bool extractAll)  
       
   155     { return toUtf8(m_translator->trCompoundMembersDescription(extractAll)); }
       
   156     QCString trFileMembersDescription(bool extractAll)  
       
   157     { return toUtf8(m_translator->trFileMembersDescription(extractAll)); }
       
   158     QCString trExamplesDescription()  
       
   159     { return toUtf8(m_translator->trExamplesDescription()); }
       
   160     QCString trRelatedPagesDescription()  
       
   161     { return toUtf8(m_translator->trRelatedPagesDescription()); }
       
   162     QCString trModulesDescription()  
       
   163     { return toUtf8(m_translator->trModulesDescription()); }
       
   164     
       
   165     // index titles (the project name is prepended for these) 
       
   166 
       
   167     QCString trDocumentation()  
       
   168     { return toUtf8(m_translator->trDocumentation()); }
       
   169     QCString trModuleIndex()  
       
   170     { return toUtf8(m_translator->trModuleIndex()); }
       
   171     QCString trHierarchicalIndex()  
       
   172     { return toUtf8(m_translator->trHierarchicalIndex()); }
       
   173     QCString trCompoundIndex()  
       
   174     { return toUtf8(m_translator->trCompoundIndex()); }
       
   175     QCString trFileIndex()  
       
   176     { return toUtf8(m_translator->trFileIndex()); } 
       
   177     QCString trModuleDocumentation()  
       
   178     { return toUtf8(m_translator->trModuleDocumentation()); }
       
   179     QCString trClassDocumentation()  
       
   180     { return toUtf8(m_translator->trClassDocumentation()); }
       
   181     QCString trFileDocumentation()  
       
   182     { return toUtf8(m_translator->trFileDocumentation()); }
       
   183     QCString trExampleDocumentation()  
       
   184     { return toUtf8(m_translator->trExampleDocumentation()); }
       
   185     QCString trPageDocumentation()  
       
   186     { return toUtf8(m_translator->trPageDocumentation()); }
       
   187     QCString trReferenceManual()  
       
   188     { return toUtf8(m_translator->trReferenceManual()); }
       
   189     QCString trDefines()  
       
   190     { return toUtf8(m_translator->trDefines()); }
       
   191     QCString trFuncProtos()  
       
   192     { return toUtf8(m_translator->trFuncProtos()); }
       
   193     QCString trTypedefs()  
       
   194     { return toUtf8(m_translator->trTypedefs()); }
       
   195     QCString trEnumerations()  
       
   196     { return toUtf8(m_translator->trEnumerations()); }
       
   197     QCString trFunctions()  
       
   198     { return toUtf8(m_translator->trFunctions()); }
       
   199     QCString trVariables()  
       
   200     { return toUtf8(m_translator->trVariables()); }
       
   201     QCString trEnumerationValues()  
       
   202     { return toUtf8(m_translator->trEnumerationValues()); }
       
   203     QCString trDefineDocumentation()  
       
   204     { return toUtf8(m_translator->trDefineDocumentation()); }
       
   205     QCString trFunctionPrototypeDocumentation()  
       
   206     { return toUtf8(m_translator->trFunctionPrototypeDocumentation()); }
       
   207     QCString trTypedefDocumentation()  
       
   208     { return toUtf8(m_translator->trTypedefDocumentation()); }
       
   209     QCString trEnumerationTypeDocumentation()  
       
   210     { return toUtf8(m_translator->trEnumerationTypeDocumentation()); }
       
   211     QCString trFunctionDocumentation()  
       
   212     { return toUtf8(m_translator->trFunctionDocumentation()); }
       
   213     QCString trVariableDocumentation()  
       
   214     { return toUtf8(m_translator->trVariableDocumentation()); }
       
   215     QCString trCompounds()  
       
   216     { return toUtf8(m_translator->trCompounds()); }
       
   217     QCString trGeneratedAt(const char *date,const char *projName)  
       
   218     { return toUtf8(m_translator->trGeneratedAt(fromUtf8(date),fromUtf8(projName))); }
       
   219     QCString trWrittenBy()  
       
   220     { return toUtf8(m_translator->trWrittenBy()); }
       
   221     QCString trClassDiagram(const char *clName)  
       
   222     { return toUtf8(m_translator->trClassDiagram(fromUtf8(clName))); }
       
   223     QCString trForInternalUseOnly()  
       
   224     { return toUtf8(m_translator->trForInternalUseOnly()); }
       
   225     QCString trWarning()  
       
   226     { return toUtf8(m_translator->trWarning()); }
       
   227     QCString trVersion()  
       
   228     { return toUtf8(m_translator->trVersion()); }
       
   229     QCString trDate()  
       
   230     { return toUtf8(m_translator->trDate()); }
       
   231     QCString trReturns()  
       
   232     { return toUtf8(m_translator->trReturns()); }
       
   233     QCString trSeeAlso()  
       
   234     { return toUtf8(m_translator->trSeeAlso()); }
       
   235     QCString trParameters()  
       
   236     { return toUtf8(m_translator->trParameters()); }
       
   237     QCString trExceptions()  
       
   238     { return toUtf8(m_translator->trExceptions()); }
       
   239     QCString trGeneratedBy()  
       
   240     { return toUtf8(m_translator->trGeneratedBy()); }
       
   241 
       
   242 //////////////////////////////////////////////////////////////////////////
       
   243 // new since 0.49-990307
       
   244 //////////////////////////////////////////////////////////////////////////
       
   245     
       
   246     QCString trNamespaceList()  
       
   247     { return toUtf8(m_translator->trNamespaceList()); }
       
   248     QCString trNamespaceListDescription(bool extractAll)  
       
   249     { return toUtf8(m_translator->trNamespaceListDescription(extractAll)); }
       
   250     QCString trFriends()  
       
   251     { return toUtf8(m_translator->trFriends()); }
       
   252     
       
   253 //////////////////////////////////////////////////////////////////////////
       
   254 // new since 0.49-990405
       
   255 //////////////////////////////////////////////////////////////////////////
       
   256     
       
   257     QCString trRelatedFunctionDocumentation()  
       
   258     { return toUtf8(m_translator->trRelatedFunctionDocumentation()); }
       
   259     
       
   260 //////////////////////////////////////////////////////////////////////////
       
   261 // new since 0.49-990425
       
   262 //////////////////////////////////////////////////////////////////////////
       
   263 
       
   264     QCString trCompoundReference(const char *clName,
       
   265                                  ClassDef::CompoundType compType,
       
   266                                  bool isTemplate)  
       
   267     { return toUtf8(m_translator->trCompoundReference(fromUtf8(clName),compType,isTemplate)); }
       
   268 
       
   269     
       
   270     QCString trFileReference(const char *fileName)  
       
   271     { return toUtf8(m_translator->trFileReference(fromUtf8(fileName))); }
       
   272     QCString trNamespaceReference(const char *namespaceName)  
       
   273     { return toUtf8(m_translator->trNamespaceReference(fromUtf8(namespaceName))); }
       
   274     
       
   275     QCString trPublicMembers()  
       
   276     { return toUtf8(m_translator->trPublicMembers()); }
       
   277     QCString trPublicSlots()  
       
   278     { return toUtf8(m_translator->trPublicSlots()); }
       
   279     QCString trSignals()  
       
   280     { return toUtf8(m_translator->trSignals()); }
       
   281     QCString trStaticPublicMembers()  
       
   282     { return toUtf8(m_translator->trStaticPublicMembers()); }
       
   283     QCString trProtectedMembers()  
       
   284     { return toUtf8(m_translator->trProtectedMembers()); }
       
   285     QCString trProtectedSlots()  
       
   286     { return toUtf8(m_translator->trProtectedSlots()); }
       
   287     QCString trStaticProtectedMembers()  
       
   288     { return toUtf8(m_translator->trStaticProtectedMembers()); }
       
   289     QCString trPrivateMembers()  
       
   290     { return toUtf8(m_translator->trPrivateMembers()); }
       
   291     QCString trPrivateSlots()  
       
   292     { return toUtf8(m_translator->trPrivateSlots()); }
       
   293     QCString trStaticPrivateMembers()  
       
   294     { return toUtf8(m_translator->trStaticPrivateMembers()); }
       
   295     QCString trWriteList(int numEntries)  
       
   296     { return toUtf8(m_translator->trWriteList(numEntries)); }
       
   297     QCString trInheritsList(int numEntries)  
       
   298     { return toUtf8(m_translator->trInheritsList(numEntries)); }
       
   299     QCString trInheritedByList(int numEntries)  
       
   300     { return toUtf8(m_translator->trInheritedByList(numEntries)); }
       
   301     QCString trReimplementedFromList(int numEntries)  
       
   302     { return toUtf8(m_translator->trReimplementedFromList(numEntries)); }
       
   303     QCString trReimplementedInList(int numEntries)  
       
   304     { return toUtf8(m_translator->trReimplementedInList(numEntries)); }
       
   305     QCString trNamespaceMembers()  
       
   306     { return toUtf8(m_translator->trNamespaceMembers()); }
       
   307     QCString trNamespaceMemberDescription(bool extractAll)  
       
   308     { return toUtf8(m_translator->trNamespaceMemberDescription(extractAll)); }
       
   309     
       
   310     QCString trNamespaceIndex()  
       
   311     { return toUtf8(m_translator->trNamespaceIndex()); }
       
   312     QCString trNamespaceDocumentation()  
       
   313     { return toUtf8(m_translator->trNamespaceDocumentation()); }
       
   314 
       
   315 //////////////////////////////////////////////////////////////////////////
       
   316 // new since 0.49-990522
       
   317 //////////////////////////////////////////////////////////////////////////
       
   318 
       
   319     QCString trNamespaces()  
       
   320     { return toUtf8(m_translator->trNamespaces()); }
       
   321 
       
   322 //////////////////////////////////////////////////////////////////////////
       
   323 // new since 0.49-990728
       
   324 //////////////////////////////////////////////////////////////////////////
       
   325 
       
   326     QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
       
   327                                           bool single)  
       
   328     { return toUtf8(m_translator->trGeneratedFromFiles(compType,single)); }
       
   329     
       
   330     
       
   331     QCString trAlphabeticalList()  
       
   332     { return toUtf8(m_translator->trAlphabeticalList()); }
       
   333 
       
   334 //////////////////////////////////////////////////////////////////////////
       
   335 // new since 0.49-990901
       
   336 //////////////////////////////////////////////////////////////////////////
       
   337 
       
   338     QCString trReturnValues()  
       
   339     { return toUtf8(m_translator->trReturnValues()); }
       
   340     QCString trMainPage()  
       
   341     { return toUtf8(m_translator->trMainPage()); }
       
   342     QCString trPageAbbreviation()  
       
   343     { return toUtf8(m_translator->trPageAbbreviation()); }
       
   344 
       
   345 //////////////////////////////////////////////////////////////////////////
       
   346 // new since 0.49-991003
       
   347 //////////////////////////////////////////////////////////////////////////
       
   348 
       
   349     QCString trDefinedAtLineInSourceFile()  
       
   350     { return toUtf8(m_translator->trDefinedAtLineInSourceFile()); }
       
   351     QCString trDefinedInSourceFile()  
       
   352     { return toUtf8(m_translator->trDefinedInSourceFile()); }
       
   353 
       
   354 //////////////////////////////////////////////////////////////////////////
       
   355 // new since 0.49-991205
       
   356 //////////////////////////////////////////////////////////////////////////
       
   357 
       
   358     QCString trDeprecated()  
       
   359     { return toUtf8(m_translator->trDeprecated()); }
       
   360 
       
   361 //////////////////////////////////////////////////////////////////////////
       
   362 // new since 1.0.0
       
   363 //////////////////////////////////////////////////////////////////////////
       
   364 
       
   365     QCString trCollaborationDiagram(const char *clName)  
       
   366     { return toUtf8(m_translator->trCollaborationDiagram(fromUtf8(clName))); }
       
   367     QCString trInclDepGraph(const char *fName)  
       
   368     { return toUtf8(m_translator->trInclDepGraph(fromUtf8(fName))); }
       
   369     QCString trConstructorDocumentation()  
       
   370     { return toUtf8(m_translator->trConstructorDocumentation()); }
       
   371     QCString trGotoSourceCode()  
       
   372     { return toUtf8(m_translator->trGotoSourceCode()); }
       
   373     QCString trGotoDocumentation()  
       
   374     { return toUtf8(m_translator->trGotoDocumentation()); }
       
   375     QCString trPrecondition()  
       
   376     { return toUtf8(m_translator->trPrecondition()); }
       
   377     QCString trPostcondition()  
       
   378     { return toUtf8(m_translator->trPostcondition()); }
       
   379     QCString trInvariant()  
       
   380     { return toUtf8(m_translator->trInvariant()); }
       
   381     QCString trInitialValue()  
       
   382     { return toUtf8(m_translator->trInitialValue()); }
       
   383     QCString trCode()  
       
   384     { return toUtf8(m_translator->trCode()); }
       
   385 
       
   386     QCString trGraphicalHierarchy()  
       
   387     { return toUtf8(m_translator->trGraphicalHierarchy()); }
       
   388     QCString trGotoGraphicalHierarchy()  
       
   389     { return toUtf8(m_translator->trGotoGraphicalHierarchy()); }
       
   390     QCString trGotoTextualHierarchy()  
       
   391     { return toUtf8(m_translator->trGotoTextualHierarchy()); }
       
   392     QCString trPageIndex()  
       
   393     { return toUtf8(m_translator->trPageIndex()); }
       
   394 
       
   395 //////////////////////////////////////////////////////////////////////////
       
   396 // new since 1.1.0
       
   397 //////////////////////////////////////////////////////////////////////////
       
   398     
       
   399     QCString trNote()  
       
   400     { return toUtf8(m_translator->trNote()); }
       
   401     QCString trPublicTypes()  
       
   402     { return toUtf8(m_translator->trPublicTypes()); }
       
   403     QCString trPublicAttribs()  
       
   404     { return toUtf8(m_translator->trPublicAttribs()); }
       
   405     QCString trStaticPublicAttribs()  
       
   406     { return toUtf8(m_translator->trStaticPublicAttribs()); }
       
   407     QCString trProtectedTypes()  
       
   408     { return toUtf8(m_translator->trProtectedTypes()); }
       
   409     QCString trProtectedAttribs()  
       
   410     { return toUtf8(m_translator->trProtectedAttribs()); }
       
   411     QCString trStaticProtectedAttribs()  
       
   412     { return toUtf8(m_translator->trStaticProtectedAttribs()); }
       
   413     QCString trPrivateTypes()  
       
   414     { return toUtf8(m_translator->trPrivateTypes()); }
       
   415     QCString trPrivateAttribs()  
       
   416     { return toUtf8(m_translator->trPrivateAttribs()); }
       
   417     QCString trStaticPrivateAttribs()  
       
   418     { return toUtf8(m_translator->trStaticPrivateAttribs()); }
       
   419 
       
   420 //////////////////////////////////////////////////////////////////////////
       
   421 // new since 1.1.3
       
   422 //////////////////////////////////////////////////////////////////////////
       
   423 
       
   424     QCString trTodo()  
       
   425     { return toUtf8(m_translator->trTodo()); }
       
   426     QCString trTodoList()  
       
   427     { return toUtf8(m_translator->trTodoList()); }
       
   428 
       
   429 //////////////////////////////////////////////////////////////////////////
       
   430 // new since 1.1.4
       
   431 //////////////////////////////////////////////////////////////////////////
       
   432 
       
   433     QCString trReferencedBy()  
       
   434     { return toUtf8(m_translator->trReferencedBy()); }
       
   435     QCString trRemarks()  
       
   436     { return toUtf8(m_translator->trRemarks()); }
       
   437     QCString trAttention()  
       
   438     { return toUtf8(m_translator->trAttention()); }
       
   439     QCString trInclByDepGraph()  
       
   440     { return toUtf8(m_translator->trInclByDepGraph()); }
       
   441     QCString trSince()  
       
   442     { return toUtf8(m_translator->trSince()); }
       
   443     
       
   444 //////////////////////////////////////////////////////////////////////////
       
   445 // new since 1.1.5
       
   446 //////////////////////////////////////////////////////////////////////////
       
   447 
       
   448     QCString trLegendTitle()  
       
   449     { return toUtf8(m_translator->trLegendTitle()); }
       
   450     QCString trLegendDocs()  
       
   451     { return toUtf8(m_translator->trLegendDocs()); }
       
   452     QCString trLegend()  
       
   453     { return toUtf8(m_translator->trLegend()); }
       
   454     
       
   455 //////////////////////////////////////////////////////////////////////////
       
   456 // new since 1.2.0
       
   457 //////////////////////////////////////////////////////////////////////////
       
   458     
       
   459     QCString trTest()  
       
   460     { return toUtf8(m_translator->trTest()); }
       
   461     QCString trTestList()  
       
   462     { return toUtf8(m_translator->trTestList()); }
       
   463 
       
   464 //////////////////////////////////////////////////////////////////////////
       
   465 // new since 1.2.1
       
   466 //////////////////////////////////////////////////////////////////////////
       
   467 
       
   468     QCString trDCOPMethods()  
       
   469     { return toUtf8(m_translator->trDCOPMethods()); }
       
   470 
       
   471 //////////////////////////////////////////////////////////////////////////
       
   472 // new since 1.2.2
       
   473 //////////////////////////////////////////////////////////////////////////
       
   474 
       
   475     QCString trProperties()  
       
   476     { return toUtf8(m_translator->trProperties()); }
       
   477     QCString trPropertyDocumentation()  
       
   478     { return toUtf8(m_translator->trPropertyDocumentation()); }
       
   479 
       
   480 //////////////////////////////////////////////////////////////////////////
       
   481 // new since 1.2.4
       
   482 //////////////////////////////////////////////////////////////////////////
       
   483 
       
   484     QCString trClasses()  
       
   485     { return toUtf8(m_translator->trClasses()); }
       
   486     QCString trPackage(const char *name)  
       
   487     { return toUtf8(m_translator->trPackage(fromUtf8(name))); }
       
   488     QCString trPackageList()  
       
   489     { return toUtf8(m_translator->trPackageList()); }
       
   490     QCString trPackageListDescription()  
       
   491     { return toUtf8(m_translator->trPackageListDescription()); }
       
   492     QCString trPackages()  
       
   493     { return toUtf8(m_translator->trPackages()); }
       
   494     QCString trDefineValue()  
       
   495     { return toUtf8(m_translator->trDefineValue()); }
       
   496     
       
   497 //////////////////////////////////////////////////////////////////////////
       
   498 // new since 1.2.5
       
   499 //////////////////////////////////////////////////////////////////////////
       
   500     
       
   501     QCString trBug()  
       
   502     { return toUtf8(m_translator->trBug()); }
       
   503     QCString trBugList()  
       
   504     { return toUtf8(m_translator->trBugList()); }
       
   505 
       
   506 //////////////////////////////////////////////////////////////////////////
       
   507 // new since 1.2.6
       
   508 //////////////////////////////////////////////////////////////////////////
       
   509 
       
   510     QCString trRTFansicp()  
       
   511     { return toUtf8(m_translator->trRTFansicp()); }
       
   512     QCString trRTFCharSet()  
       
   513     { return toUtf8(m_translator->trRTFCharSet()); }
       
   514     QCString trRTFGeneralIndex()  
       
   515     { return toUtf8(m_translator->trRTFGeneralIndex()); }
       
   516    
       
   517     // Translation of the word
       
   518 
       
   519     QCString trClass(bool first_capital, bool singular)  
       
   520     { return toUtf8(m_translator->trClass(first_capital,singular)); }
       
   521     QCString trFile(bool first_capital, bool singular)  
       
   522     { return toUtf8(m_translator->trFile(first_capital,singular)); }
       
   523     QCString trNamespace(bool first_capital, bool singular)  
       
   524     { return toUtf8(m_translator->trNamespace(first_capital,singular)); }
       
   525     
       
   526     QCString trGroup(bool first_capital, bool singular)  
       
   527     { return toUtf8(m_translator->trGroup(first_capital,singular)); }
       
   528     QCString trPage(bool first_capital, bool singular)  
       
   529     { return toUtf8(m_translator->trPage(first_capital,singular)); }
       
   530     QCString trMember(bool first_capital, bool singular)  
       
   531     { return toUtf8(m_translator->trMember(first_capital,singular)); }
       
   532     QCString trGlobal(bool first_capital, bool singular)  
       
   533     { return toUtf8(m_translator->trGlobal(first_capital,singular)); }
       
   534 
       
   535 //////////////////////////////////////////////////////////////////////////
       
   536 // new since 1.2.7
       
   537 //////////////////////////////////////////////////////////////////////////
       
   538         
       
   539     QCString trAuthor(bool first_capital, bool singular)  
       
   540     { return toUtf8(m_translator->trAuthor(first_capital,singular)); }
       
   541 
       
   542 //////////////////////////////////////////////////////////////////////////
       
   543 // new since 1.2.11
       
   544 //////////////////////////////////////////////////////////////////////////
       
   545 
       
   546     QCString trReferences()  
       
   547     { return toUtf8(m_translator->trReferences()); }
       
   548 
       
   549 //////////////////////////////////////////////////////////////////////////
       
   550 // new since 1.2.13
       
   551 //////////////////////////////////////////////////////////////////////////
       
   552 
       
   553     QCString trImplementedFromList(int numEntries)  
       
   554     { return toUtf8(m_translator->trImplementedFromList(numEntries)); }
       
   555     QCString trImplementedInList(int numEntries)  
       
   556     { return toUtf8(m_translator->trImplementedInList(numEntries)); }
       
   557     
       
   558 //////////////////////////////////////////////////////////////////////////
       
   559 // new since 1.2.16
       
   560 //////////////////////////////////////////////////////////////////////////
       
   561 
       
   562     QCString trRTFTableOfContents()  
       
   563     { return toUtf8(m_translator->trRTFTableOfContents()); }
       
   564 
       
   565 //////////////////////////////////////////////////////////////////////////
       
   566 // new since 1.2.17
       
   567 //////////////////////////////////////////////////////////////////////////
       
   568 
       
   569     QCString trDeprecatedList()  
       
   570     { return toUtf8(m_translator->trDeprecatedList()); }
       
   571     
       
   572 //////////////////////////////////////////////////////////////////////////
       
   573 // new since 1.2.18
       
   574 //////////////////////////////////////////////////////////////////////////
       
   575 
       
   576     QCString trEvents()  
       
   577     { return toUtf8(m_translator->trEvents()); }
       
   578     QCString trEventDocumentation()  
       
   579     { return toUtf8(m_translator->trEventDocumentation()); }
       
   580 
       
   581 //////////////////////////////////////////////////////////////////////////
       
   582 // new since 1.3
       
   583 //////////////////////////////////////////////////////////////////////////
       
   584 
       
   585     QCString trPackageTypes()  
       
   586     { return toUtf8(m_translator->trPackageTypes()); }
       
   587     QCString trPackageMembers()  
       
   588     { return toUtf8(m_translator->trPackageMembers()); }
       
   589     QCString trStaticPackageMembers()  
       
   590     { return toUtf8(m_translator->trStaticPackageMembers()); }
       
   591     QCString trPackageAttribs()  
       
   592     { return toUtf8(m_translator->trPackageAttribs()); }
       
   593     QCString trStaticPackageAttribs()  
       
   594     { return toUtf8(m_translator->trStaticPackageAttribs()); }
       
   595     
       
   596 //////////////////////////////////////////////////////////////////////////
       
   597 // new since 1.3.1
       
   598 //////////////////////////////////////////////////////////////////////////
       
   599 
       
   600     QCString trAll()  
       
   601     { return toUtf8(m_translator->trAll()); }
       
   602     QCString trCallGraph()  
       
   603     { return toUtf8(m_translator->trCallGraph()); }
       
   604 
       
   605 //////////////////////////////////////////////////////////////////////////
       
   606 // new since 1.3.3
       
   607 //////////////////////////////////////////////////////////////////////////
       
   608 
       
   609     QCString trSearchForIndex()  
       
   610     { return toUtf8(m_translator->trSearchForIndex()); }
       
   611     QCString trSearchResultsTitle()  
       
   612     { return toUtf8(m_translator->trSearchResultsTitle()); }
       
   613     QCString trSearchResults(int numDocuments)  
       
   614     { return toUtf8(m_translator->trSearchResults(numDocuments)); }
       
   615     QCString trSearchMatches()  
       
   616     { return toUtf8(m_translator->trSearchMatches()); }
       
   617 
       
   618 //////////////////////////////////////////////////////////////////////////
       
   619 // new since 1.3.8
       
   620 //////////////////////////////////////////////////////////////////////////
       
   621 
       
   622     QCString trSourceFile(QCString& filename)  
       
   623     { return toUtf8(m_translator->trSourceFile(filename)); }
       
   624 
       
   625 //////////////////////////////////////////////////////////////////////////
       
   626 // new since 1.3.9
       
   627 //////////////////////////////////////////////////////////////////////////
       
   628 
       
   629     QCString trDirIndex()  
       
   630     { return toUtf8(m_translator->trDirIndex()); }
       
   631     QCString trDirDocumentation()  
       
   632     { return toUtf8(m_translator->trDirDocumentation()); }
       
   633     QCString trDirectories()  
       
   634     { return toUtf8(m_translator->trDirectories()); }
       
   635     QCString trDirDescription()  
       
   636     { return toUtf8(m_translator->trDirDescription()); }
       
   637     QCString trDirReference(const char *dirName)  
       
   638     { return toUtf8(m_translator->trDirReference(fromUtf8(dirName))); }
       
   639     QCString trDir(bool first_capital, bool singular)  
       
   640     { return toUtf8(m_translator->trDir(first_capital,singular)); }
       
   641 
       
   642 //////////////////////////////////////////////////////////////////////////
       
   643 // new since 1.4.1
       
   644 //////////////////////////////////////////////////////////////////////////
       
   645 
       
   646     QCString trOverloadText()  
       
   647     { return toUtf8(m_translator->trOverloadText()); }
       
   648 
       
   649 //////////////////////////////////////////////////////////////////////////
       
   650 // new since 1.4.6
       
   651 //////////////////////////////////////////////////////////////////////////
       
   652     
       
   653     QCString trCallerGraph()  
       
   654     { return toUtf8(m_translator->trCallerGraph()); }
       
   655     QCString trEnumerationValueDocumentation()  
       
   656     { return toUtf8(m_translator->trEnumerationValueDocumentation()); }
       
   657 
       
   658 //////////////////////////////////////////////////////////////////////////
       
   659 // new since 1.5.4
       
   660 //////////////////////////////////////////////////////////////////////////
       
   661 
       
   662     QCString trMemberFunctionDocumentationFortran()  
       
   663     { return toUtf8(m_translator->trMemberFunctionDocumentationFortran()); }
       
   664     QCString trCompoundListFortran()  
       
   665     { return toUtf8(m_translator->trCompoundListFortran()); }
       
   666     QCString trCompoundMembersFortran()  
       
   667     { return toUtf8(m_translator->trCompoundMembersFortran()); }
       
   668     QCString trCompoundListDescriptionFortran()  
       
   669     { return toUtf8(m_translator->trCompoundListDescriptionFortran()); }
       
   670     QCString trCompoundMembersDescriptionFortran(bool extractAll)  
       
   671     { return toUtf8(m_translator->trCompoundMembersDescriptionFortran(extractAll)); }
       
   672     QCString trCompoundIndexFortran()  
       
   673     { return toUtf8(m_translator->trCompoundIndexFortran()); }
       
   674     QCString trTypeDocumentation()  
       
   675     { return toUtf8(m_translator->trTypeDocumentation()); }
       
   676     QCString trSubprograms()  
       
   677     { return toUtf8(m_translator->trSubprograms()); }
       
   678     QCString trSubprogramDocumentation()  
       
   679     { return toUtf8(m_translator->trSubprogramDocumentation()); }
       
   680     QCString trDataTypes()  
       
   681     { return toUtf8(m_translator->trDataTypes()); }
       
   682     QCString trModulesList()  
       
   683     { return toUtf8(m_translator->trModulesList()); }
       
   684     QCString trModulesListDescription(bool extractAll)  
       
   685     { return toUtf8(m_translator->trModulesListDescription(extractAll)); }
       
   686     QCString trCompoundReferenceFortran(const char *clName,
       
   687                                  ClassDef::CompoundType compType,
       
   688                                  bool isTemplate)  
       
   689     { return toUtf8(m_translator->trCompoundReferenceFortran(fromUtf8(clName),compType,isTemplate)); }
       
   690     QCString trModuleReference(const char *namespaceName)  
       
   691     { return toUtf8(m_translator->trModuleReference(fromUtf8(namespaceName))); }
       
   692     QCString trModulesMembers()  
       
   693     { return toUtf8(m_translator->trModulesMembers()); }
       
   694     QCString trModulesMemberDescription(bool extractAll)  
       
   695     { return toUtf8(m_translator->trModulesMemberDescription(extractAll)); }
       
   696     QCString trModulesIndex()  
       
   697     { return toUtf8(m_translator->trModulesIndex()); }
       
   698     QCString trModule(bool first_capital, bool singular)  
       
   699     { return toUtf8(m_translator->trModule(first_capital,singular)); }
       
   700     QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
       
   701                                           bool single)  
       
   702     { return toUtf8(m_translator->trGeneratedFromFilesFortran(compType,single)); }
       
   703     QCString trType(bool first_capital, bool singular)  
       
   704     { return toUtf8(m_translator->trType(first_capital,singular)); }
       
   705     QCString trSubprogram(bool first_capital, bool singular)  
       
   706     { return toUtf8(m_translator->trSubprogram(first_capital,singular)); }
       
   707     QCString trTypeConstraints()
       
   708     { return toUtf8(m_translator->trTypeConstraints()); }
       
   709 
       
   710 //////////////////////////////////////////////////////////////////////////
       
   711 // new since 1.6.0
       
   712 //////////////////////////////////////////////////////////////////////////
       
   713 
       
   714     QCString trDirRelation(const char *name)
       
   715     { return toUtf8(m_translator->trDirRelation(fromUtf8(name))); }
       
   716     QCString trLoading()
       
   717     { return toUtf8(m_translator->trLoading()); }
       
   718     QCString trGlobalNamespace()
       
   719     { return toUtf8(m_translator->trGlobalNamespace()); }
       
   720     QCString trSearching()
       
   721     { return toUtf8(m_translator->trSearching()); }
       
   722     QCString trNoMatches()
       
   723     { return toUtf8(m_translator->trNoMatches()); }
       
   724 
       
   725 //////////////////////////////////////////////////////////////////////////
       
   726   private:
       
   727     Translator *m_translator;
       
   728     void *m_toUtf8;
       
   729     void *m_fromUtf8;
       
   730 
       
   731 };
       
   732 
       
   733 #endif