summaryrefslogtreecommitdiffstats
path: root/src/translatordecoder.h
blob: 461486343627a33c20523bc026ab90c28ac097b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
/******************************************************************************
 *
 * 
 *
 * Copyright (C) 1997-2008 by Dimitri van Heesch.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation under the terms of the GNU General Public License is hereby 
 * granted. No representations are made about the suitability of this software 
 * for any purpose. It is provided "as is" without express or implied warranty.
 * See the GNU General Public License for more details.
 *
 * Documents produced by Doxygen are derivative works derived from the
 * input used in their production; they are not affected by this license.
 *
 */

#ifndef TRANSLATORDECODER_H
#define TRANSLATORDECODER_H

#include "translator.h"
#include "portable.h"

class TranslatorDecoder : public Translator
{
  public:

    TranslatorDecoder(Translator *translator) : m_translator(translator) 
    {
      m_toUtf8   = portable_iconv_open("UTF-8",translator->idLanguageCharset()); 
      m_fromUtf8 = portable_iconv_open(translator->idLanguageCharset(),"UTF-8"); 
    }
    virtual ~TranslatorDecoder() 
    { 
      if (m_toUtf8!=(void *)(-1))   portable_iconv_close(m_toUtf8);
      if (m_fromUtf8!=(void *)(-1)) portable_iconv_close(m_fromUtf8);
      delete m_translator; 
    }
   
    /*! This method is used to provide warning message that is displayed
     *  if the user chooses a language whose translation is not up to date. 
     *  It is implemented by the adapter classes.
     */
    virtual QCString updateNeededMessage() { return m_translator->updateNeededMessage(); }

    // Please, have a look at comments inside the translator_en.h file
    // to learn the meaning of the following methods.  The translator_en.h
    // file contains the TranslatorEnglish implementation, which is 
    // always up-to-date (by definition).
   
    // --- Language control methods -------------------
    
    QCString idLanguage()  
    { return m_translator->idLanguage(); }
    QCString latexLanguageSupportCommand()  
    { return m_translator->latexLanguageSupportCommand(); }
    QCString idLanguageCharset()  
    { return m_translator->idLanguageCharset(); }

    QCString recode(const QCString &s,void *cd) 
    {
      if (cd==(void*)(-1)) return s;
      int iSize        = s.length();
      int oSize        = iSize*4+1;
      QCString output(oSize);
      size_t iLeft     = iSize;
      size_t oLeft     = oSize;
      const char *iPtr = s.data();
      char *oPtr       = output.data();
      if (!portable_iconv(cd,&iPtr,&iLeft,&oPtr,&oLeft))
      {
        oSize -= oLeft;
        output.resize(oSize+1);
        output.at(oSize)='\0';
        return output;
      }
      else
      {
        return s;
      }
    }
    QCString toUtf8(const QCString &s) 
    {
      return recode(s,m_toUtf8);
    }
    QCString fromUtf8(const QCString &s) 
    {
      return recode(s,m_fromUtf8);
    }

    // --- Language translation methods -------------------

    QCString trRelatedFunctions()  
    { return toUtf8(m_translator->trRelatedFunctions()); }
    QCString trRelatedSubscript()  
    { return toUtf8(m_translator->trRelatedSubscript()); }
    QCString trDetailedDescription()  
    { return toUtf8(m_translator->trDetailedDescription()); }
    QCString trMemberTypedefDocumentation()  
    { return toUtf8(m_translator->trMemberTypedefDocumentation()); }
    QCString trMemberEnumerationDocumentation()  
    { return toUtf8(m_translator->trMemberEnumerationDocumentation()); }
        
