← Back to team overview

touch-packages team mailing list archive

[Bug 1394904] Re: Need context variants of i18n.tr and i18n.dtr

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => Medium

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => In Progress

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Albert Astals Cid (aacid)

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

Title:
  Need context variants of i18n.tr and i18n.dtr

Status in Ubuntu UI Toolkit:
  In Progress
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  In Progress

Bug description:
  Sometimes you need to show a small string like "All" but you need to
  give it a context so translations can translate it differently than
  other "All" occurrences in the same domain.

  Example, in the phone-app we have two occurrences of "All", one is
  about Contacts, the other about Calls, so in Spanish you need the
  first "All" translated as "Todos" and the second one as "Todas"

  So you would write i18n.ctr("All Calls", "All") and i18n.ctr("All
  Contacts", "All") in the code so there would be the possibility of
  having different translations.

  So we basically need
  https://www.gnu.org/software/gettext/manual/html_node/Contexts.html

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