Install i18n from Source

After successfull compile of 5.99 there are no po or mo files on the system. Switching the language for Default/English/Portuguese/German is doing nothing and also not issue any error message on my system. All other languages from menue pop up with a modal dialog „Kicad Error - locale xx_XX cannot be set. To add i18n support I tried the following:

jv@JamesWebb:~$ git clone git@gitlab.com:kicad/code/kicad-i18n.git
Klone nach 'kicad-i18n' ...
remote: Enumerating objects: 150, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (68/68), done.
remote: Total 9101 (delta 71), reused 105 (delta 47), pack-reused 8951
Empfange Objekte: 100% (9101/9101), 59.20 MiB | 5.70 MiB/s, Fertig.
Löse Unterschiede auf: 100% (4450/4450), Fertig.
jv@JamesWebb:~$ cd kicad-i18n
jv@JamesWebb:~/kicad-i18n$ ls
bg  CMakeLists.txt  de  en  fi  hu  ja  LINGUAS  nl  plot_i18n_status.py  pt           ru  sl  update-po-files.sh  zh_TW
ca  cs              el  es  fr  it  ko  lt       pl  POTDIRS              README.adoc  sk  sv  zh_CN
jv@JamesWebb:~$ cd kicad-i18n
jv@JamesWebb:~/kicad-i18n$ BUILD_SRC=$(pwd)
jv@JamesWebb:~/kicad-i18n$ mkdir -p ~/tmp/kicad-i18n_build
jv@JamesWebb:~/kicad-i18n$ cd ~/tmp/kicad-i18n_build
jv@JamesWebb:~/tmp/kicad-i18n_build$ echo $BUILD_SRC
/home/jv/kicad-i18n
jv@JamesWebb:~/tmp/kicad-i18n_build$ cmake $BUILD_SRC
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jv/tmp/kicad-i18n_build
jv@JamesWebb:~/tmp/kicad-i18n_build$ sudo make install
[sudo] Passwort für jv: 
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/share/kicad/internat/bg/kicad.mo
-- Installing: /usr/local/share/kicad/internat/ca/kicad.mo
-- Installing: /usr/local/share/kicad/internat/cs/kicad.mo
-- Installing: /usr/local/share/kicad/internat/de/kicad.mo
-- Installing: /usr/local/share/kicad/internat/el/kicad.mo
-- Installing: /usr/local/share/kicad/internat/en/kicad.mo
-- Installing: /usr/local/share/kicad/internat/es/kicad.mo
-- Installing: /usr/local/share/kicad/internat/fi/kicad.mo
-- Installing: /usr/local/share/kicad/internat/fr/kicad.mo
-- Installing: /usr/local/share/kicad/internat/hu/kicad.mo
-- Installing: /usr/local/share/kicad/internat/it/kicad.mo
-- Installing: /usr/local/share/kicad/internat/ja/kicad.mo
-- Installing: /usr/local/share/kicad/internat/ko/kicad.mo
-- Installing: /usr/local/share/kicad/internat/lt/kicad.mo
-- Installing: /usr/local/share/kicad/internat/nl/kicad.mo
-- Installing: /usr/local/share/kicad/internat/pl/kicad.mo
-- Installing: /usr/local/share/kicad/internat/pt/kicad.mo
-- Installing: /usr/local/share/kicad/internat/ru/kicad.mo
-- Installing: /usr/local/share/kicad/internat/sk/kicad.mo
-- Installing: /usr/local/share/kicad/internat/sl/kicad.mo
-- Installing: /usr/local/share/kicad/internat/sv/kicad.mo
-- Installing: /usr/local/share/kicad/internat/zh_CN/kicad.mo
-- Installing: /usr/local/share/kicad/internat/zh_TW/kicad.mo
jv@JamesWebb:~/tmp/kicad-i18n_build$ 

For my opinion, installation seems successfull and Kicad now switches between Default/English/Portuguese/German language while the OS language appears for default. Unfortunately all other languages (like French) pop up with same modal error message than before. My W10 stable release installation always shows all languages including greek and chinese with diffrent character sets what I cant read. Are there any further system prerequisites ? As far as I understand I do not have to compile for po/mo changes

Already solved: In comparison to Windows, Gnome needs to install the language packs for each language to switch to. The successfull switching languages were those I already used for the OS. Probably rarely anybody tries to switch to a language what is not available in system.

1 Like