ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00300
[Bug 1259540] Re: Translations aren't always loaded
** Also affects: ubuntu-ui-toolkit
Importance: Undecided
Status: New
--
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/1259540
Title:
Translations aren't always loaded
Status in Ubuntu UI Toolkit:
New
Status in “ubuntu-ui-toolkit” package in Ubuntu:
New
Bug description:
In
https://code.launchpad.net/~kalikiana/ubuntu-ui-
toolkit/xdglocale/+merge/188359
i18n::setDomain() was updated to call bindtextdomain on the first of
the XDG data directories that it finds has a "locale" subdirectory.
This happens regardless of whether the translations are actually
installed there and, if they are not, causes gettext to not find them.
To reproduce:
1. Have no translations for your UITK-using-and-translated application in /usr/local/share/locale
2. Make sure that directory exists
3. Set LC_MESSAGES=<some locale that should work, eg de_DE.UTF-8>
4. Launch the application
5. It isn't translated
Then remove /usr/local/share/locale and note that the application is
now translated.
The UITK needs to either replicate the algorithm that gettext uses to
find .mo files before calling bindtextdomain() on a directory, or it
needs to not call bindtextdomain() by default. If it's not called then
gettext will use the system location, which is usually right. App
authors will need to override it themselves if necessary (already
possible). Crucially, you have to not call it unless you /know/ that
the translations are there.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 0.1.46+14.04.20131129-0ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-5.13-generic 3.12.2
Uname: Linux 3.12.0-5-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.7-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Dec 10 13:03:51 2013
InstallationDate: Installed on 2012-10-07 (428 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121007)
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: Upgraded to trusty on 2013-05-07 (217 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1259540/+subscriptions
References