From 6e9b6868baa91ca1a16b8ed9c51961d581e79966 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Sun, 27 Sep 2020 16:27:02 +0000 Subject: [PATCH] Add Japanese translation (#91) Translate text on the website into Japanese. Signed-off-by: TAKAHASHI Shuuji Add the `ja-jp` locale code for Japanese translation. Signed-off-by: TAKAHASHI Shuuji Add config for Japanese translation. I weight 6 on ja-jp because I saw a PR for korean translation on Gitea repository. If there is no problem on that PR, it will be merged, and I expect that the weight of ja-jp will be 6. Signed-off-by: TAKAHASHI Shuuji Co-authored-by: TAKAHASHI Shuuji Reviewed-on: https://gitea.com/gitea/website/pulls/91 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: techknowlogick --- config.yaml | 49 ++++++++++++++++++++- content/_index.ja-jp.md | 20 +++++++++ content/features/cross-platform.ja-jp.md | 15 +++++++ content/features/easy-installation.ja-jp.md | 15 +++++++ content/features/lightweight.ja-jp.md | 15 +++++++ content/features/open-source.ja-jp.md | 15 +++++++ scripts/trans-copy | 1 + static/_redirects | 1 + 8 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 content/_index.ja-jp.md create mode 100644 content/features/cross-platform.ja-jp.md create mode 100644 content/features/easy-installation.ja-jp.md create mode 100644 content/features/lightweight.ja-jp.md create mode 100644 content/features/open-source.ja-jp.md diff --git a/config.yaml b/config.yaml index b40fea2..c4daf0c 100644 --- a/config.yaml +++ b/config.yaml @@ -300,4 +300,51 @@ languages: - name: 포럼 url: https://discourse.gitea.io/ weight: 80 - pre: group \ No newline at end of file + pre: group + + ja-jp: + weight: 6 + languageName: 日本語 + menu: + page: + - name: ウェブサイト + url: /ja-jp/ + weight: 10 + pre: home + post: active + - name: ドキュメント + url: https://docs.gitea.io/ja-jp/ + weight: 20 + pre: question + - name: API + url: https://try.gitea.io/api/swagger + weight: 45 + pre: plug + - name: ブログ + url: https://blog.gitea.io/ + weight: 30 + pre: rss + - name: コード + url: https://code.gitea.io/ + weight: 40 + pre: code + - name: 翻訳 + url: https://crowdin.com/project/gitea + weight: 41 + pre: language + - name: ダウンロード + url: https://dl.gitea.io/ + weight: 50 + pre: download + - name: GitHub + url: https://github.com/go-gitea/ + weight: 60 + pre: github + - name: Discord チャット + url: https://discord.gg/Gitea + weight: 70 + pre: comment + - name: フォーラム + url: https://discourse.gitea.io/ + weight: 80 + pre: group diff --git a/content/_index.ja-jp.md b/content/_index.ja-jp.md new file mode 100644 index 0000000..d2edb31 --- /dev/null +++ b/content/_index.ja-jp.md @@ -0,0 +1,20 @@ +--- +date: "2016-11-08T16:00:00+02:00" +title: "ようこそ" +weight: 10 +toc: false +draft: false +url: "ja-jp" +type: "home" +--- + +

Gitea - 一杯のお茶を添えた Git

+

苦痛のないセルフホスト型 Git サービス

+

+ Gitea は、コミュニティ主導で開発が進められている [Go 言語](https://golang.org/)製の軽量のコードホスティングソリューションです。コードは [MIT](https://github.com/go-gitea/gitea/blob/master/LICENSE) ライセンスで公開されています。 +

+ + diff --git a/content/features/cross-platform.ja-jp.md b/content/features/cross-platform.ja-jp.md new file mode 100644 index 0000000..6792bec --- /dev/null +++ b/content/features/cross-platform.ja-jp.md @@ -0,0 +1,15 @@ +--- +date: "2016-11-08T16:00:00+02:00" +title: "クロスプラットフォーム" +weight: 10 +toc: false +draft: false +--- +

+ + クロスプラットフォーム +

+ +Gitea は [Go 言語](http://golang.org/) がコンパイル可能なあらゆるプラットフォームで動作します。Windows、macOS、Linux、ARM など、あなたが一番好きなプラットフォームを選んでください! diff --git a/content/features/easy-installation.ja-jp.md b/content/features/easy-installation.ja-jp.md new file mode 100644 index 0000000..1e5347b --- /dev/null +++ b/content/features/easy-installation.ja-jp.md @@ -0,0 +1,15 @@ +--- +date: "2016-11-08T16:00:00+02:00" +title: "インストールが簡単" +weight: 10 +toc: false +draft: false +--- +

+ + インストールが簡単 +

+ +ただプラットフォーム向けの[バイナリを実行する](https://docs.gitea.io/en-us/install-from-binary/)だけで動作します。Gitea は [Docker](https://github.com/go-gitea/gitea/tree/master/docker) や [Vagrant](https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs) 上でも動作し、[パッケージ](https://docs.gitea.io/en-us/install-from-package/)からインストールすることもできます。 diff --git a/content/features/lightweight.ja-jp.md b/content/features/lightweight.ja-jp.md new file mode 100644 index 0000000..4984ba3 --- /dev/null +++ b/content/features/lightweight.ja-jp.md @@ -0,0 +1,15 @@ +--- +date: "2016-11-08T16:00:00+02:00" +title: "軽量" +weight: 10 +toc: false +draft: false +--- +

+ + 軽量 +

+ +Gitea に必要な依存関係は最小限しかないため、安価な Raspberry Pi でも動作します。マシンの消費電力を節約しましょう! diff --git a/content/features/open-source.ja-jp.md b/content/features/open-source.ja-jp.md new file mode 100644 index 0000000..4e5e209 --- /dev/null +++ b/content/features/open-source.ja-jp.md @@ -0,0 +1,15 @@ +--- +date: "2016-11-08T16:00:00+02:00" +title: "オープンソース" +weight: 10 +toc: false +draft: false +--- +

+ + オープンソース +

+ +コードは [code.gitea.io/gitea](https://code.gitea.io/gitea/) で入手できます! 私たちと一緒に[コントリビューション](https://github.com/go-gitea/gitea)を行い、このプロジェクトをさらに優れたものにしていきましょう。コントリビュータになるのに遠慮はいりません! diff --git a/scripts/trans-copy b/scripts/trans-copy index 125ab91..961f4f2 100755 --- a/scripts/trans-copy +++ b/scripts/trans-copy @@ -12,6 +12,7 @@ set -e # declare -a LOCALES=( + "ja-jp" "nl-nl" "pt-br" "zh-cn" diff --git a/static/_redirects b/static/_redirects index 26c86cf..08fb7b8 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,6 +1,7 @@ https://gitea-website.netlify.com/* https://gitea.io/:splat 302! https://www.gitea.io/* https://gitea.io/:splat 302! +/ /ja-jp/ 302! Language=ja / /nl-nl/ 302! Language=nl / /pt-br/ 302! Language=pt-br / /zh-cn/ 302! Language=zh-cn