← Back to team overview

touch-packages team mailing list archive

[Bug 1354501] [NEW] Do not use class static translatable messages

 

Public bug reported:

const std::string PreviewStrategy::INFO_LABEL = _("Info");
const std::string PreviewStrategy::UPDATES_LABEL = _("Updates");
const std::string PreviewStrategy::WHATS_NEW_LABEL = _("What's new");

Are wrong because as they are class static they are initialized "at the
beginning of the times" and thus the language and translation domain are
not set which means you end up with stuff untranslated even if it is
correctly translated in the .po file.

** Affects: unity-scope-click (Ubuntu)
     Importance: High
     Assignee: Alejandro J. Cura (alecu)
         Status: Triaged


** Tags: qa-daily-testing rtm14

** Tags added: qa-daily-testing rtm14

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scope-click in
Ubuntu.
https://bugs.launchpad.net/bugs/1354501

Title:
  Do not use class static translatable messages

Status in “unity-scope-click” package in Ubuntu:
  Triaged

Bug description:
  const std::string PreviewStrategy::INFO_LABEL = _("Info");
  const std::string PreviewStrategy::UPDATES_LABEL = _("Updates");
  const std::string PreviewStrategy::WHATS_NEW_LABEL = _("What's new");

  Are wrong because as they are class static they are initialized "at
  the beginning of the times" and thus the language and translation
  domain are not set which means you end up with stuff untranslated even
  if it is correctly translated in the .po file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scope-click/+bug/1354501/+subscriptions


Follow ups

References