GNOME Bugzilla – Bug 739357
drop custom implementation of Switch in js/ui/popupMenu.js in favor of GtkSwitch
Last modified: 2014-11-07 18:17:50 UTC
js/ui/popupMenu.js contains a custom implementation of Switch. The widget is visually nearly equal to the new GTK+3 GtkSwitch widget and IMHO it should be replaced by it. These implementation diverged in translations, which causes inconsistencies in gnome-shell look. GTK+3 GtkSwitch widget allows to use arbitrary short text or ○/❙. gnome-shell Switch allows only ON/OFF and ○/❙. For example: German: gnome-shell: ON/OFF elsewhere: AN/AUS Danish: gnome-shell: ❙/○ elsewhere: TIL/FRA Japanese: gnome-shell: ON/OFF elsewhere: オン/オフ Simplified Chinese: gnome-shell: ON/OFF elsewhere: 开启/关闭
Unfortunately you cannot use GTK+ widgets inside GNOME Shell due to the way it, and GTK+, are both architected, though that's something I'd love to change. Feel free to improve the implementation of GNOME Shell's widget.
Bug 639794 is specifically about reusing the translations from GTK+ in gnome-shell, so marking as a duplicate. *** This bug has been marked as a duplicate of bug 639794 ***