安装教程参阅:
1、克隆汉化补丁仓库(速度较慢,大概耗时6小时)
$ git clone https://gitlab.com/xhang/gitlab.git
2、查看当前gitlab版本并且获取对应版本的中文补丁
$ cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
10.0.6
3、用diff将英文原版与中文版的对比生成.diff文件
$ cd gitlab
$ git diff v10.0.6 v10.0.6-zh > ../v10.0.6-zh.diff</span></span></pre></div></div></div><p style="font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><span class="lake-fontsize-12" style="color:rgb( 77 , 77 , 77 );font-size:16px">4、停止gitlab打补丁并重启</span></p><div class="lake-card-margin"><div class="lake-codeblock-content" style="border:1px solid rgb( 232 , 232 , 232 );max-width:750px;color:rgba( 0 , 0 , 0 , 0.65 );margin:0px;padding:0px;background:rgb( 249 , 249 , 249 )"><div class="CodeMirror-sizer" style="color:rgb( 89 , 89 , 89 );margin:0px;padding:16px;background:none 0% 0% / auto repeat scroll padding-box border-box rgba( 0 , 0 , 0 , 0 )"><pre class="cm-s-default" style="color:rgb( 89 , 89 , 89 );margin:0px;padding:0px;background:none 0% 0% / auto repeat scroll padding-box border-box rgba( 0 , 0 , 0 , 0 )"><span class="lake-preview-line" style="color:rgb( 89 , 89 , 89 );margin:0px;padding:0px;background:none 0% 0% / auto repeat scroll padding-box border-box rgba( 0 , 0 , 0 , 0 )"><span class="lake-preview-line-number lake-lm-pad-level-0" style="color:rgb( 191 , 191 , 191 );margin:0px 8px 0px 0px;padding:0px;background:none 0% 0% / auto repeat scroll padding-box border-box rgba( 0 , 0 , 0 , 0 )"></span><span class="lake-preview-codeblock-content" style="color:rgb( 89 , 89 , 89 );margin:0px;padding:0px;background:none 0% 0% / auto repeat scroll padding-box border-box rgba( 0 , 0 , 0 , 0 )">$ gitlab-ctl stop
#将刚才的diff文件做为补丁导入到gitlab中
#patch可能需要自行安装:yum install -y patch
$ patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../v10.0.6-zh.diff
$ gitlab-ctl start
参考
</div>