小智 36
通过滥用 gettext 翻译系统,有一种比doug 的方法更快的方法。假设您使用的是英语语言环境:
#Make a temporary text file using vim/gedit/cat/whatever
cat > /tmp/foo.po
msgid "Ubuntu Desktop"
msgstr "A Badger With A Gun"
^D
cd /usr/share/locale/en/LC_MESSAGES
sudo msgfmt -o unity.mo /tmp/foo.po
Run Code Online (Sandbox Code Playgroud)
然后,要么注销并重新登录,要么直接执行:
unity --replace
Run Code Online (Sandbox Code Playgroud)
dou*_*oug 13
您可能需要构建unity 或 unity-2d 源。目前,在 unity-5.12 中,可以在/plugins/unityshell/src/PanelMenuView.cpp
第 78 行中找到它:
_desktop_name(_("Ubuntu Desktop"))
Run Code Online (Sandbox Code Playgroud)
在 unity-2d, unity-2d 5.12: 中/panel/applets/appname/appnameapplet.cpp
,第 369 行:
d->m_label->setText(u2dTr("Ubuntu Desktop"));
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
33247 次 |
最近记录: |