From b0109255e82b9dacf354e938f2451d7af8c4ac8d Mon Sep 17 00:00:00 2001 From: georgschlenkhoff Date: Mon, 25 Dec 2017 16:58:03 +0100 Subject: [PATCH] add language support for en_US for default template --- README.md | 3 +++ lib/doxmate.js | 22 +++++++++++----------- templates/default/footer.ejs | 7 ++----- templates/default/header.ejs | 2 +- templates/default/section.html | 4 ++-- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 76ce1a1..9cb73b5 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,9 @@ Doxmate将会扫描项目下的README.md和doc目录下的md文件,通过markd ``` +## International version +[See en_US branch](https://github.com/cbou/markdox/tree/en_US) + ## License (MIT) MIT许可,请自由享用。 diff --git a/lib/doxmate.js b/lib/doxmate.js index 09e213c..c2c0603 100644 --- a/lib/doxmate.js +++ b/lib/doxmate.js @@ -36,17 +36,17 @@ var getTemplates = function (skin, input) { }; var types = { - "param": "参数", - "examples": "示例", - "return": "返回", - "method": "方法", - "api": "可见度", - "property": "属性", - "function": "函数", - "declaration": "声明", - "exception": "异常", - "callmethod": "调用方式", - "name": "名字" + "param": "Parameter", + "examples": "Example", + "return": "Returns", + "method": "Method", + "api": "Visibility", + "property": "Attributes", + "function": "Function", + "declaration": "Declaration", + "exception": "Exception", + "callmethod": "Calling Method", + "name": "Name" }; var getName = function (comment) { diff --git a/templates/default/footer.ejs b/templates/default/footer.ejs index 453d404..ac89387 100644 --- a/templates/default/footer.ejs +++ b/templates/default/footer.ejs @@ -3,12 +3,9 @@

Back to top

-

此文档通过doxmate生成。主题借鉴Bootstrap API文档风格,注解基于Dox。欢迎关注doxmate作者@朴灵

+

Made by <%= author %>

diff --git a/templates/default/header.ejs b/templates/default/header.ejs index 0ca072f..50be729 100644 --- a/templates/default/header.ejs +++ b/templates/default/header.ejs @@ -67,7 +67,7 @@
-

<%= name %> Version: <%= version %> By @<%= author %>

+

<%= name %> Version: <%= version %>

<%= description %>

diff --git a/templates/default/section.html b/templates/default/section.html index 707d8e3..4e0d170 100644 --- a/templates/default/section.html +++ b/templates/default/section.html @@ -1,5 +1,5 @@
-

<%=basename%>: API索引

+

<%=basename%> API Docs

    <% var indexs = comments.filter(function (item) { @@ -27,7 +27,7 @@

    <% if (comment.ctx) { %>