    QCString trMemberFunctionDocumentation()  
    { return toUtf8(m_translator->trMemberFunctionDocumentation()); }
    QCString trMemberDataDocumentation()  
    { return toUtf8(m_translator->trMemberDataDocumentation()); }
    QCString trMore()  
    { return toUtf8(m_translator->trMore()); }
    QCString trListOfAllMembers()  
    { return toUtf8(m_translator->trListOfAllMembers()); }
    QCString trMemberList()  
    { return toUtf8(m_translator->trMemberList()); }
    QCString trThisIsTheListOfAllMembers()  
    { return toUtf8(m_translator->trThisIsTheListOfAllMembers()); }
    QCString trIncludingInheritedMembers()  
    { return toUtf8(m_translator->trIncludingInheritedMembers()); }
    QCString trGeneratedAutomatically(const char *s)  
    { return toUtf8(m_translator->trGeneratedAutomatically(fromUtf8(s))); }
    QCString trEnumName()  
    { return toUtf8(m_translator->trEnumName()); }
    QCString trEnumValue()  
    { return toUtf8(m_translator->trEnumValue()); }
    QCString trDefinedIn()  
    { return toUtf8(m_translator->trDefinedIn()); }

    // quick reference sections

    QCString trModules()  
    { return toUtf8(m_translator->trModules()); }
    QCString trClassHierarchy()  
    { return toUtf8(m_translator->trClassHierarchy()); }
    QCString trCompoundList()  
    { return toUtf8(m_translator->trCompoundList()); }
    
    QCString trFileList()  
    { return toUtf8(m_translator->trFileList()); }
    QCString trCompoundMembers()  
    { return toUtf8(m_translator->trCompoundMembers()); }
    QCString trFileMembers()  
    { return toUtf8(m_translator->trFileMembers()); }
    QCString trRelatedPages()  
    { return toUtf8(m_translator->trRelatedPages()); }
    QCString trExamples()  
    { return toUtf8(m_translator->trExamples()); }
    QCString trSearch()  
    { return toUtf8(m_translator->trSearch()); }
    QCString trClassHierarchyDescription()  
    { return toUtf8(m_translator->trClassHierarchyDescription()); }
    QCString trFileListDescription(bool extractAll)  
    { return toUtf8(m_translator->trFileListDescription(extractAll)); }
    QCString trCompoundListDescription()  
    { return toUtf8(m_translator->trCompoundListDescription()); }
    QCString trCompoundMembersDescription(bool extractAll)  
    { return toUtf8(m_translator->trCompoundMembersDescription(extractAll)); }
    QCString trFileMembersDescription(bool extractAll)  
    { return toUtf8(m_translator->trFileMembersDescription(extractAll)); }
    QCString trExamplesDescription()  
    { return toUtf8(m_translator->trExamplesDescription()); }
    QCString trRelatedPagesDescription()  
    { return toUtf8(m_translator->trRelatedPagesDescription()); }
    QCString trModulesDescription()  
    { return toUtf8(m_translator->trModulesDescription()); }
    
    // index titles (the project name is prepended for these) 

