indicator-cpufreq 是一個可以省電調整CPU頻率的程式,聽說之前版本的 Ubuntu 內都有內建,之後的版本就沒有了,可能是筆電才用的到?裝完之後,發現只有簡體中文,個人看得非常不爽,就把語系檔找來翻譯了….
安裝 indicator-cpufreq
使用 apt-get 安裝:
sudo apt-get install indicator-cpufreq
裝完重新登入就可以看到右上角的 CPU 圖案了:

左邊數來第3個
修改語系
要儲存的語系檔的位置在 /usr/share/locale/zh_TW/LC_MESSAGES/indicator-cpufreq.mo
,我直接拿中國的語系檔來改,先把中國語系複製到家目錄,編輯完再塞回去:
sudo cp /usr/share/locale/zh_CN/LC_MESSAGES/indicator-cpufreq.mo ~/
複製完,把 .mo
轉為 .po
才能編輯:
msgunfmt indicator-cpufreq.mo > indicator-cpufreq.po
安裝 Poedit
使用的軟體為 Poedit,可以用來編輯語系檔案,使用 apt-get
安裝:
sudo apt-get install poedit
直接在 Unity Dash 找就有了,或是直接在 Terminal 輸入 poedit
啟動,打開剛剛轉檔好的 .po
開始編輯:

Poedit
編輯完,編譯成 .mo
就可以搬回原本的位置了,我進 zh_TW
的資料:
sudo mv ~/indicator-cpufreq.mo /usr/share/locale/zh_TW/LC_MESSAGES/indicator-cpufreq.mo
然後登出再登入就可以看到繁體中文了(有夠難截圖的)。
