Name entry in desktop file not localized
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Undecided
|
Unassigned | ||
| | ubuntu-system-settings (Ubuntu) |
High
|
Sebastien Bacher | ||
| | ubuntu-system-settings (Ubuntu RTM) |
High
|
Sebastien Bacher | ||
Bug Description
In ubuntu-
[Desktop Entry]
Name=System Settings
ubuntu-
Installed: 0.3+15.
current build number: 232
device name: krillin
channel: ubuntu-
Related branches
- Iain Lane: Approve on 2015-02-13
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-02-13
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/qml/MainWindow.qml (+1/-1)
| summary: |
- Apps untranslated in Notifications + Name entry in desktop file not localized |
| Sebastien Bacher (seb128) wrote : | #1 |
| Changed in ubuntu-system-settings (Ubuntu): | |
| assignee: | nobody → Sebastien Bacher (seb128) |
| importance: | Undecided → High |
| status: | New → In Progress |
| Sebastien Bacher (seb128) wrote : | #2 |
In fact that works on the desktop in unity7 and not under an unity8 session on the same machine. The code uses g_app_info_
| Sebastien Bacher (seb128) wrote : | #3 |
Ok, that was "fun" debugging, summmary of the issue
- g_app_info_
- g_dgettext() decides on the translation strategy based on the return of the first call
- ubuntu-
- the first u-s-s call to g_dgettext() is made after that init, which has the wrong domain and leads to d_gettext() settling for "translations shouldn't be active there"
to add to the fun
- under unity7 the first call to g_dgettext() is made on start by external component providing desktop integration (theme, appmenu, ...), those calls success and enable translations, workarounding the previously described issues ... those components are not enabled under Mir though which explains why the bug seen only under unity8
In summary, changing applicationName to be "ubuntu-
| Sebastien Bacher (seb128) wrote : | #4 |
The issue I debugged, which is what Victor reported on IRC, is that the name doesn't show translated in the notifications panel. Since that got uses gappinfo to get the name it should get the translations through gettext. We might still need to unstrip the .desktop as well though because unity8 doesn't use gettext to get the display name iirc
| Changed in ubuntu-system-settings (Ubuntu RTM): | |
| importance: | Undecided → High |
| assignee: | nobody → Sebastien Bacher (seb128) |
| status: | New → In Progress |
| Sebastien Bacher (seb128) wrote : | #5 |
In fact it seems fine on the launcher and the start screen, assuming that the patch is enough then :-)
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Sebastien Bacher ]
* bluetooth: workaround for a bluez bug where the number of entered
digits in DisplayPasskey pairing doesn't make sense. Only update the
passkey hint while typing if the number is <= 6.
* change applicationName MainView's property to be "ubuntu-system-
settings" rather than "SystemSettings", the documentation says it
should match the desktop file name. The toolkit also sets the
textdomain to that value which leads to translation issues, even if
the domain is changed again later on, since glib does some init
based on the return value of the first call to g_dgettext for
example (LP: #1420404)
-- CI Train Bot <email address hidden> Fri, 13 Feb 2015 18:43:07 +0000
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | New → Fix Released |
| Changed in ubuntu-system-settings (Ubuntu RTM): | |
| status: | In Progress → Fix Released |


Confirmed, looking at the issue