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