Gitlab漢化須要看一下版本號git
cat /opt/gitlab/embedded/service/gitlab-rails/VERSIONapp
11.4.5-eegitlab
獲取gitlab漢化包fetch
git clone https://gitlab.com/xhang/gitlab.gitcode
cd gitlabit
git fetchtable
gitlab-ctl stopclass
git diff origin/11-4-stable origin/11-4-stable-zh > /tmp/11.4.diff配置
cd /opt/gitlab/embedded/service/gitlab-rails git apply /tmp/11.4.diff patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 11.4.diff #這步好像能夠不用,我直接打上了(第一次啓動時須要使用這個命令,或修改過總配置後) gitlab-ctl reconfigure #啓動 gitlab-ctl start
注:在進行漢化時提早備份,防止發生意外不能及時回退service
備份目錄:
/opt/gitlab/embedded/service/gitlab-rails