Comment 3 for bug 1576282

Revision history for this message
Olivier Tilloy (osomon) wrote :

Applications written in QML using the ubuntu UI toolkit and the desktop/qt5 part should be covered: the desktop-launch script sets the APP_DIR environment variable to the value of $SNAP¹, and UbuntuI18n::setDomain(…) calls bindtextdomain() with $APP_DIR/share/locale².

However I’m not seeing this work. Testing with a snap of webbrowser-app, the compiled translations are correctly packaged under $SNAP/share/locale/[lang]/LC_MESSAGES/webbrowser-app.mo, however the UI appears untranslated.

¹ https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/qt/launcher-specific#L29
² https://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/src/Ubuntu/Components/plugin/i18n.cpp#L117