diff --git a/weatherornot@somepaulo.github.io/extension.js b/weatherornot@somepaulo.github.io/extension.js index 848ef04..fd4c72a 100644 --- a/weatherornot@somepaulo.github.io/extension.js +++ b/weatherornot@somepaulo.github.io/extension.js @@ -32,225 +32,225 @@ let _spacer = null; let _indicator = null; export default class WeatherOrNotExtension extends Extension { - constructor(metadata) { - super(metadata); - this._settingsHandlerId = null; - this._position = null; - this._settings = null; - } - - enable() { - statusArea = Main.panel.statusArea; - weather = new Weather.WeatherClient(); - network = Main.panel._network; - networkIcon = network ? network._primaryIndicator : null; - - if (!_indicator) { - _indicator = new WeatherIndicator(weather, networkIcon); - _indicator.add_style_class_name('weatherornot'); - _indicator.connect('button-press-event', () => GLib.spawn_command_line_async('gapplication launch org.gnome.Weather')); + constructor(metadata) { + super(metadata); + this._settingsHandlerId = null; + this._position = null; + this._settings = null; } - if (!_spacer) { - _spacer = new WeatherIndicator(weather, networkIcon); - _spacer.add_style_class_name('weatherornot-spacer'); - _spacer.reactive = false; - } + enable() { + statusArea = Main.panel.statusArea; + weather = new Weather.WeatherClient(); + network = Main.panel._network; + networkIcon = network ? network._primaryIndicator : null; - this._settings = this.getSettings(); - this._settingsHandlerId = this._settings.connect('changed::position', this._addIndicator.bind(this)); - this._addIndicator(); - } + if (!_indicator) { + _indicator = new WeatherIndicator(weather, networkIcon); + _indicator.add_style_class_name('weatherornot'); + _indicator.connect('button-press-event', () => GLib.spawn_command_line_async('gapplication launch org.gnome.Weather')); + } - _addIndicator() { - const currentIndicator = statusArea['WeatherOrNot']; - const currentSpacer = statusArea['Spacer']; - if (currentIndicator) { - statusArea['WeatherOrNot'] = null; - } - if (currentSpacer) { - statusArea['Spacer'].actor.visible = false; - statusArea['Spacer'] = null; - } + if (!_spacer) { + _spacer = new WeatherIndicator(weather, networkIcon); + _spacer.add_style_class_name('weatherornot-spacer'); + _spacer.reactive = false; + } - this._position = this._settings.get_enum('position'); - switch (this._position) { - case 0: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 1, Main.panel._leftBox); - break; - case 1: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 0, Main.panel._centerBox); - Main.panel._addToPanelBox('Spacer', _spacer, 999999999, Main.panel._centerBox); - statusArea['Spacer'].actor.visible = true; - break; - case 2: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 0, Main.panel._centerBox); - break; - case 3: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 999999999, Main.panel._centerBox); - break; - case 4: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 999999999, Main.panel._centerBox); - Main.panel._addToPanelBox('Spacer', _spacer, 0, Main.panel._centerBox); - statusArea['Spacer'].actor.visible = true; - break; - case 5: - Main.panel._addToPanelBox('WeatherOrNot', _indicator, 1, Main.panel._rightBox); + this._settings = this.getSettings(); + this._settingsHandlerId = this._settings.connect('changed::position', this._addIndicator.bind(this)); + this._addIndicator(); } - } - disable() { - this._settings.disconnect(this._settingsHandlerId); - this._settings = null; - if (_spacer) { - _spacer.destroy(); - _spacer = null; + _addIndicator() { + const currentIndicator = statusArea['WeatherOrNot']; + const currentSpacer = statusArea['Spacer']; + if (currentIndicator) { + statusArea['WeatherOrNot'] = null; + } + if (currentSpacer) { + statusArea['Spacer'].actor.visible = false; + statusArea['Spacer'] = null; + } + + this._position = this._settings.get_enum('position'); + switch (this._position) { + case 0: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 1, Main.panel._leftBox); + break; + case 1: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 0, Main.panel._centerBox); + Main.panel._addToPanelBox('Spacer', _spacer, 999999999, Main.panel._centerBox); + statusArea['Spacer'].actor.visible = true; + break; + case 2: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 0, Main.panel._centerBox); + break; + case 3: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 999999999, Main.panel._centerBox); + break; + case 4: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 999999999, Main.panel._centerBox); + Main.panel._addToPanelBox('Spacer', _spacer, 0, Main.panel._centerBox); + statusArea['Spacer'].actor.visible = true; + break; + case 5: + Main.panel._addToPanelBox('WeatherOrNot', _indicator, 1, Main.panel._rightBox); + } } - if (_indicator) { - _indicator.destroy(); - _indicator = null; + + disable() { + this._settings.disconnect(this._settingsHandlerId); + this._settings = null; + if (_spacer) { + _spacer.destroy(); + _spacer = null; + } + if (_indicator) { + _indicator.destroy(); + _indicator = null; + } + pillBox = null; + weather = null; } - pillBox = null; - weather = null; - } } const WeatherIndicator = GObject.registerClass( - { - GTypeName: "WeatherIndicator", - }, - class WeatherIndicator extends PanelMenu.Button { - _init(weather, networkIcon) { - super._init({ - y_align: Clutter.ActorAlign.CENTER, - visible: false, - }); + { + GTypeName: "WeatherIndicator", + }, + class WeatherIndicator extends PanelMenu.Button { + _init(weather, networkIcon) { + super._init({ + y_align: Clutter.ActorAlign.CENTER, + visible: false, + }); - this._weather = weather; - this._networkIcon = networkIcon; + this._weather = weather; + this._networkIcon = networkIcon; - this._signals = []; + this._signals = []; - this._weatherUpdateDebounceTimer = null; + this._weatherUpdateDebounceTimer = null; - this._icon = new St.Icon({ - icon_size: 16, - y_align: Clutter.ActorAlign.CENTER, - }); - this._icon.add_style_class_name('system-status-icon'); + this._icon = new St.Icon({ + icon_size: 16, + y_align: Clutter.ActorAlign.CENTER, + style_class: 'system-status-icon', + }); - this._label = new St.Label({ - style_class: 'system-status-label', - }); - this._label.clutter_text.y_align = Clutter.ActorAlign.CENTER; - this._label.add_style_class_name('weather_label'); + this._label = new St.Label({ + y_align: Clutter.ActorAlign.CENTER, + style_class: 'system-status-label', + }); - let pillBox = new St.BoxLayout({ - style_class: 'panel-status-menu-box' - }); - pillBox.add_child(this._icon); - pillBox.add_child(this._label); - this.add_child(pillBox); + let pillBox = new St.BoxLayout({ + y_align: Clutter.ActorAlign.CENTER, + style_class: 'panel-status-menu-box' + }); + pillBox.add_child(this._icon); + pillBox.add_child(this._label); + this.add_child(pillBox); - this._pushSignal( - this._weather, - 'changed', - this._onWeatherInfoUpdate.bind(this), - ); + this._pushSignal( + this._weather, + 'changed', + this._onWeatherInfoUpdate.bind(this), + ); - this._pushSignal(this, 'destroy', this._onDestroy.bind(this)); + this._pushSignal(this, 'destroy', this._onDestroy.bind(this)); - if (this._networkIcon) { - this._pushSignal( - this._networkIcon, - 'notify::icon-name', - this._onNetworkIconNotifyEvents.bind(this), - ); - this._pushSignal( - this._networkIcon, - 'notify::visible', - this._onNetworkIconNotifyEvents.bind(this), - ); - if (this._networkIcon.visible) { - this._weather.update(); - this._StartLongTermUpdateTimeout(); + if (this._networkIcon) { + this._pushSignal( + this._networkIcon, + 'notify::icon-name', + this._onNetworkIconNotifyEvents.bind(this), + ); + this._pushSignal( + this._networkIcon, + 'notify::visible', + this._onNetworkIconNotifyEvents.bind(this), + ); + if (this._networkIcon.visible) { + this._weather.update(); + this._StartLongTermUpdateTimeout(); + } + } else { + this._weather.update(); + this._StartLongTermUpdateTimeout(); } - } else { - this._weather.update(); - this._StartLongTermUpdateTimeout(); - } - } + } - _pushSignal(obj, signalName, callback) { - this._signals.push({ - obj: obj, - signalId: obj.connect(signalName, callback), - }); - } + _pushSignal(obj, signalName, callback) { + this._signals.push({ + obj: obj, + signalId: obj.connect(signalName, callback), + }); + } - /** - * Debouncing Weather's "changed" events, - * as we can receive two different payloads at the same time. - * In order to avoid flashing icon/label, - * we want to only take the last payload into account. - * - * Also, the Weather API doesn't send any other events, unfortunately. - * So, we have to deal with the "changed" one. - * See: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/weather.js - */ - _onWeatherInfoUpdate(weather) { - if (this._weatherUpdateDebounceTimer) { - clearTimeout(this._weatherUpdateDebounceTimer); - } + /** + * Debouncing Weather's "changed" events, + * as we can receive two different payloads at the same time. + * In order to avoid flashing icon/label, + * we want to only take the last payload into account. + * + * Also, the Weather API doesn't send any other events, unfortunately. + * So, we have to deal with the "changed" one. + * See: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/weather.js + */ + _onWeatherInfoUpdate(weather) { + if (this._weatherUpdateDebounceTimer) { + clearTimeout(this._weatherUpdateDebounceTimer); + } - // 100 ms is too short, and waiting for 500 ms is not a big deal - this._weatherUpdateDebounceTimer = setTimeout(() => this._weatherInfoUpdate(weather), 500); - } + // 100 ms is too short, and waiting for 500 ms is not a big deal + this._weatherUpdateDebounceTimer = setTimeout(() => this._weatherInfoUpdate(weather), 500); + } - _weatherInfoUpdate(weather) { - this._icon.icon_name = weather.info.get_symbolic_icon_name(); - // "--" is not a valid temp... - this._label.text = weather.info.get_temp_summary().replace("--", ""); - this.visible = this._icon.icon_name && this._label.text; - } + _weatherInfoUpdate(weather) { + this._icon.icon_name = weather.info.get_symbolic_icon_name(); + // "--" is not a valid temp... + this._label.text = weather.info.get_temp_summary().replace("--", ""); + this.visible = this._icon.icon_name && this._label.text; + } - _onNetworkIconNotifyEvents(networkIcon) { - if (networkIcon.visible && !this.visible) { - this._weather.update(); - this._StartLongTermUpdateTimeout(); - } else if (!networkIcon.visible) { - this._canceLongTermUpdateTimeout(); - this.visible = false; - } - } + _onNetworkIconNotifyEvents(networkIcon) { + if (networkIcon.visible && !this.visible) { + this._weather.update(); + this._StartLongTermUpdateTimeout(); + } else if (!networkIcon.visible) { + this._canceLongTermUpdateTimeout(); + this.visible = false; + } + } - _StartLongTermUpdateTimeout() { - this._canceLongTermUpdateTimeout(); - this._weatherUpdateTimeout = GLib.timeout_add_seconds( - GLib.PRIORITY_LOW, - 600, - () => { - this._weather.update(); - return GLib.SOURCE_CONTINUE; - }, - ); - } + _StartLongTermUpdateTimeout() { + this._canceLongTermUpdateTimeout(); + this._weatherUpdateTimeout = GLib.timeout_add_seconds( + GLib.PRIORITY_LOW, + 600, + () => { + this._weather.update(); + return GLib.SOURCE_CONTINUE; + }, + ); + } - _canceLongTermUpdateTimeout() { - if (this._weatherUpdateTimeout) { - GLib.source_remove(this._weatherUpdateTimeout); + _canceLongTermUpdateTimeout() { + if (this._weatherUpdateTimeout) { + GLib.source_remove(this._weatherUpdateTimeout); + } + this._weatherUpdateTimeout = null; } - this._weatherUpdateTimeout = null; - } - _onDestroy() { - this._canceLongTermUpdateTimeout(); - this._signals.forEach((signal) => signal.obj.disconnect(signal.signalId)); - this._signals = null; - this._weather = null; - this._networkIcon = null; - clearTimeout(this._weatherUpdateDebounceTimer); - this._weatherUpdateDebounceTimer = null; - } - }, + _onDestroy() { + this._canceLongTermUpdateTimeout(); + this._signals.forEach((signal) => signal.obj.disconnect(signal.signalId)); + this._signals = null; + this._weather = null; + this._networkIcon = null; + clearTimeout(this._weatherUpdateDebounceTimer); + this._weatherUpdateDebounceTimer = null; + } + }, ); diff --git a/weatherornot@somepaulo.github.io/locale/ca/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/ca/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..54da03f Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/ca/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/de/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/de/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..3da030d Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/de/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/es/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/es/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..32cadcc Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/es/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/po/fr_FR.mo b/weatherornot@somepaulo.github.io/locale/fr/LC_MESSAGES/weatherornot@somepaulo.github.io.mo similarity index 79% rename from weatherornot@somepaulo.github.io/po/fr_FR.mo rename to weatherornot@somepaulo.github.io/locale/fr/LC_MESSAGES/weatherornot@somepaulo.github.io.mo index 53945ba..0400203 100644 Binary files a/weatherornot@somepaulo.github.io/po/fr_FR.mo and b/weatherornot@somepaulo.github.io/locale/fr/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/it/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/it/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..bf90841 Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/it/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/pt/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/pt/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..29de3c9 Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/pt/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/ru/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/ru/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..5f71789 Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/ru/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/locale/uk/LC_MESSAGES/weatherornot@somepaulo.github.io.mo b/weatherornot@somepaulo.github.io/locale/uk/LC_MESSAGES/weatherornot@somepaulo.github.io.mo new file mode 100644 index 0000000..e175e7b Binary files /dev/null and b/weatherornot@somepaulo.github.io/locale/uk/LC_MESSAGES/weatherornot@somepaulo.github.io.mo differ diff --git a/weatherornot@somepaulo.github.io/metadata.json b/weatherornot@somepaulo.github.io/metadata.json index aad22c0..343889f 100644 --- a/weatherornot@somepaulo.github.io/metadata.json +++ b/weatherornot@somepaulo.github.io/metadata.json @@ -10,5 +10,5 @@ "original-author": "somepaulo@duck.com", "gettext-domain": "weatherornot@somepaulo.github.io", "settings-schema": "org.gnome.shell.extensions.weatherornot", - "version": 10 + "version": 11 } diff --git a/weatherornot@somepaulo.github.io/po/ca.mo b/weatherornot@somepaulo.github.io/po/ca.mo new file mode 100644 index 0000000..54da03f Binary files /dev/null and b/weatherornot@somepaulo.github.io/po/ca.mo differ diff --git a/weatherornot@somepaulo.github.io/po/ca.po b/weatherornot@somepaulo.github.io/po/ca.po new file mode 100644 index 0000000..7463739 --- /dev/null +++ b/weatherornot@somepaulo.github.io/po/ca.po @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-03 18:44+0000\n" +"PO-Revision-Date: 2023-11-10 22:47+0000\n" +"Last-Translator: Paulo Fino \n" +"Language-Team: \n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.3.2\n" + +#: prefs.js:11 +msgid "General" +msgstr "General" + +#: prefs.js:17 +msgid "Appearance" +msgstr "Aparença" + +#: prefs.js:23 +msgid "Left" +msgstr "Esquerra" + +#: prefs.js:24 +msgid "Clock left" +msgstr "Rellotge esquerra" + +#: prefs.js:25 +msgid "Clock left centered" +msgstr "Rellotge esquerra centrat" + +#: prefs.js:26 +msgid "Clock right centered" +msgstr "Rellotge dreta centrat" + +#: prefs.js:27 +msgid "Clock right" +msgstr "Rellotge dreta" + +#: prefs.js:28 +msgid "Right" +msgstr "Dreta" + +#: prefs.js:33 +msgid "Position" +msgstr "Posició" + +#: prefs.js:34 +msgid "Select where to show the weather indicator on the panel" +msgstr "Seleccioneu on mostrar l'indicador meteorològic al panell" diff --git a/weatherornot@somepaulo.github.io/po/de.mo b/weatherornot@somepaulo.github.io/po/de.mo new file mode 100644 index 0000000..3da030d Binary files /dev/null and b/weatherornot@somepaulo.github.io/po/de.mo differ diff --git a/weatherornot@somepaulo.github.io/po/de.po b/weatherornot@somepaulo.github.io/po/de.po new file mode 100644 index 0000000..83976d1 --- /dev/null +++ b/weatherornot@somepaulo.github.io/po/de.po @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-03 18:44+0000\n" +"PO-Revision-Date: 2023-11-11 18:39+0000\n" +"Last-Translator: Paulo Fino \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.3.2\n" + +#: prefs.js:11 +msgid "General" +msgstr "Allgemeine" + +#: prefs.js:17 +msgid "Appearance" +msgstr "Aussehen" + +#: prefs.js:23 +msgid "Left" +msgstr "Links" + +#: prefs.js:24 +msgid "Clock left" +msgstr "Uhr links" + +#: prefs.js:25 +msgid "Clock left centered" +msgstr "Uhr links zentriert" + +#: prefs.js:26 +msgid "Clock right centered" +msgstr "Uhr rechts zentriert" + +#: prefs.js:27 +msgid "Clock right" +msgstr "Uhr rechts" + +#: prefs.js:28 +msgid "Right" +msgstr "Rechts" + +#: prefs.js:33 +msgid "Position" +msgstr "Position" + +#: prefs.js:34 +msgid "Select where to show the weather indicator on the panel" +msgstr "Wählen Sie aus, wo die Wetteranzeige im oberen Panel angezeigt werden soll" diff --git a/weatherornot@somepaulo.github.io/po/es.mo b/weatherornot@somepaulo.github.io/po/es.mo index 385cac4..32cadcc 100644 Binary files a/weatherornot@somepaulo.github.io/po/es.mo and b/weatherornot@somepaulo.github.io/po/es.mo differ diff --git a/weatherornot@somepaulo.github.io/po/es.po b/weatherornot@somepaulo.github.io/po/es.po index 4bbd796..e78a758 100644 --- a/weatherornot@somepaulo.github.io/po/es.po +++ b/weatherornot@somepaulo.github.io/po/es.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-11-03 18:44+0000\n" -"PO-Revision-Date: 2023-11-03 18:49+0000\n" +"PO-Revision-Date: 2023-11-10 22:41+0000\n" "Last-Translator: Paulo Fino \n" "Language-Team: \n" "Language: es\n" @@ -23,11 +23,11 @@ msgstr "General" #: prefs.js:17 msgid "Appearance" -msgstr "AparienciaApariencia" +msgstr "Apariencia" #: prefs.js:23 msgid "Left" -msgstr "IzquierdaIzquierda" +msgstr "Izquierda" #: prefs.js:24 msgid "Clock left" diff --git a/weatherornot@somepaulo.github.io/po/fr.mo b/weatherornot@somepaulo.github.io/po/fr.mo new file mode 100644 index 0000000..0400203 Binary files /dev/null and b/weatherornot@somepaulo.github.io/po/fr.mo differ diff --git a/weatherornot@somepaulo.github.io/po/fr_FR.po b/weatherornot@somepaulo.github.io/po/fr.po similarity index 94% rename from weatherornot@somepaulo.github.io/po/fr_FR.po rename to weatherornot@somepaulo.github.io/po/fr.po index c44ddee..bb3df8f 100644 --- a/weatherornot@somepaulo.github.io/po/fr_FR.po +++ b/weatherornot@somepaulo.github.io/po/fr.po @@ -8,10 +8,10 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-11-03 18:44+0000\n" -"PO-Revision-Date: 2023-11-03 18:59+0000\n" +"PO-Revision-Date: 2023-11-10 21:58+0000\n" "Last-Translator: Paulo Fino \n" "Language-Team: \n" -"Language: fr_FR\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/weatherornot@somepaulo.github.io/po/it.mo b/weatherornot@somepaulo.github.io/po/it.mo new file mode 100644 index 0000000..bf90841 Binary files /dev/null and b/weatherornot@somepaulo.github.io/po/it.mo differ diff --git a/weatherornot@somepaulo.github.io/po/it.po b/weatherornot@somepaulo.github.io/po/it.po new file mode 100644 index 0000000..d0e8eba --- /dev/null +++ b/weatherornot@somepaulo.github.io/po/it.po @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-03 18:44+0000\n" +"PO-Revision-Date: 2023-11-10 22:46+0000\n" +"Last-Translator: Paulo Fino \n" +"Language-Team: \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.3.2\n" + +#: prefs.js:11 +msgid "General" +msgstr "Generale" + +#: prefs.js:17 +msgid "Appearance" +msgstr "Aspetto" + +#: prefs.js:23 +msgid "Left" +msgstr "Sinistra" + +#: prefs.js:24 +msgid "Clock left" +msgstr "Orologio sinistra" + +#: prefs.js:25 +msgid "Clock left centered" +msgstr "Orologio sinistra centrato" + +#: prefs.js:26 +msgid "Clock right centered" +msgstr "Orologio destra centrato" + +#: prefs.js:27 +msgid "Clock right" +msgstr "Orologio destra" + +#: prefs.js:28 +msgid "Right" +msgstr "Destra" + +#: prefs.js:33 +msgid "Position" +msgstr "Posizione" + +#: prefs.js:34 +msgid "Select where to show the weather indicator on the panel" +msgstr "Selezionate dove mostrare l'indicatore meteorologico sul pannello" diff --git a/weatherornot@somepaulo.github.io/po/pt.mo b/weatherornot@somepaulo.github.io/po/pt.mo index 19cd707..29de3c9 100644 Binary files a/weatherornot@somepaulo.github.io/po/pt.mo and b/weatherornot@somepaulo.github.io/po/pt.mo differ diff --git a/weatherornot@somepaulo.github.io/po/pt.po b/weatherornot@somepaulo.github.io/po/pt.po index 6ef1bcf..90abe8a 100644 --- a/weatherornot@somepaulo.github.io/po/pt.po +++ b/weatherornot@somepaulo.github.io/po/pt.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-11-03 18:44+0000\n" -"PO-Revision-Date: 2023-11-03 18:56+0000\n" +"PO-Revision-Date: 2023-11-10 22:41+0000\n" "Last-Translator: Paulo Fino \n" "Language-Team: \n" "Language: pt\n" @@ -23,7 +23,7 @@ msgstr "Geral" #: prefs.js:17 msgid "Appearance" -msgstr "AparênciaAparência" +msgstr "Aparência" #: prefs.js:23 msgid "Left" diff --git a/weatherornot@somepaulo.github.io/prefs.js b/weatherornot@somepaulo.github.io/prefs.js index b5ca0a8..6d893fb 100644 --- a/weatherornot@somepaulo.github.io/prefs.js +++ b/weatherornot@somepaulo.github.io/prefs.js @@ -44,4 +44,3 @@ export default class WeatherOrNotExtensionPreferences extends ExtensionPreferenc } } - diff --git a/weatherornot@somepaulo.github.io/stylesheet.css b/weatherornot@somepaulo.github.io/stylesheet.css index 620fee0..42952fb 100644 --- a/weatherornot@somepaulo.github.io/stylesheet.css +++ b/weatherornot@somepaulo.github.io/stylesheet.css @@ -1,7 +1,11 @@ +.weatherornot .panel-status-menu-box { + padding-right: 7px; +} + .weatherornot .system-status-icon { - max-height: 16px; + max-height: 16px; } .weatherornot-spacer * { - color: transparent !important; + color: transparent !important; }