I believe that many of my friends, like me, can't do without a dictionary when reading the source code, but there are very few dictionaries available in Ubuntu, And the only interstellar translation king has not been updated for a long time, but there is always better than not. Just install an interstellar translation king ~ Struggle! Programmers ~
1. Enter the following command in the terminal (shortcut: CTRL + ALT + T) to obtain the starship dictionary
Sudo apt-Get install stardict
2. Install the starship dictionary
1, download the required dictionary in the http://stardict.sourceforge.net/cn/Dictionaries_zh_CN.php, pay attention to select the "tarbal" format, do not select the "rpm" format. The following uses the Lang Dao English-Chinese dictionary as an example;
2. Download The stardict-langdao-ec-gb-2.4.2.tar.bz2 file;
3、right-click the stardict-langdao-ec-gb-2.4.2.tar.bz2 file and select "decompress here ";
4. Open the folder "File System -- USR -- share ";
5. Right-click the "stardict" folder and select "open as administrator ";
6. Open the folder "dic". If there is no such folder, create a new one;
7. Copy the three files in the folder "stardict-langdao-ec-gb-2.4.2": "langdao-ec-gb.dict.dz, langdao-ec-gb.idx, langdao-ec-gb.ifo" to the DIC folder;
8. Restart the interstellar translation king and choose dictionary management from the menu to view the added dictionary.