gitlab漢化
https://gitlab.com/xhang/gitlab/wikis/home
很明顯安裝完成的gitlab,如果你的英文真的很爛,你懂得。
如果漢化中出現問題,請重新安裝 GitLab( 注意備份數據 )。
停止gitlab服務
sudo gitlab-ctl stop
下載漢化版本
cd /home/admin/soft git clone https://gitlab.com/xhang/gitlab.git
clone的時候可能時間會很長,或者中斷建議在下載目錄
git init git config http.postBuffer 524288000
參考:https://www.cnblogs.com/wangxu01/articles/11056780.html
查看已安裝版本
head -1 /opt/gitlab/version-manifest.txt
比較漢化版本和安裝版本,導出 patch 用的 diff 文件
git diff v11.0.0 v11.0.0-zh > ../11.0.0-zh.diff
diff文件作為補丁更新到gitlab中
sudo yum install patch -y sudo patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 11.0.0-zh.diff
重新加載配置
sudo gitlab-ctl reconfigure
啟動gitlab
sudo gitlab-ctl start
查看啟動狀態
sudo gitlab-ctl status
頁面查看