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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1576282

Title:
  Snaps built from deb can't be gettext translated

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1576282/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to