Skip to content

Commit

Permalink
Add explanation for config cache_dir / Add locale zh-CN zh-TW
Browse files Browse the repository at this point in the history
add locale zh_CN zh_TW

Update zh_CN.yml

Rename zh_CN.yml to zh-CN.yml

Update and rename zh_TW.yml to zh-TW.yml
  • Loading branch information
debbbbie committed May 28, 2015
1 parent dee90f2 commit b8453b9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ When you want to avoid any unnecessary computation in production mode,
you can generate a cache with ``rake apipie:cache`` and configure the
app to use it in production with ``config.use_cache = Rails.env.production?``

Default cache dir is ``File.join(Rails.root, "public", "apipie-cache")``,
you can change it to where you want, example: ``config.cache_dir = File.join(Rails.root, "doc", "apidoc")``.

If, for some complex cases, you need to generate/re-generate just part of the cache
use ``rake apipie:cache cache_part=index`` resp. ``rake apipie:cache cache_part=resources``
To generate it for different locations for further processing use ``rake apipie:cache OUT=/tmp/apipie_cache``.
Expand Down
28 changes: 28 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'zh-CN':
apipie:
resources: 资源
resource: 资源
description: 描述
no_docs_found: 没有找到文档
no_docs_found_descr: 没有找到文档。
follow_instructions_html: 点击 %{href} 查看描述。
follow_instructions_href: 高级指导
oops: Oops!!
resource_not_found_html: 没有找到资源 %{res} 。
method_not_found_html: 没有找到资源 %{res} 的方法 %{method} 。
goto_homepage_html: 试图访问 %{href}
goto_homepage_href: "%{app_name} API 文档主页"
required: 必填
optional: 选填
nil_allowed: 允许空值
param_name: 参数名字
params: 参数
examples: 示例
metadata: 元数据
errors: 错误
supported_formats: 支持格式
enable_javascript_html: 浏览 %{comments_href}前请允许执行 JavaScript 。
comments_powered_by_disqus: 评论技术支持 %{disqus}
api_documentation: API 文档
headers: 头部
header_name: 头部名字
28 changes: 28 additions & 0 deletions config/locales/zh-TW.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'zh-TW':
apipie:
resources: 資源
resource: 資源
description: 描述
no_docs_found: 沒有找到文檔
no_docs_found_descr: 沒有找到文檔。
follow_instructions_html: 點擊 %{href} 查看描述。
follow_instructions_href: 高級指導
oops: Oops!!
resource_not_found_html: 沒有找到資源 %{res} 。
method_not_found_html: 沒有找到資源 %{res} 的方法 %{method} 。
goto_homepage_html: 試圖訪問 %{href}
goto_homepage_href: "%{app_name} API 文檔主頁"
required: 必填
optional: 選填
nil_allowed: 允許空值
param_name: 參數名字
params: 參數
examples: 示例
metadata: 元數據
errors: 錯誤
supported_formats: 支持格式
enable_javascript_html: 瀏覽 %{comments_href}前請允許執行 JavaScript 。
comments_powered_by_disqus: 評論技術支持 %{disqus}
api_documentation: API 文檔
headers: 頭部
header_name: 頭部名字

0 comments on commit b8453b9

Please sign in to comment.