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 726498 - Geolocation strings are misleading
Geolocation strings are misleading
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: system-status
3.11.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
3.12
: 727476 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-03-17 09:36 UTC by Allan Day
Modified: 2014-04-02 06:59 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
location: Improved language (1.93 KB, patch)
2014-03-20 13:18 UTC, Zeeshan Ali
reviewed Details | Review
v2: React to changes in 'InUse' property. (2.59 KB, patch)
2014-03-20 13:45 UTC, Zeeshan Ali
needs-work Details | Review
location: Improved language (2.38 KB, patch)
2014-03-20 14:07 UTC, Zeeshan Ali
committed Details | Review

Description Allan Day 2014-03-17 09:36:11 UTC
The Location section in the system status menu has two possible states: "On" or "Off". The submenu also includes a "Turn Off" or "Turn On" item.

These strings are misleading: when geolocation is on, it usually actually isn't "on" - it is available to be used, but it isn't actually running.

The following strings would provide clearer feedback about what is going on:

 * "Enabled"
 * "Disabled"
 * "In use"

With this schema the submenu would have "Enable" and "Disable" actions, rather than "Turn On" and "Turn Off".
Comment 1 Florian Müllner 2014-03-19 22:27:16 UTC
(In reply to comment #0)
>  * "Enabled"
>  * "Disabled"

FWIW, we already have those elsewhere, so not a string freeze break.


>  * "In use"
>  "Enable" and "Disable"

Those require a string freeze break.
Comment 2 Zeeshan Ali 2014-03-20 12:54:17 UTC
(In reply to comment #1)
> (In reply to comment #0)
> >  * "Enabled"
> >  * "Disabled"
> 
> FWIW, we already have those elsewhere, so not a string freeze break.
> 
> 
> >  * "In use"
> >  "Enable" and "Disable"
> 
> Those require a string freeze break.

:( That means if we put them in even now, we won't get them translated to enough languages in time for release?
Comment 3 Zeeshan Ali 2014-03-20 13:18:59 UTC
Created attachment 272481 [details] [review]
location: Improved language

* 'Turn On' -> 'Enable'
* 'Turn Off' -> 'Disable'
* 'Off' -> 'Disabled'
* 'On' ->  'In Use' or 'Enabled' depending on whether or not service is
  in use.
Comment 4 Florian Müllner 2014-03-20 13:21:56 UTC
(In reply to comment #2)
> (In reply to comment #1
> > Those require a string freeze break.
> 
> :( That means if we put them in even now, we won't get them translated to
> enough languages in time for release?

Well, technically it means that there's one more team to ask for permission if we want this addressed for 3.12 (and unlike hard code freeze, the string freeze doesn't go away with 3.12.0).
Comment 5 Florian Müllner 2014-03-20 13:27:16 UTC
Review of attachment 272481 [details] [review]:

::: js/ui/status/location.js
@@ +165,2 @@
         } else {
+            this._item.status.text = this._indicator.visible ? _("In Use") : _("Enabled");

Are we sure that starting to use location services will always trigger a max-accuracy-level change? From a glance the code looks like we can end up with a visible location indicator while still showing "Enabled" in the menu ...
Comment 6 Zeeshan Ali 2014-03-20 13:30:09 UTC
Review of attachment 272481 [details] [review]:

::: js/ui/status/location.js
@@ +165,2 @@
         } else {
+            this._item.status.text = this._indicator.visible ? _("In Use") : _("Enabled");

> Are we sure that starting to use location services will always trigger a max-accuracy-level change? 

No. I didn't think of changing of label on change of 'service in use' actually. I'll look into that.
Comment 7 Zeeshan Ali 2014-03-20 13:45:07 UTC
Created attachment 272484 [details] [review]
v2: React to changes in 'InUse' property.
Comment 8 Florian Müllner 2014-03-20 13:47:54 UTC
Review of attachment 272484 [details] [review]:

LGTM.
Comment 9 Zeeshan Ali 2014-03-20 13:48:53 UTC
(In reply to comment #8)
> Review of attachment 272484 [details] [review]:
> 
> LGTM.

Good, could you please test it for me too? :P
Comment 10 Florian Müllner 2014-03-20 13:55:27 UTC
Review of attachment 272484 [details] [review]:

Hmm, for some reason it shows "In Use" on startup, despite the status icon being hidden ...
Comment 11 Zeeshan Ali 2014-03-20 14:07:31 UTC
Created attachment 272488 [details] [review]
location: Improved language

v3: This should work better. If not, next time I do my own testing before submission. :)
Comment 12 Florian Müllner 2014-03-20 16:42:16 UTC
Review of attachment 272488 [details] [review]:

OK.

Not a problem of this patch, but: Disabling doesn't really seem to have any effect (apart from updating the labels)? The location icon is shown in the status area when starting maps, regardless of whether it's enabled or not :-(
Comment 13 Zeeshan Ali 2014-03-20 17:10:13 UTC
(In reply to comment #12)
> Review of attachment 272488 [details] [review]:
> 
> OK.
> 
> Not a problem of this patch, but: Disabling doesn't really seem to have any
> effect (apart from updating the labels)? The location icon is shown in the
> status area when starting maps, regardless of whether it's enabled or not :-(

That is bug#726497, unless Maps can actually query location.
Comment 14 Florian Müllner 2014-03-20 17:11:48 UTC
Ah good, it's already tracked then - so time to ask for freeze exceptions if we want this in 3.12 :-)
Comment 15 Zeeshan Ali 2014-03-20 17:25:07 UTC
(In reply to comment #14)
> Ah good, it's already tracked then - so time to ask for freeze exceptions if we
> want this in 3.12 :-)

Done! Its likely that we can only get it into 3.12.1 and even that if we are lucky. Fingers crossed!
Comment 16 Zeeshan Ali 2014-03-27 17:41:14 UTC
b(In reply to comment #15)
> (In reply to comment #14)
> > Ah good, it's already tracked then - so time to ask for freeze exceptions if we
> > want this in 3.12 :-)
> 
> Done! Its likely that we can only get it into 3.12.1 and even that if we are
> lucky. Fingers crossed!

Got all ACK for 3.12.1. Can I push now?
Comment 17 Florian Müllner 2014-03-27 17:44:20 UTC
Sure!
Comment 18 Zeeshan Ali 2014-03-27 18:18:48 UTC
Attachment 272488 [details] pushed as b0bdf7f - location: Improved language
Comment 19 Eddy Castillo 2014-04-02 06:59:53 UTC
*** Bug 727476 has been marked as a duplicate of this bug. ***