{"id":13823823,"url":"https://github.com/ksoichiro/gitlab-i18n-patch","last_synced_at":"2025-04-12T05:37:34.040Z","repository":{"id":15274316,"uuid":"18003657","full_name":"ksoichiro/gitlab-i18n-patch","owner":"ksoichiro","description":"Unofficial Japanese translation for GitLab Community Edition.","archived":false,"fork":false,"pushed_at":"2019-01-27T00:35:25.000Z","size":37637,"stargazers_count":95,"open_issues_count":0,"forks_count":26,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-03-26T01:03:37.004Z","etag":null,"topics":["gitlab","i18n","translation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksoichiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-22T06:32:54.000Z","updated_at":"2023-06-02T09:03:25.000Z","dependencies_parsed_at":"2022-08-04T03:00:19.888Z","dependency_job_id":null,"html_url":"https://github.com/ksoichiro/gitlab-i18n-patch","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fgitlab-i18n-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fgitlab-i18n-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fgitlab-i18n-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fgitlab-i18n-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksoichiro","download_url":"https://codeload.github.com/ksoichiro/gitlab-i18n-patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525168,"owners_count":21118616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitlab","i18n","translation"],"created_at":"2024-08-04T09:00:45.691Z","updated_at":"2025-04-12T05:37:33.969Z","avatar_url":"https://github.com/ksoichiro.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# gitlab-i18n-patch\n\n[![Build Status](https://travis-ci.org/ksoichiro/gitlab-i18n-patch.svg?branch=master)](https://travis-ci.org/ksoichiro/gitlab-i18n-patch)\n\n[GitLab Community Edition](https://gitlab.com/gitlab-org/gitlab-ce)を勝手に日本語化していくプロジェクトです。\n\nGitLab は i18n に対応しないとのことですが、  \n社内で使う場合等で英語であるために導入の抵抗があるケースのために作っています。\n\nこのパッチを適用することによって生じたいかなる問題についても責任は負いかねます。  \n各自の判断でご利用ください。\n\n\u003e **注意**: GitLab v9.2 より公式に国際化がサポートされ、v9.4 より日本語も選択できるようになっています。このパッチを適用される前に、公式の日本語の利用についてもご検討ください。\n\n## 対応バージョン\n\npatches ディレクトリ内に GitLab のバージョンごとにパッチを格納しています。  \nバージョンが少しでも異なると適用できませんので、完全に一致するバージョンを選んでください。  \nv8.3.0 以降のパッチは [i18n-patch](https://github.com/ksoichiro/i18n-patch) を利用して生成しています。  \nご希望のバージョンが登録されていない場合は、ご自身で生成することができます。\n\n## 動作確認環境\n\n| ソフトウェア | バージョン等                 |\n| ------------ | ---------------------------- |\n| マシン       | MacBookPro                   |\n| OS           | OS X 10.12                   |\n| VM           | VirtualBox 5.1.4             |\n| ゲスト OS    | Ubuntu Precise 64 VirtualBox |\n| GitLab       | GitLab Omnibus Package       |\n| Vagrant      | Vagrant 1.8.5                |\n| Docker       | 17.03.1-ce                   |\n| Node.js      | v7.8.0                       |\n\n## 適用方法\n\n### 前提\n\n[GitLab Community Edition のパッケージ](https://about.gitlab.com/downloads/)がインストールされているものとします。\n\n### 基本\n\n`patches/[GitLabバージョン]/app_ja.patch`がパッチです。  \nパッチを適用する GitLab のバージョンと完全に一致するものを選びます。  \nリポジトリをクローンするか、wget、curl などで直接パッチファイルをダウンロードします。  \n以下は wget で v8.16.6 のパッチを取得する例です。\n\n    $ wget https://raw.githubusercontent.com/ksoichiro/gitlab-i18n-patch/master/patches/v8.16.6/app_ja.patch\n\n例えばホームディレクトリにパッチファイルを配置した場合、以下で適用します。\n\n    $ cd /opt/gitlab/embedded/service/gitlab-rails\n    $ patch -p1 \u003c ~/app_ja.patch\n\nなお、このプロジェクトでは過去には GitLab のバージョンごとにブランチを用意して  \nタグづけ(リリース)していたため、[master ブランチ以外のブランチ](https://github.com/ksoichiro/gitlab-i18n-patch/branches/all)や  \n[v0.24.1 などのリリース](https://github.com/ksoichiro/gitlab-i18n-patch/releases)が残っていますが、翻訳の作成方法を変更したため、これらは現在運用していません。  \nmaster ブランチの最新のコミットを利用してください。\n\n### 既に稼働させている場合\n\nJavascript ファイルを変更するため、パッチ適用後にプリコンパイルされたファイルを一度削除してプリコンパイルし直してください。\n\n例：\n\n    $ cd /opt/gitlab/embedded/service/gitlab-rails\n    $ rm -rf public/assets\n    $ export PATH=/opt/gitlab/embedded/bin:$PATH\n    $ bundle exec rake assets:precompile RAILS_ENV=production\n\n## 動作確認\n\n### Vagrant での動作確認\n\n各バージョンのパッチの動作確認のために、Vagrant で日本語反映版の GitLab を起動できます。\n\n#### 起動\n\n以下のコマンドで、指定のバージョン用の仮想マシン起動、GitLab Omnibus パッケージダウンロード、パッチ適用を行います。  \n例えば v6.6.4 ならば以下のようにします。\n\n    $ vagrant up v664\n\n#### 停止\n\n以下で停止します。\n\n    $ vagrant halt\n\n#### 破棄\n\n以下で仮想マシンを破棄します。\n\n    $ vagrant destroy\n\n#### ポート番号\n\nWeb のポート番号(80)は、 `config/gitlab.yml` に定義する `base_port` の番号を起点として  \nバージョン番号(v6.6.4 なら 664)を加えた番号にポートフォワードします。  \n例えば、 `base_port: 9000` の状態で `vagrant up v664` を実行した場合は  \n`http://localhost:9664` で GitLab にアクセスできます。  \nv7.10.0 の場合は(番号が飛びますが)7100 + 9000 で 16100 です。\n\n### Docker での動作確認\n\nGitLab Community Edition の Docker イメージが公開されているものについては、Docker を使って動作確認できます。  \n公開されているイメージ(タグ)については[Docker Hub](https://hub.docker.com/r/gitlab/gitlab-ce/tags/)で確認してください。  \n`9.0.4-ce.0` のように、`バージョン-ce.0`の形式になっているタグがあれば、  \n日本語化版をビルドして利用することができます。\n\n`docker`コマンドや`docker-compose`コマンドを利用して手作業でビルドしていただくことができますが、以下のような部分をバージョンに応じて切り替える手間を省き、手軽に動作確認できるよう Node.js/npm のスクリプトでラッピングしています。\n\n- ソースイメージのバージョン(Dockerfile の FROM)\n- 適用するパッチのバージョン\n- マウントする各種ディレクトリ\n\n#### 起動\n\n以下を実行します。  \n最後のバージョンは、必要に応じて読み替えてください。\n\n    $ npm run docker up v9.0.4\n\nアクセスできるようになるまでにはしばらく時間がかかります。\n\n#### 停止\n\n以下を実行します。  \n最後のバージョンは、必要に応じて読み替えてください。\n\n    $ npm run docker down v9.0.4\n\n#### ビルド\n\n以下を実行します。  \n最後のバージョンは、必要に応じて読み替えてください。\n\n    $ npm run docker build v9.0.4\n\n#### その他の操作\n\n各種ファイルは `.docker/バージョン` ディレクトリに生成され、ビルドされています。  \nデータやファイルもこのディレクトリに生成されています。  \n上記以外の操作については、このディレクトリに移動して `docker-compose` コマンドで行なってください。\n\n#### ポート番号\n\nVagrant の場合と同様です。  \nv9.0.4 を起動した場合は `http://localhost:9904` でアクセスできます。\n\n## ライセンス\n\nCopyright (c) 2014 Soichiro Kashima  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksoichiro%2Fgitlab-i18n-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksoichiro%2Fgitlab-i18n-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksoichiro%2Fgitlab-i18n-patch/lists"}