i18n.noop function for tagging strings for gettext extraction
Bug #1417031 reported by
Pete Woods
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Cris Dywan | ||
Vivid |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It would be extremely useful for apps providing infographics if a pass through function for tagging existed in i18n.
e.g. i18n.noop("my string to extract but not translate")
This would be the equivalent of the N_ / gettext_noop function, but for QML.
Related branches
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/i18nctag
- Tim Peeters: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 221 lines (+95/-5)9 files modified.bzrignore (+1/-0)
components.api (+7/-0)
modules/Ubuntu/Components/plugin/i18n.cpp (+40/-1)
modules/Ubuntu/Components/plugin/i18n.h (+3/-1)
po/update-pot.sh (+2/-1)
tests/unit/tst_i18n/po/en_US.po (+7/-0)
tests/unit/tst_i18n/src/LocalizedApp.qml (+15/-1)
tests/unit/tst_i18n/src/tst_i18n.cpp (+13/-0)
tests/unit/tst_i18n/tst_i18n.pro (+7/-1)
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/i18ntagRTM
- Tim Peeters: Approve
-
Diff: 144 lines (+58/-3)8 files modifiedcomponents.api (+3/-0)
modules/Ubuntu/Components/plugin/i18n.cpp (+27/-0)
modules/Ubuntu/Components/plugin/i18n.h (+1/-0)
po/update-pot.sh (+1/-1)
tests/unit/tst_i18n/po/en_US.po (+3/-0)
tests/unit/tst_i18n/src/LocalizedApp.qml (+7/-0)
tests/unit/tst_i18n/src/tst_i18n.cpp (+9/-1)
tests/unit/tst_i18n/tst_i18n.pro (+7/-1)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
importance: | Undecided → High |
status: | New → Confirmed |
summary: |
- i18n.tag function for tagging strings for gettext extraction + i18n.noop function for tagging strings for gettext extraction |
description: | updated |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | New → Fix Released |
To post a comment you must log in.
Perhaps we could name it i18n.noop() to follow the gettext convention? It seems N_ is generally an alias to the gettext_noop macro [1]:
#define N_(String) gettext_noop (String)
[1] http:// www.gnu. org/software/ gettext/ manual/ gettext. html