|
|
@ -155,7 +155,9 @@ const OpenweatherMenuButton = new Lang.Class({ |
|
|
|
// Get locale, needed for toLocaleString, workaround for gnome-shell 3.24
|
|
|
|
// Get locale, needed for toLocaleString, workaround for gnome-shell 3.24
|
|
|
|
this.locale = GLib.get_language_names()[0]; |
|
|
|
this.locale = GLib.get_language_names()[0]; |
|
|
|
|
|
|
|
|
|
|
|
if (this.locale.indexOf('_') != -1) |
|
|
|
if (this.locale == 'C') |
|
|
|
|
|
|
|
this.locale = 'en'; |
|
|
|
|
|
|
|
else if (this.locale.indexOf('_') != -1) |
|
|
|
this.locale = this.locale.split("_")[0]; |
|
|
|
this.locale = this.locale.split("_")[0]; |
|
|
|
|
|
|
|
|
|
|
|
// Create user-agent string from uuid and (if present) the version
|
|
|
|
// Create user-agent string from uuid and (if present) the version
|
|
|
|