歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 給Ubuntu的KDevelop安裝中文包

給Ubuntu的KDevelop安裝中文包

日期:2017/2/28 17:04:18   编辑:Linux教程

一、

apt-get install kdevelop

本來想這麼簡單的就能完成的,一看,得!英文版,那也行湊合這用吧,編譯測試程序。

#ifdef HAVE_CONFIG_H

#include <config.h>

#endif

#incude <iostream>

#include <stdlib>

using namespace std;

int main(int argc, char* argv[])

{

cout<<""<<endl;

cin.get();

return EXIT_SUCCESS;

}

居然編譯不通過,立馬暈倒。提示也沒看太清楚,意思是沒有alocal這個工具。

暈,那就先裝atuomake吧。

完畢又有錯了,查了一下原來還要裝libtool暈。

都裝上吧。

編譯通過。

不過英文界面就是不太適應。下載gettext工具

運行msgfmt *.po -o *.mo 把mo復制到/usr/share/locale-langpack/zh_CN/LC_MESSAGES/

下。重啟kdevelop漢化70%

二、

Ubuntu 安裝了KDevelop後發現是英文界面,許多專業術語,四處查找,將安裝中文包的方法敘述如下。

1、下載中文包,在該網頁上顯示了目前的本地化進度

http://l10n.kde.org/stats/gui/stable/team/zh_CN/kdevelop/ 下載KDevelop的漢化文件

2. 執行:msgfmt kdevelop.po -o kdevelop.mo

3. sudo cp kdevelop.mo /usr/share/locale-langpack/zh_CN/LC_MESSAGES/

4. 啟動kdevelop

注意事項,msgfmt在有的Ubuntu上可能沒有安裝,要是搜索安裝msgfmt這個軟件是找不到的,其實應該安裝的是下列軟件

sudo aptitude install gettext就ok了

Copyright © Linux教程網 All Rights Reserved