← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1322630] [NEW] Setting i18n.domain breaks translation

 

Public bug reported:

Given a file:

import QtQuick 2.0
import Ubuntu.Components 0.1

Item {
    Component.onCompleted: {
        //i18n.domain = "unity8";
        console.debug(i18n.tr("Search"), "vs.", i18n.dtr("unity8", "Search"));
    }
}

The output is (provided you have unity8 installed):
$ LANG=pl_PL.UTF-8 qmlscene test.qml 
Search vs. Szukaj

But if you uncomment the commented line:
$ LANG=pl_PL.UTF-8 qmlscene test.qml 
Search vs. Search

This, more or less, means that translations are broken in the current
Ubuntu SDK...

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 0.1.46+14.10.20140520-0ubuntu1
ProcVersionSignature: Ubuntu 3.15.0-1.5-generic 3.15.0-rc5
Uname: Linux 3.15.0-1-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.14.2-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 23 15:45:09 2014
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
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/1322630

Title:
  Setting i18n.domain breaks translation

Status in “ubuntu-ui-toolkit” package in Ubuntu:
  New

Bug description:
  Given a file:

  import QtQuick 2.0
  import Ubuntu.Components 0.1

  Item {
      Component.onCompleted: {
          //i18n.domain = "unity8";
          console.debug(i18n.tr("Search"), "vs.", i18n.dtr("unity8", "Search"));
      }
  }

  The output is (provided you have unity8 installed):
  $ LANG=pl_PL.UTF-8 qmlscene test.qml 
  Search vs. Szukaj

  But if you uncomment the commented line:
  $ LANG=pl_PL.UTF-8 qmlscene test.qml 
  Search vs. Search

  This, more or less, means that translations are broken in the current
  Ubuntu SDK...

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 0.1.46+14.10.20140520-0ubuntu1
  ProcVersionSignature: Ubuntu 3.15.0-1.5-generic 3.15.0-rc5
  Uname: Linux 3.15.0-1-generic x86_64
  NonfreeKernelModules: nvidia wl
  ApportVersion: 2.14.2-0ubuntu4
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri May 23 15:45:09 2014
  SourcePackage: ubuntu-ui-toolkit
  UpgradeStatus: No upgrade log present (probably fresh install)

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


Follow ups

References