summaryrefslogtreecommitdiffstats
path: root/src/translator_en.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-09-06 21:04:07 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-09-06 21:04:07 (GMT)
commit4ccd672ea5dbda17649f2e33577b5ab7eb02db7e (patch)
tree24f950391924810998cc59aeb041099c7871e49c /src/translator_en.h
parent3aaaf142be657201a2664c10b96447acb1610187 (diff)
downloadDoxygen-4ccd672ea5dbda17649f2e33577b5ab7eb02db7e.zip
Doxygen-4ccd672ea5dbda17649f2e33577b5ab7eb02db7e.tar.gz
Doxygen-4ccd672ea5dbda17649f2e33577b5ab7eb02db7e.tar.bz2
Release-1.3.8-20040906
Diffstat (limited to 'src/translator_en.h')
-rw-r--r--src/translator_en.h64
1 files changed, 43 insertions, 21 deletions
diff --git a/src/translator_en.h b/src/translator_en.h
index 3dc27df..e327541 100644
--- a/src/translator_en.h
+++ b/src/translator_en.h
@@ -18,27 +18,28 @@
#ifndef TRANSLATOR_EN_H
#define TRANSLATOR_EN_H
-// When defining a translator class for the new language, follow
-// the description in the documentation. One of the steps says
-// that you should copy the translator_en.h (this) file to your
-// translator_xx.h new file. Your new language should use the
-// Translator class as the base class. This means that you need to
-// implement exactly the same (pure virtual) methods as the
-// TranslatorEnglish does. Because of this, it is a good idea to
-// start with the copy of TranslatorEnglish and replace the strings
-// one by one.
-//
-// It is not necessary to include "translator.h" or
-// "translator_adapter.h" here. The files are included in the
-// language.cpp correctly. Not including any of the mentioned
-// files frees the maintainer from thinking about whether the
-// first, the second, or both files should be included or not, and
-// why. This holds namely for localized translators because their
-// base class is changed occasionaly to adapter classes when the
-// Translator class changes the interface, or back to the
-// Translator class (by the local maintainer) when the localized
-// translator is made up-to-date again.
-
+/*!
+ When defining a translator class for the new language, follow
+ the description in the documentation. One of the steps says
+ that you should copy the translator_en.h (this) file to your
+ translator_xx.h new file. Your new language should use the
+ Translator class as the base class. This means that you need to
+ implement exactly the same (pure virtual) methods as the
+ TranslatorEnglish does. Because of this, it is a good idea to
+ start with the copy of TranslatorEnglish and replace the strings
+ one by one.
+
+ It is not necessary to include "translator.h" or
+ "translator_adapter.h" here. The files are included in the
+ language.cpp correctly. Not including any of the mentioned
+ files frees the maintainer from thinking about whether the
+ first, the second, or both files should be included or not, and
+ why. This holds namely for localized translators because their
+ base class is changed occasionaly to adapter classes when the
+ Translator class changes the interface, or back to the
+ Translator class (by the local maintainer) when the localized
+ translator is made up-to-date again.
+*/
class TranslatorEnglish : public Translator
{
public:
@@ -1555,6 +1556,27 @@ class TranslatorEnglish : public Translator
return filename + " Source File";
}
+//////////////////////////////////////////////////////////////////////////
+// new since 1.3.9
+//////////////////////////////////////////////////////////////////////////
+
+ virtual QCString trDirIndex()
+ { return "Directories"; }
+ virtual QCString trDirDocumentation()
+ { return "Directory Documentation"; }
+ virtual QCString trDirectories()
+ { return "Directories"; }
+ virtual QCString trDirDescription()
+ { return "Here is a list of all directories:"; }
+ virtual QCString trDirReference(const char *dirName)
+ { QCString result=dirName; result+=" Directory Reference"; return result; }
+ virtual QCString trDir(bool first_capital, bool singular)
+ {
+ QCString result((first_capital ? "Director" : "director"));
+ if (singular) result+="y"; else result+="ies";
+ return result;
+ }
+
};
#endif