    QCString trDocumentation()  
    { return toUtf8(m_translator->trDocumentation()); }
    QCString trModuleIndex()  
    { return toUtf8(m_translator->trModuleIndex()); }
    QCString trHierarchicalIndex()  
    { return toUtf8(m_translator->trHierarchicalIndex()); }
    QCString trCompoundIndex()  
    { return toUtf8(m_translator->trCompoundIndex()); }
    QCString trFileIndex()  
    { return toUtf8(m_translator->trFileIndex()); } 
    QCString trModuleDocumentation()  
    { return toUtf8(m_translator->trModuleDocumentation()); }
    QCString trClassDocumentation()  
    { return toUtf8(m_translator->trClassDocumentation()); }
    QCString trFileDocumentation()  
    { return toUtf8(m_translator->trFileDocumentation()); }
    QCString trExampleDocumentation()  
    { return toUtf8(m_translator->trExampleDocumentation()); }
    QCString trPageDocumentation()  
    { return toUtf8(m_translator->trPageDocumentation()); }
    QCString trReferenceManual()  
    { return toUtf8(m_translator->trReferenceManual()); }
    QCString trDefines()  
    { return toUtf8(m_translator->trDefines()); }
    QCString trFuncProtos()  
    { return toUtf8(m_translator->trFuncProtos()); }
    QCString trTypedefs()  
    { return toUtf8(m_translator->trTypedefs()); }
    QCString trEnumerations()  
    { return toUtf8(m_translator->trEnumerations()); }
    QCString trFunctions()  
    { return toUtf8(m_translator->trFunctions()); }
    QCString trVariables()  
    { return toUtf8(m_translator->trVariables()); }
    QCString trEnumerationValues()  
    { return toUtf8(m_translator->trEnumerationValues()); }
    QCString trDefineDocumentation()  
    { return toUtf8(m_translator->trDefineDocumentation()); }
    QCString trFunctionPrototypeDocumentation()  
    { return toUtf8(m_translator->trFunctionPrototypeDocumentation()); }
    QCString trTypedefDocumentation()  
    { return toUtf8(m_translator->trTypedefDocumentation()); }
    QCString trEnumerationTypeDocumentation()  
    { return toUtf8(m_translator->trEnumerationTypeDocumentation()); }
    QCString trFunctionDocumentation()  
    { return toUtf8(m_translator->trFunctionDocumentation()); }
    QCString trVariableDocumentation()  
    { return toUtf8(m_translator->trVariableDocumentation()); }
    QCString trCompounds()  
    { return toUtf8(m_translator->trCompounds()); }
    QCString trGeneratedAt(const char *date,const char *projName)  
    { return toUtf8(m_translator->trGeneratedAt(fromUtf8(date),fromUtf8(projName))); }
    QCString trWrittenBy()  
    { return toUtf8(m_translator->trWrittenBy()); }
    QCString trClassDiagram(const char *clName)  
    { return toUtf8(m_translator->trClassDiagram(fromUtf8(clName))); }
    QCString trForInternalUseOnly()  
    { return toUtf8(m_translator->trForInternalUseOnly()); }
    QCString trWarning()  
    { return toUtf8(m_translator->trWarning()); }
    QCString trVersion()  
    { return toUtf8(m_translator->trVersion()); }
    QCString trDate()  
    { return toUtf8(m_translator->trDate()); }
    QCString trReturns()  
    { return toUtf8(m_translator->trReturns()); }
    QCString trSeeAlso()  
    { return toUtf8(m_translator->trSeeAlso()); }
    QCString trParameters()  
    { return toUtf8(m_translator->trParameters()); }
    QCString trExceptions()  
    { return toUtf8(m_translator->trExceptions()); }
    QCString trGeneratedBy()  
    { return toUtf8(m_translator->trGeneratedBy()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-990307
//////////////////////////////////////////////////////////////////////////
    
    QCString trNamespaceList()  
    { return toUtf8(m_translator->trNamespaceList()); }
    QCString trNamespaceListDescription(bool extractAll)  
    { return toUtf8(m_translator->trNamespaceListDescription(extractAll)); }
    QCString trFriends()  
    { return toUtf8(m_translator->trFriends()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990405
//////////////////////////////////////////////////////////////////////////
    
    QCString trRelatedFunctionDocumentation()  
    { return toUtf8(m_translator->trRelatedFunctionDocumentation()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990425
//////////////////////////////////////////////////////////////////////////

    QCString trCompoundReference(const char *clName,
                                 ClassDef::CompoundType compType,
                                 bool isTemplate)  
    { return toUtf8(m_translator->trCompoundReference(fromUtf8(clName),compType,isTemplate)); }

    
    QCString trFileReference(const char *fileName)  
    { return toUtf8(m_translator->trFileReference(fromUtf8(fileName))); }
    QCString trNamespaceReference(const char *namespaceName)  
    { return toUtf8(m_translator->trNamespaceReference(fromUtf8(namespaceName))); }
    
    QCString trPublicMembers()  
    { return toUtf8(m_translator->trPublicMembers()); }
    QCString trPublicSlots()  
    { return toUtf8(m_translator->trPublicSlots()); }
    QCString trSignals()  
    { return toUtf8(m_translator->trSignals()); }
    QCString trStaticPublicMembers()  
    { return toUtf8(m_translator->trStaticPublicMembers()); }
    QCString trProtectedMembers()  
    { return toUtf8(m_translator->trProtectedMembers()); }
    QCString trProtectedSlots()  
    { return toUtf8(m_translator->trProtectedSlots()); }
    QCString trStaticProtectedMembers()  
    { return toUtf8(m_translator->trStaticProtectedMembers()); }
    QCString trPrivateMembers()  
    { return toUtf8(m_translator->trPrivateMembers()); }
    QCString trPrivateSlots()  
    { return toUtf8(m_translator->trPrivateSlots()); }
    QCString trStaticPrivateMembers()  
    { return toUtf8(m_translator->trStaticPrivateMembers()); }
    QCString trWriteList(int numEntries)  
    { return toUtf8(m_translator->trWriteList(numEntries)); }
    QCString trInheritsList(int numEntries)  
    { return toUtf8(m_translator->trInheritsList(numEntries)); }
    QCString trInheritedByList(int numEntries)  
    { return toUtf8(m_translator->trInheritedByList(numEntries)); }
    QCString trReimplementedFromList(int numEntries)  
    { return toUtf8(m_translator->trReimplementedFromList(numEntries)); }
    QCString trReimplementedInList(int numEntries)  
    { return toUtf8(m_translator->trReimplementedInList(numEntries)); }
    QCString trNamespaceMembers()  
    { return toUtf8(m_translator->trNamespaceMembers()); }
    QCString trNamespaceMemberDescription(bool extractAll)  
    { return toUtf8(m_translator->trNamespaceMemberDescription(extractAll)); }
    
    QCString trNamespaceIndex()  
    { return toUtf8(m_translator->trNamespaceIndex()); }
    QCString trNamespaceDocumentation()  
    { return toUtf8(m_translator->trNamespaceDocumentation()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-990522
//////////////////////////////////////////////////////////////////////////

    QCString trNamespaces()  
    { return toUtf8(m_translator->trNamespaces()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-990728
//////////////////////////////////////////////////////////////////////////

    QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
                                          bool single)  
    { return toUtf8(m_translator->trGeneratedFromFiles(compType,single)); }
    
    
    QCString trAlphabeticalList()  
    { return toUtf8(m_translator->trAlphabeticalList()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-990901
//////////////////////////////////////////////////////////////////////////

    QCString trReturnValues()  
    { return toUtf8(m_translator->trReturnValues()); }
    QCString trMainPage()  
    { return toUtf8(m_translator->trMainPage()); }
    QCString trPageAbbreviation()  
    { return toUtf8(m_translator->trPageAbbreviation()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-991003
//////////////////////////////////////////////////////////////////////////

    QCString trDefinedAtLineInSourceFile()  
    { return toUtf8(m_translator->trDefinedAtLineInSourceFile()); }
    QCString trDefinedInSourceFile()  
    { return toUtf8(m_translator->trDefinedInSourceFile()); }

//////////////////////////////////////////////////////////////////////////
// new since 0.49-991205
//////////////////////////////////////////////////////////////////////////

    QCString trDeprecated()  
    { return toUtf8(m_translator->trDeprecated()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.0.0
//////////////////////////////////////////////////////////////////////////

    QCString trCollaborationDiagram(const char *clName)  
    { return toUtf8(m_translator->trCollaborationDiagram(fromUtf8(clName))); }
    QCString trInclDepGraph(const char *fName)  
    { return toUtf8(m_translator->trInclDepGraph(fromUtf8(fName))); }
    QCString trConstructorDocumentation()  
    { return toUtf8(m_translator->trConstructorDocumentation()); }
    QCString trGotoSourceCode()  
    { return toUtf8(m_translator->trGotoSourceCode()); }
    QCString trGotoDocumentation()  
    { return toUtf8(m_translator->trGotoDocumentation()); }
    QCString trPrecondition()  
    { return toUtf8(m_translator->trPrecondition()); }
    QCString trPostcondition()  
    { return toUtf8(m_translator->trPostcondition()); }
    QCString trInvariant()  
    { return toUtf8(m_translator->trInvariant()); }
    QCString trInitialValue()  
    { return toUtf8(m_translator->trInitialValue()); }
    QCString trCode()  
    { return toUtf8(m_translator->trCode()); }

    QCString trGraphicalHierarchy()  
    { return toUtf8(m_translator->trGraphicalHierarchy()); }
    QCString trGotoGraphicalHierarchy()  
    { return toUtf8(m_translator->trGotoGraphicalHierarchy()); }
    QCString trGotoTextualHierarchy()  
    { return toUtf8(m_translator->trGotoTextualHierarchy()); }
    QCString trPageIndex()  
    { return toUtf8(m_translator->trPageIndex()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.1.0
//////////////////////////////////////////////////////////////////////////
    
    QCString trNote()  
    { return toUtf8(m_translator->trNote()); }
    QCString trPublicTypes()  
    { return toUtf8(m_translator->trPublicTypes()); }
    QCString trPublicAttribs()  
    { return toUtf8(m_translator->trPublicAttribs()); }
    QCString trStaticPublicAttribs()  
    { return toUtf8(m_translator->trStaticPublicAttribs()); }
    QCString trProtectedTypes()  
    { return toUtf8(m_translator->trProtectedTypes()); }
    QCString trProtectedAttribs()  
    { return toUtf8(m_translator->trProtectedAttribs()); }
    QCString trStaticProtectedAttribs()  
    { return toUtf8(m_translator->trStaticProtectedAttribs()); }
    QCString trPrivateTypes()  
    { return toUtf8(m_translator->trPrivateTypes()); }
    QCString trPrivateAttribs()  
    { return toUtf8(m_translator->trPrivateAttribs()); }
    QCString trStaticPrivateAttribs()  
    { return toUtf8(m_translator->trStaticPrivateAttribs()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.1.3
//////////////////////////////////////////////////////////////////////////

    QCString trTodo()  
    { return toUtf8(m_translator->trTodo()); }
    QCString trTodoList()  
    { return toUtf8(m_translator->trTodoList()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.1.4
//////////////////////////////////////////////////////////////////////////

    QCString trReferencedBy()  
    { return toUtf8(m_translator->trReferencedBy()); }
    QCString trRemarks()  
    { return toUtf8(m_translator->trRemarks()); }
    QCString trAttention()  
    { return toUtf8(m_translator->trAttention()); }
    QCString trInclByDepGraph()  
    { return toUtf8(m_translator->trInclByDepGraph()); }
    QCString trSince()  
    { return toUtf8(m_translator->trSince()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.1.5
//////////////////////////////////////////////////////////////////////////

    QCString trLegendTitle()  
    { return toUtf8(m_translator->trLegendTitle()); }
    QCString trLegendDocs()  
    { return toUtf8(m_translator->trLegendDocs()); }
    QCString trLegend()  
    { return toUtf8(m_translator->trLegend()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.2.0
//////////////////////////////////////////////////////////////////////////
    
    QCString trTest()  
    { return toUtf8(m_translator->trTest()); }
    QCString trTestList()  
    { return toUtf8(m_translator->trTestList()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.1
//////////////////////////////////////////////////////////////////////////

    QCString trDCOPMethods()  
    { return toUtf8(m_translator->trDCOPMethods()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.2
//////////////////////////////////////////////////////////////////////////

    QCString trProperties()  
    { return toUtf8(m_translator->trProperties()); }
    QCString trPropertyDocumentation()  
    { return toUtf8(m_translator->trPropertyDocumentation()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.4
//////////////////////////////////////////////////////////////////////////

    QCString trClasses()  
    { return toUtf8(m_translator->trClasses()); }
    QCString trPackage(const char *name)  
    { return toUtf8(m_translator->trPackage(fromUtf8(name))); }
    QCString trPackageList()  
    { return toUtf8(m_translator->trPackageList()); }
    QCString trPackageListDescription()  
    { return toUtf8(m_translator->trPackageListDescription()); }
    QCString trPackages()  
    { return toUtf8(m_translator->trPackages()); }
    QCString trDefineValue()  
    { return toUtf8(m_translator->trDefineValue()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.2.5
//////////////////////////////////////////////////////////////////////////
    
    QCString trBug()  
    { return toUtf8(m_translator->trBug()); }
    QCString trBugList()  
    { return toUtf8(m_translator->trBugList()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.6
//////////////////////////////////////////////////////////////////////////

    QCString trRTFansicp()  
    { return toUtf8(m_translator->trRTFansicp()); }
    QCString trRTFCharSet()  
    { return toUtf8(m_translator->trRTFCharSet()); }
    QCString trRTFGeneralIndex()  
    { return toUtf8(m_translator->trRTFGeneralIndex()); }
   
    // Translation of the word

    QCString trClass(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trClass(first_capital,singular)); }
    QCString trFile(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trFile(first_capital,singular)); }
    QCString trNamespace(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trNamespace(first_capital,singular)); }
    
    QCString trGroup(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trGroup(first_capital,singular)); }
    QCString trPage(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trPage(first_capital,singular)); }
    QCString trMember(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trMember(first_capital,singular)); }
    QCString trGlobal(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trGlobal(first_capital,singular)); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.7
//////////////////////////////////////////////////////////////////////////
        
    QCString trAuthor(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trAuthor(first_capital,singular)); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.11
//////////////////////////////////////////////////////////////////////////

    QCString trReferences()  
    { return toUtf8(m_translator->trReferences()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.13
//////////////////////////////////////////////////////////////////////////

    QCString trImplementedFromList(int numEntries)  
    { return toUtf8(m_translator->trImplementedFromList(numEntries)); }
    QCString trImplementedInList(int numEntries)  
    { return toUtf8(m_translator->trImplementedInList(numEntries)); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.2.16
//////////////////////////////////////////////////////////////////////////

    QCString trRTFTableOfContents()  
    { return toUtf8(m_translator->trRTFTableOfContents()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.2.17
//////////////////////////////////////////////////////////////////////////

    QCString trDeprecatedList()  
    { return toUtf8(m_translator->trDeprecatedList()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.2.18
//////////////////////////////////////////////////////////////////////////

    QCString trEvents()  
    { return toUtf8(m_translator->trEvents()); }
    QCString trEventDocumentation()  
    { return toUtf8(m_translator->trEventDocumentation()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.3
//////////////////////////////////////////////////////////////////////////

    QCString trPackageTypes()  
    { return toUtf8(m_translator->trPackageTypes()); }
    QCString trPackageMembers()  
    { return toUtf8(m_translator->trPackageMembers()); }
    QCString trStaticPackageMembers()  
    { return toUtf8(m_translator->trStaticPackageMembers()); }
    QCString trPackageAttribs()  
    { return toUtf8(m_translator->trPackageAttribs()); }
    QCString trStaticPackageAttribs()  
    { return toUtf8(m_translator->trStaticPackageAttribs()); }
    
//////////////////////////////////////////////////////////////////////////
// new since 1.3.1
//////////////////////////////////////////////////////////////////////////

    QCString trAll()  
    { return toUtf8(m_translator->trAll()); }
    QCString trCallGraph()  
    { return toUtf8(m_translator->trCallGraph()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.3.3
//////////////////////////////////////////////////////////////////////////

    QCString trSearchForIndex()  
    { return toUtf8(m_translator->trSearchForIndex()); }
    QCString trSearchResultsTitle()  
    { return toUtf8(m_translator->trSearchResultsTitle()); }
    QCString trSearchResults(int numDocuments)  
    { return toUtf8(m_translator->trSearchResults(numDocuments)); }
    QCString trSearchMatches()  
    { return toUtf8(m_translator->trSearchMatches()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.3.8
//////////////////////////////////////////////////////////////////////////

    QCString trSourceFile(QCString& filename)  
    { return toUtf8(m_translator->trSourceFile(filename)); }

//////////////////////////////////////////////////////////////////////////
// new since 1.3.9
//////////////////////////////////////////////////////////////////////////

    QCString trDirIndex()  
    { return toUtf8(m_translator->trDirIndex()); }
    QCString trDirDocumentation()  
    { return toUtf8(m_translator->trDirDocumentation()); }
    QCString trDirectories()  
    { return toUtf8(m_translator->trDirectories()); }
    QCString trDirDescription()  
    { return toUtf8(m_translator->trDirDescription()); }
    QCString trDirReference(const char *dirName)  
    { return toUtf8(m_translator->trDirReference(fromUtf8(dirName))); }
    QCString trDir(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trDir(first_capital,singular)); }

//////////////////////////////////////////////////////////////////////////
// new since 1.4.1
//////////////////////////////////////////////////////////////////////////

    QCString trOverloadText()  
    { return toUtf8(m_translator->trOverloadText()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.4.6
//////////////////////////////////////////////////////////////////////////
    
    QCString trCallerGraph()  
    { return toUtf8(m_translator->trCallerGraph()); }
    QCString trEnumerationValueDocumentation()  
    { return toUtf8(m_translator->trEnumerationValueDocumentation()); }

//////////////////////////////////////////////////////////////////////////
// new since 1.5.4
//////////////////////////////////////////////////////////////////////////

    QCString trMemberFunctionDocumentationFortran()  
    { return toUtf8(m_translator->trMemberFunctionDocumentationFortran()); }
    QCString trCompoundListFortran()  
    { return toUtf8(m_translator->trCompoundListFortran()); }
    QCString trCompoundMembersFortran()  
    { return toUtf8(m_translator->trCompoundMembersFortran()); }
    QCString trCompoundListDescriptionFortran()  
    { return toUtf8(m_translator->trCompoundListDescriptionFortran()); }
    QCString trCompoundMembersDescriptionFortran(bool extractAll)  
    { return toUtf8(m_translator->trCompoundMembersDescriptionFortran(extractAll)); }
    QCString trCompoundIndexFortran()  
    { return toUtf8(m_translator->trCompoundIndexFortran()); }
    QCString trTypeDocumentation()  
    { return toUtf8(m_translator->trTypeDocumentation()); }
    QCString trSubprograms()  
    { return toUtf8(m_translator->trSubprograms()); }
    QCString trSubprogramDocumentation()  
    { return toUtf8(m_translator->trSubprogramDocumentation()); }
    QCString trDataTypes()  
    { return toUtf8(m_translator->trDataTypes()); }
    QCString trModulesList()  
    { return toUtf8(m_translator->trModulesList()); }
    QCString trModulesListDescription(bool extractAll)  
    { return toUtf8(m_translator->trModulesListDescription(extractAll)); }
    QCString trCompoundReferenceFortran(const char *clName,
                                 ClassDef::CompoundType compType,
                                 bool isTemplate)  
    { return toUtf8(m_translator->trCompoundReferenceFortran(fromUtf8(clName),compType,isTemplate)); }
    QCString trModuleReference(const char *namespaceName)  
    { return toUtf8(m_translator->trModuleReference(fromUtf8(namespaceName))); }
    QCString trModulesMembers()  
    { return toUtf8(m_translator->trModulesMembers()); }
    QCString trModulesMemberDescription(bool extractAll)  
    { return toUtf8(m_translator->trModulesMemberDescription(extractAll)); }
    QCString trModulesIndex()  
    { return toUtf8(m_translator->trModulesIndex()); }
    QCString trModule(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trModule(first_capital,singular)); }
    QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
                                          bool single)  
    { return toUtf8(m_translator->trGeneratedFromFilesFortran(compType,single)); }
    QCString trType(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trType(first_capital,singular)); }
    QCString trSubprogram(bool first_capital, bool singular)  
    { return toUtf8(m_translator->trSubprogram(first_capital,singular)); }
    QCString trTypeConstraints()
    { return toUtf8(m_translator->trTypeConstraints()); }


//////////////////////////////////////////////////////////////////////////
  private:
    Translator *m_translator;
    void *m_toUtf8;
    void *m_fromUtf8;

};

#endif