summaryrefslogtreecommitdiffstats
path: root/src/translator_cn.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-12-24 16:12:24 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-12-24 16:12:24 (GMT)
commit48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (patch)
tree2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /src/translator_cn.h
parentdd7602fdd31d8f3e0f88be553da084a1e3fdec45 (diff)
downloadDoxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.zip
Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.gz
Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.bz2
Release-1.7.2-20101224
Diffstat (limited to 'src/translator_cn.h')
-rw-r--r--src/translator_cn.h77
1 files changed, 76 insertions, 1 deletions
diff --git a/src/translator_cn.h b/src/translator_cn.h
index a296daa..f48c66e 100644
--- a/src/translator_cn.h
+++ b/src/translator_cn.h
@@ -24,7 +24,7 @@
*/
#define CN_SPC
-class TranslatorChinese : public TranslatorAdapter_1_6_0
+class TranslatorChinese : public Translator
{
public:
/*! Used for identification of the language. The identification
@@ -1787,6 +1787,81 @@ class TranslatorChinese : public TranslatorAdapter_1_6_0
{
return "类型限制";
}
+
+//////////////////////////////////////////////////////////////////////////
+// new since 1.6.0
+//////////////////////////////////////////////////////////////////////////
+ virtual QCString trDirRelation(const char *name)
+ {
+ // return QCString(name)+" Relation";
+ // unsure
+ return QCString(name)+CN_SPC"关系";
+ }
+
+ virtual QCString trLoading()
+ {
+ return "载入中...";
+ }
+
+ virtual QCString trGlobalNamespace()
+ {
+ return "全局命名空间";
+ }
+
+ virtual QCString trSearching()
+ {
+ return "搜索中...";
+ }
+
+ virtual QCString trNoMatches()
+ {
+ return "未找到";
+ }
+
+//////////////////////////////////////////////////////////////////////////
+// new since 1.6.3
+//////////////////////////////////////////////////////////////////////////
+
+ virtual QCString trDirDependency(const char *name)
+ {
+ // return (QCString)"Directory dependency graph for "+name;
+ // unsure
+ return QCString(name)+CN_SPC"的目录依赖关系图";
+ }
+
+ virtual QCString trFileIn(const char *name)
+ {
+ // return (QCString)"File in "+name;
+ // unsure
+ return (QCString)"文件在"+CN_SPC+name;
+ }
+
+ virtual QCString trIncludesFileIn(const char *name)
+ {
+ // return (QCString)"Includes file in "+name;
+ // unsure
+ return (QCString)"在"CN_SPC+name+CN_SPC"中引用";
+ }
+
+ virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
+ int hour,int minutes,int seconds,
+ bool includeTime)
+ {
+ static const char *days[] = { "一","二","三","四","五","六","日" };
+ static const char *months[] = { "一","二","三","四","五","六","七","八","九","十","十一","十二" };
+
+ QCString sdate;
+
+ sdate.sprintf("%d年%s月%d日 星期%s",year, months[month-1], day, days[dayOfWeek-1]);
+
+ if (includeTime)
+ {
+ QCString stime;
+ stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds);
+ sdate+=stime;
+ }
+ return sdate;
+ }
};
#endif