New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: language: Add support for click language packs #84

wants to merge 3 commits into
base: xenial


None yet
1 participant

mardy commented Sep 30, 2018

Experimental branch, do not merge yet.

This can be tested by making the image read-write (sudo mount -o rw,remount /), installing the new system-settings packages from Jenkins, then downloading a few clicks from on the device and installing them:

pkcon  --allow-untrusted install-local

Then, if you open the System Settings and go to the language page, you should see that you can only choose among the languages you installed. And if you confirm the new language and reboot, everything should work as expected.

Of course, the whole point of this effort is to get a smaller rootfs: this is available from but I haven't yet verified if it works. :-)


  • Include in the clicks also the keyboard prediction files (/usr/share/maliit/plugins/com/ubuntu/lib/*): if we include only the databases, we can probably keep the .click files architecture independent; or we need to find a way to avoid the need for the binary .so files
  • Add a "Install more languages" button to the System Settings
  • Automatically upload the language clicks to the Open Store
  • Update the Ubports installer to optionally use the new rootfs; and if we manage to find a way to preinstall the clicks onto the rootfs, we could even make the user select the desired languages from the installer

mardy added a commit to mardy/click-reviewers-tools that referenced this pull request Oct 13, 2018

@mardy mardy referenced this pull request Oct 13, 2018


Add language packs support #3

mardy added some commits Sep 30, 2018

language: Add support for click language packs
Add a click system hook for language packages: with the CI job at we create click
packages carrying the translations (both `locale` and `locale-langpack`
directories) and the spell-checking files (`hunspell`). Once these
packages are installed, our system hook goes through their contents and
prepares symlins and bind mounts as appropriate.

Note: since the system hooks are executed at every boot, there's no need
to prepare a special upstart script for mounting the locale data.
wip: Allow installing language clicks
If language packs were not already included in the rootfs, show a button
to allow installing the language packs from the store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment