After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639794 - Reuse GtkSwitch labels translation for switch menu item
Reuse GtkSwitch labels translation for switch menu item
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 739357 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-01-17 22:05 UTC by Luca Ferretti
Modified: 2021-07-05 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ferretti 2011-01-17 22:05:52 UTC
gnome-shell and gtk+ are currently providing different ways to allow translation for ON/OFF labels in their respective switch widget.

GTK+ provides two separate translatable messages, "ON" and "OFF", and suggests translators to use MEDIUM VERTICAL BAR (U+2759) and WHITE CIRCLE (U+25CB) when the translated label could be longer then three gliphs.

GNOME Shell, instead, provides a single translatable message, forcing translator to choose between ON/OFF and I/O.

GTK+ approach seems better for some languages allowing them to use, for instance German, An/Aus

In order to have a coherent appearance, could be good for gnome-shell follow GTK+ behavior (and even better directly reuse translations available in gtk+ avoiding duplicated messages)



References:
http://git.gnome.org/browse/gnome-shell/tree/js/ui/popupMenu.js#n25
http://git.gnome.org/browse/gtk+/tree/gtk/gtkswitch.c#n552
Comment 1 Dan Winship 2011-01-17 22:57:24 UTC
I believe we basically copied iOS, which just has a split between English (or even en-US?), which gets words, and everyone else, who get the icons. But anyway, the point is to be "switch-like", and searching google images for "on/off switch" turns up lots of switches with "on" and "off" labels (in addition to switches with |/O labels), but I can't find any search string that brings up pictures of switches with "an" and "aus" labels, suggesting that switches in Germany aren't labelled that way, and so our switches shouldn't be either.

Additionally, the "text" in the gnome-shell switches is actually part of the SVG, so it's not easily made translatable.
Comment 2 Luca Ferretti 2011-01-17 23:19:00 UTC
The An/Aus was from mclasen or IRC:

<mclasen> if you give translators a chance to get it wrong, they reliably do
<andre_> some language teams are constantly screwing it up, yeah
<elleuca> not sure, but current gtkswitch approach seems more error prone, it allows any word as ON and OFF translation
 gnome-shell, instead, forces you to use ON/OF or |/O
<mclasen> right
 but maybe Germans prefer An/Aus
Comment 3 Dan Winship 2011-01-18 13:41:47 UTC
(In reply to comment #2)
> <mclasen> if you give translators a chance to get it wrong, they reliably do

yeah, originally we had it translatable, with a big note explaining the right way to do it, and we got translations like "ENCENDIDO"/"APAGADO".
Comment 4 Patryk Zawadzki 2011-03-13 16:57:50 UTC
(In reply to comment #1)
> but I can't find any search string that
> brings up pictures of switches with "an" and "aus" labels, suggesting that
> switches in Germany aren't labelled that way, and so our switches shouldn't be
> either.

Not sure about labels but switches in Europe hardly ever look like that widget. We either use flip switches where both labels are always visible or slide switches with labels surrounding the widget itself:

1 [<>  ] 0
I [<>  ] O
ON [<>  ] OFF

The only switch I could find that resembled the current widget GTK and shell use was the voltage switch on the back of my office PC. With a little twist that the labels were physically attached to the moving part so when you slid it, it did not cover the other label, but pushed it out of the view instead.

Isn't there a better way to represent the switches for the wider audience?
Comment 5 Xavier Claessens 2011-03-13 19:44:29 UTC
(In reply to comment #4)
> Isn't there a better way to represent the switches for the wider audience?

GtkCheckButton
Comment 6 Bastien Nocera 2014-11-07 18:17:50 UTC
*** Bug 739357 has been marked as a duplicate of this bug. ***
Comment 7 GNOME Infrastructure Team 2021-07-05 14:16:14 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.