Navigation Menu

Skip to content

Commit

Permalink
ja: translate i18n documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 4, 2014
1 parent f56030f commit dc60cae
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 44 deletions.
49 changes: 32 additions & 17 deletions _po/ja/community/contribution/i18n/index.po
Expand Up @@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-11-20 22:17+0900\n"
"PO-Revision-Date: 2013-12-25 18:27+0900\n"
"PO-Revision-Date: 2014-02-04 14:52+0900\n"
"Last-Translator: Kouhei Sutou <kou@clear-code.com>\n"
"Language-Team: Japanese\n"
"Language: ja\n"
Expand All @@ -18,36 +18,48 @@ msgid ""
"layout: en\n"
"---"
msgstr ""
"---\n"
"title: 国際化\n"
"layout: ja\n"
"---"

msgid ""
"This documentation describes how to translate the original documentations in E"
"nglish to other languages."
msgstr ""
msgstr "このドキュメントは英語で書かれたドキュメントを他の言語に翻訳する方法を説明します。"

msgid "## Work-flow"
msgstr ""
msgstr "## ワークフロー"

msgid "Here is a work-flow to translate one documentation in English:"
msgstr ""
msgstr "英語で書かれたドキュメントを1つ翻訳するワークフローは次の通りです。"

msgid ""
" 1. Run `rake`.\n"
" 2. Translate `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.edit.po`.\n"
" 3. Run `rake`.\n"
" 4. Run `jekyll server`.\n"
" 5. Confirm `_site/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.html`.\n"
" 4. Run `jekyll server --watch`.\n"
" 5. Confirm `http://localhost:4000/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.html"
"`.\n"
" 6. Commit `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.po` (not `.edit.po`) an"
"d ``${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.md`."
"d `${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.md`."
msgstr ""
" 1. `rake` を実行。\n"
" 2. `_po/${翻訳対象のロケール}/${対象ファイルへのパス}.edit.po` を翻訳。\n"
" 3. `rake` を実行。\n"
" 4. `jekyll server --watch` を実行。\n"
" 5. `http://localhost:4000/${翻訳対象のロケール}/${対象ファイルへのパス}.html` を確認\n"
" 6. `_po/${翻訳対象のロケール}/${対象ファイルへのパス}.po` ( `.edit.po` ではないことに注意) と `${翻訳対象のロケー"
"ル}/${対象ファイルへのパス}.md` をコミット。"

msgid "## Example"
msgstr ""
msgstr "## 例"

msgid "Here is an example to translate `overview/index.md` into Japanese."
msgstr ""
msgstr "`overview/index.md` を日本語に翻訳する例です。"

msgid "Run `rake`:"
msgstr ""
msgstr "`rake` を実行する。"

msgid ""
"```\n"
Expand All @@ -56,7 +68,7 @@ msgid ""
msgstr ""

msgid "Translate `_po/ja/overview/index.edit.po`:"
msgstr ""
msgstr "`_po/ja/overview/index.edit.po` を翻訳する。"

msgid ""
"```\n"
Expand All @@ -69,18 +81,21 @@ msgid ""
"de, Vim, [Gtranslator](https://wiki.gnome.org/Apps/Gtranslator), [Lokalize](ht"
"tp://userbase.kde.org/Lokalize) and so on."
msgstr ""
"注:テキストエディターでなく、POエディターを使うこともできます。POエディターには、たとえば、Emacsのpo-mode、Vim、[Gtranslator"
"](https://wiki.gnome.org/Apps/Gtranslator)、[Lokalize](http://userbase.kde.org/"
"Lokalize)などがあります。"

msgid "Run `jekyll server`:"
msgstr ""
msgid "Run `jekyll server --watch`:"
msgstr "`jekyll server --watch`を実行する。"

msgid ""
"```\n"
"% jekyll server &\n"
"% jekyll server --watch &\n"
"```"
msgstr ""

msgid "Confirm `_site/ja/overview/index.html`:"
msgstr ""
msgid "Confirm `http://localhost:4000/ja/overview/index.html`:"
msgstr "`http://localhost:4000/ja/overview/index.html` を確認する。"

msgid ""
"```\n"
Expand All @@ -89,7 +104,7 @@ msgid ""
msgstr ""

