← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1233071] Re: Set up the translation domain automatically for click packages

 

This was fixed at some point, and it's worked well for a while, but
we've regressed and I've thus opened a follow up bug 1317772

** Changed in: ubuntu-ui-toolkit
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1233071

Title:
  Set up the translation domain automatically for click packages

Status in Ubuntu UI Toolkit:
  Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released

Bug description:
  Right now, the i18n plugin is initialized automatically for QML apps
  in the sense that i18n.domain is set to the name of the app and
  i18n.textdomain is set to /usr/share/locale. This way developers can
  start using the i18n system straight away without having to worry to
  initialize it (which they can nevertheless do, if they want to
  override the default settings).

  However, with click packages the i18n.textdomain assumption does no
  longer hold true, as the translations will not be installed in the
  system locations.

  For click packages, i18n.textdomain should be set to
  @{CLICK_DIR}/@{APP_PKGNAME}/@{APP_VERSION}/locale instead of
  /usr/share/locale

  Note: the last statement should be double-checked with the security
  team. The requirement for gettext to work is that the folder hierarchy
  under locale/ stays the same as the layout in /usr/share/locale, but
  the prefix can be any specified as i18n.textdomain.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1233071/+subscriptions