When you open your Ubuntu, many English words are used. For example, accessories, education, graphics, internet, office, other, sound, video, system tools, preferences, run, and log out will all appear in the GUI.
How can I get a list of all English words used in the Ubuntu GUI?
I want a list of all English words so I can translate them into Chinese, to create a glossary for Ubuntu: a guide in Chinese to English-language Ubuntu terminology. This would work as a mini dictionary: a two-columns file with English on the left and Chinese on the right.
It is a joke to write the whole thing just from looking at the words on the GUI. I want a smart way to do the task. Is there a list of all the words used by Ubuntu?
Typing by hand as I come across words in the GUI is a foolish way to get the task done.
- Copy out all English words one-by-one from the GUI when the locale is set to
en_us
. - Copy out all Chinese words one-by-one from the GUI when the locale is set to
zh
. - Put them together in one file, with English on the left and Chinese on the right.
Is there a smarter way to do this?
Which character in my /usr/lib/locale/locale-archive ?
There are many ways which are used to store internationalized strings depending on the GUI toolkits or specifications.
The ones shown in the screenshot are from menu
.directory
files. Use same standard as.desktop
from freedesktop project. See Desktop Entry Specification: Localized values for keysHere a script to extract them
Create a shell file
Add
Make it executable
Run it on menu directory entries
Here is an output sample
If you want application menu entries too
Here is an output sample
Other translations of Unity GUI is using
gettext
.Files having the
.gmo
or.mo
extension, are the final binary format. Check:The source files have
.po
extension, you can download them from https://translations.launchpad.net/ or by downloading the complete source, example:Other GUI toolkits like Qt & Java are using different formats.
Search for Ubuntu Translations https://wiki.ubuntu.com/Translations/
You can get the Expressions and Translations there.
I think he is referring to another problem. On my Ubuntu I have setup English, Hebrew and French. You have to go to System Settings, Language Support and add the additional languages.
To have it boot up in a different language, you drag the preferred language to the top of the list. For me, it works like a charm.
Start it up in a VM, take screenshots, run a OCR tool on the pictures. This is only a little better than doing it by hand. It would be great if you could just pipe the text into a file, but the os that would do that isnt awake yet.
A chinese version of Ubuntu is available and supported: Ubuntu Kylin
Along with different features, i think a type of this in english but no features removed would be actually pretty good.