[i18n] internationalization can't be used in C++

Bug #1078630 reported by Michał Sawicz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Opinion
Wishlist
Tim Peeters

Bug Description

I would expect to be able to use the same i18n setup in both C++ and QML.

Tags: i18n
Revision history for this message
Tim Peeters (tpeeters) wrote :

What does this mean? None of our components are available in C++.

We use gettext, so that's what you use in C++.
The gettext that we use is exactly the same as the one you can use in C++, so it will have the same settings/libs/dictionaries.

Changed in tavastia:
status: New → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Of course, but using tools provided by Ubuntu Components would be convenient. If you guys decide that's not what they are supposed to provide, that's fine with me, only I was surprised not to be able to use them in C++. Gettext is probably a special enough case to warrant providing that convenience.

Revision history for this message
Tim Peeters (tpeeters) wrote :

We could provide a header file with #defines that makes the tr() functions available by mapping them to gettext() calls, in the same way as we did for the QML binding. That makes things more consistent.

Changed in tavastia:
status: Incomplete → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Tim Peeters (tpeeters) wrote :

actually it is there already, but we need to make i18n.h available as an "official" API.

Changed in tavastia:
assignee: nobody → Tim Peeters (tpeeters)
status: Confirmed → Triaged
Tim Peeters (tpeeters)
information type: Proprietary → Public
affects: tavastia → ubuntu-ui-toolkit
Changed in ubuntu-ui-toolkit:
assignee: Tim Peeters (tpeeters) → nobody
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: Triaged → Opinion
Revision history for this message
Albert Astals Cid (aacid) wrote :

Opinion? Really? sad

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.