注意gitlab的版本需和汉化版本一致
yum install -y git
cd
git clone https://gitlab.com/xhang/gitlab.git -b v10.0.4-zh
//( -b v10.0.2-zh 版本号自己选) 查看gitlab版本号 head -1 /opt/gitlab/version-manifest.txt
cat gitlab/VERSION
gitlab-ctl stop
cd /root/gitlab
git diff v10.0.4 v10.0.4-zh > ../10.0.4-zh.diff
cd /
yum install patch -y
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 10.0.4-zh.diff
gitlab-ctl start
gitlab-ctl reconfigure
基于CentOS7.x gitlab环境搭建,卸载,汉化 --汉化篇
原文:https://www.cnblogs.com/hanby/p/14361596.html