msgid "Commit `_po/ja/overview/index.po` and `ja/overview/index.md`:"
msgstr ""
msgstr "`_po/ja/overview/index.po` と `ja/overview/index.md` をコミットする。"

msgid ""
"```\n"
Expand Down
12 changes: 6 additions & 6 deletions community/contribution/i18n/index.md
Expand Up @@ -12,9 +12,9 @@ Here is a work-flow to translate one documentation in English:
1. Run `rake`.
2. Translate `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.edit.po`.
3. Run `rake`.
4. Run `jekyll server`.
5. Confirm `_site/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.html`.
6. Commit `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.po` (not `.edit.po`) and ``${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.md`.
4. Run `jekyll server --watch`.
5. Confirm `http://localhost:4000/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.html`.
6. Commit `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.po` (not `.edit.po`) and `${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.md`.

## Example

Expand All @@ -40,13 +40,13 @@ Run `rake`:
% rake
```

Run `jekyll server`:
Run `jekyll server --watch`:

```
% jekyll server &
% jekyll server --watch &
```

Confirm `_site/ja/overview/index.html`:
Confirm `http://localhost:4000/ja/overview/index.html`:

```
% firefox http://localhost:4000/ja/overview/index.html
Expand Down
42 changes: 21 additions & 21 deletions ja/community/contribution/i18n/index.md
@@ -1,58 +1,58 @@
---
title: Internationalization
layout: en
title: 国際化
layout: ja
---

This documentation describes how to translate the original documentations in English to other languages.
このドキュメントは英語で書かれたドキュメントを他の言語に翻訳する方法を説明します。

## Work-flow
## ワークフロー

Here is a work-flow to translate one documentation in English:
英語で書かれたドキュメントを1つ翻訳するワークフローは次の通りです。

1. Run `rake`.
2. Translate `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.edit.po`.
3. Run `rake`.
4. Run `jekyll server`.
5. Confirm `_site/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.html`.
6. Commit `_po/${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.po` (not `.edit.po`) and ``${YOUR_LOCALE}/${PATH_TO_TARGET_FILE}.md`.
1. `rake` を実行。
2. `_po/${翻訳対象のロケール}/${対象ファイルへのパス}.edit.po` を翻訳。
3. `rake` を実行。
4. `jekyll server --watch` を実行。
5. `http://localhost:4000/${翻訳対象のロケール}/${対象ファイルへのパス}.html` を確認
6. `_po/${翻訳対象のロケール}/${対象ファイルへのパス}.po` `.edit.po` ではないことに注意) と `${翻訳対象のロケール}/${対象ファイルへのパス}.md` をコミット。

## Example
##

Here is an example to translate `overview/index.md` into Japanese.
`overview/index.md` を日本語に翻訳する例です。

Run `rake`:
`rake` を実行する。

```
% rake
```

Translate `_po/ja/overview/index.edit.po`:
`_po/ja/overview/index.edit.po` を翻訳する。

```
% gedit _po/ja/overview/index.edit.po
```

Note: You can use PO editor instead of text editor. For example, Emacs's po-mode, Vim, [Gtranslator](https://wiki.gnome.org/Apps/Gtranslator), [Lokalize](http://userbase.kde.org/Lokalize) and so on.
注:テキストエディターでなく、POエディターを使うこともできます。POエディターには、たとえば、Emacsのpo-modeVim[Gtranslator](https://wiki.gnome.org/Apps/Gtranslator)[Lokalize](http://userbase.kde.org/Lokalize)などがあります。

Run `rake`:
`rake` を実行する。

```
% rake
```

Run `jekyll server`:
`jekyll server --watch`を実行する。

```
% jekyll server &
% jekyll server --watch &
```

Confirm `_site/ja/overview/index.html`:
`http://localhost:4000/ja/overview/index.html` を確認する。

```
% firefox http://localhost:4000/ja/overview/index.html
```

Commit `_po/ja/overview/index.po` and `ja/overview/index.md`:
`_po/ja/overview/index.po` `ja/overview/index.md` をコミットする。

```
% git add _po/ja/overview/index.po
Expand Down

0 comments on commit dc60cae

Please sign in to comment.