[gnome-shell] location: Use translated reason string
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] location: Use translated reason string
- Date: Mon, 8 Jan 2018 23:29:09 +0000 (UTC)
commit 723c49a8b7eacc4d179e7caa82d218d03d32999f
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 8 16:56:43 2018 +0100
location: Use translated reason string
Gio now has API to look up localized strings from desktop files,
so we can display a correctly translated reason where available.
https://bugzilla.gnome.org/show_bug.cgi?id=779413
js/ui/status/location.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/location.js b/js/ui/status/location.js
index 13aa8a9..ef91a46 100644
--- a/js/ui/status/location.js
+++ b/js/ui/status/location.js
@@ -321,7 +321,7 @@ var AppAuthorizer = new Lang.Class({
_userAuthorizeApp: function() {
let name = this._app.get_name();
let appInfo = this._app.get_app_info();
- let reason = appInfo.get_string("X-Geoclue-Reason");
+ let reason = appInfo.get_locale_string("X-Geoclue-Reason");
this._showAppAuthDialog(name, reason);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]