GNOME Bugzilla – Bug 741215
[PATCH] libnm-gtk: fix library gettext usage
Last modified: 2015-01-12 15:51:03 UTC
Hi, I'm not sure, but I think that the word "Wired" (displayed above "Wi-Fi" and "Battery" when you click on the right of the top bar) is missing in gnome-shell.master.pot and gnome-shell.gnome-3-14.pot. Thanks again for your time and word, Yvan
The device description is picked up from NetworkManager, so the string "Wired" is not in the .pot file because it does not appear in gnome-shell. However it looks like the string should have a French translation, what version of NetworkManager are you using?
Ok, thanks for the tip. I'm using NetworkManager 1:0.9.10.0-14.git20140704.fc21 from Fedora 21. NetworkManager-wifi has the same version number.
Indeed, I found a similar string here : http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/po/fr.po#n6129 I just checked the source of the package Fedora 21 provides (still 0.9.10.0-14.git20140704.fc21) and the fr.po file is not the same : I suppose it is outdated. You can grab the package for example at http://mirrors.ircam.fr/pub/fedora/linux/updates/21/SRPMS/n/NetworkManager-0.9.10.0-14.git20140704.fc21.src.rpm I think I should report this to Fedora instead. If you agree, feel free to close this bug. Yvan
The string actually comes from libnm-gtk, but it looks like libnm-gtk is broken and (a) not calling bindtextdomain, and (b) using gi18n.h rather than gi18n-lib.h, so it's not picking up its translations when used from gnome-shell (though they work from nm-applet and nm-connection-editor). (cf http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=53f5e9af for the corresponding libnm-util fix)
Fast and beautiful diagnostic !
Created attachment 292300 [details] [review] 0001-libnm-gtk-fix-library-gettext-usage-bgo-741215.patch
(In reply to comment #6) > Created an attachment (id=292300) [details] [review] > 0001-libnm-gtk-fix-library-gettext-usage-bgo-741215.patch LGTM
Pushed as: commit 078b945806b56ff663d051fdd9c228e7ef68d23e libnm-gtk: fix library gettext usage (bgo #741215)
And for nma-0-9-10: commit cd7e1714a1af8c992a8829287e74e1882aa351ff