diff --git a/extension.js b/extension.js index bb0de744..8305932e 100644 --- a/extension.js +++ b/extension.js @@ -53,10 +53,17 @@ const getActorCompat = (obj) => Convenience.currentVersionGreaterEqual('3.33') ? obj : obj.actor; function log(msg) { - if (bingWallpaperIndicator == null || bingWallpaperIndicator._settings.get_boolean('debug-logging')) + if (bingWallpaperIndicator && bingWallpaperIndicator._settings.get_boolean('debug-logging')) print('BingWallpaper extension: ' + msg); // disable to keep the noise down in journal } +// pinched from here https://github.com/Odyseus/CinnamonTools (/extensions/MultiTranslatorExtension/js_modules/utils.js) +function soupPrinter(aLog, aLevel = null, aDirection = null, aData = null) { + if (aLevel && aDirection && aData) { + log('Soup: '+String(aData)); + } +} + function notifyError(msg) { Main.notifyError("BingWallpaper extension error", msg); } @@ -100,6 +107,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { this.selected_image = "current"; this.clipboard = new BWClipboard.BWClipboard(); this.imageIndex = null; + this.logger = null; blur = new Blur.Blur(); blur.blur_strength = 30; blur.blur_brightness = 0.55; @@ -107,7 +115,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { // take a variety of actions when the gsettings values are modified by prefs this._settings = ExtensionUtils.getSettings(Utils.BING_SCHEMA); - this.httpSession = new Soup.Session(); + this._initSoup(); getActorCompat(this).visible = !this._settings.get_boolean('hide'); @@ -132,7 +140,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { this.swallpaperItem = new PopupMenu.PopupMenuItem(_("Set lock screen image")); this.refreshItem = new PopupMenu.PopupMenuItem(_("Refresh Now")); this.settingsItem = new PopupMenu.PopupMenuItem(_("Settings")); - this.thumbnailItem = new PopupMenu.PopupBaseMenuItem(); + this.thumbnailItem = new PopupMenu.PopupBaseMenuItem({ style_class: 'wp-thumbnail-image'}); this.menu.addMenuItem(this.refreshItem); this.menu.addMenuItem(this.refreshDueItem); this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); @@ -204,6 +212,17 @@ class BingWallpaperIndicator extends PanelMenu.Button { } } + // create soup Session, set proxy resolver and hook up the logger + _initSoup() { + this.httpSession = new Soup.Session(); + if (this._settings.get_boolean('debug-logging')) { + this.logger = Soup.Logger.new(Soup.LoggerLogLevel.HEADERS, -1); + this.logger.attach(this.httpSession); + this.logger.set_printer(soupPrinter); + } + Soup.Session.prototype.add_feature.call(this.httpSession, new Soup.ProxyResolverDefault()); // unclear if this is necessary + } + // listen for configuration changes _setConnections() { this._settings.connect('changed::hide', () => { @@ -243,7 +262,10 @@ class BingWallpaperIndicator extends PanelMenu.Button { this.dwallpaperItem.setSensitive(!this._updatePending && this.filename != ""); this.swallpaperItem.setSensitive(!this._updatePending && this.filename != ""); this.titleItem.setSensitive(!this._updatePending && this.imageinfolink != ""); - this.refreshduetext = _("Next refresh") + ": " + (this.refreshdue ? this.refreshdue.format("%X") : '-') + " (" + Utils.friendly_time_diff(this.refreshdue) + ")"; + let maxlongdate = Utils.getMaxLongDate(this._settings); + this.refreshduetext = + _("Next refresh") + ": " + (this.refreshdue ? this.refreshdue.format("%X") : '-') + " (" + Utils.friendly_time_diff(this.refreshdue) + "), " + + _("Last updated") + ": " + (maxlongdate? this._localeDate(maxlongdate, true) : '-'); this.refreshDueItem.label.set_text(this.refreshduetext); } @@ -312,7 +334,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { // set a timer on when the current image is going to expire _restartTimeoutFromLongDate(longdate) { // all bing times are in UTC (+0) - let refreshDue = Utils.dateFromLongDate(longdate, 86400); + let refreshDue = Utils.dateFromLongDate(longdate, 86400).to_local(); let now = GLib.DateTime.new_now_local(); let difference = refreshDue.difference(now) / 1000000; log('Next refresh due ' + difference + ' seconds from now'); @@ -323,10 +345,10 @@ class BingWallpaperIndicator extends PanelMenu.Button { this._restartTimeout(difference); } - // convert shortdate format into human friendly format - _localeDate(shortdate) { - let date = Utils.dateFromShortDate(shortdate); - return date.format('%Y-%m-%d'); // ISO 8601 - https://xkcd.com/1179/ + // convert longdate format into human friendly format + _localeDate(longdate, include_time = false) { + let date = Utils.dateFromLongDate(longdate, 300); // date at update + return date.to_local().format('%Y-%m-%d' + (include_time? ' %X' : '')); // ISO 8601 - https://xkcd.com/1179/ } // set menu text in lieu of a notification/popup @@ -473,6 +495,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { this._updatePending = true; this._restartTimeout(); let market = this._settings.get_string('market'); + //this._initSoup(); // get new session, incase we aren't detecting proxy changes // create an http message let url = BingImageURL + (market != 'auto' ? market : ''); let request = Soup.Message.new('GET', url); @@ -566,7 +589,7 @@ class BingWallpaperIndicator extends PanelMenu.Button { // set notifications icon let source = new MessageTray.Source('Bing Wallpaper', 'preferences-desktop-wallpaper-symbolic'); Main.messageTray.add(source); - let msg = _('Bing Wallpaper of the Day for') + ' ' + this._localeDate(image.startdate); + let msg = _('Bing Wallpaper of the Day for') + ' ' + this._localeDate(image.longstartdate); let details = Utils.getImageTitle(image); let notification = new MessageTray.Notification(source, msg, details); notification.setTransient(this._settings.get_boolean('transient')); diff --git a/locale/BingWallpaper.pot b/locale/BingWallpaper.pot index 6f3c83a5..f2f00320 100644 --- a/locale/BingWallpaper.pot +++ b/locale/BingWallpaper.pot @@ -10,7 +10,7 @@ msgstr "" msgid "Enable desktop notifications" msgstr "" -#: ui/Settings.ui.h:4 ui/Settings4.ui.h:5 extension.js:131 +#: ui/Settings.ui.h:4 ui/Settings4.ui.h:5 extension.js:139 msgid "Set background image" msgstr "" @@ -46,7 +46,7 @@ msgstr "" msgid "Bing locale" msgstr "" -#: ui/Settings.ui.h:13 ui/Settings4.ui.h:12 extension.js:134 +#: ui/Settings.ui.h:13 ui/Settings4.ui.h:12 extension.js:142 msgid "Settings" msgstr "" @@ -248,47 +248,51 @@ msgstr "" msgid "Load image gallery" msgstr "" -#: extension.js:119 +#: extension.js:127 msgid "" msgstr "" -#: extension.js:121 extension.js:123 extension.js:126 +#: extension.js:129 extension.js:131 extension.js:134 msgid "Awaiting refresh..." msgstr "" -#: extension.js:128 +#: extension.js:136 msgid "Copy image to clipboard" msgstr "" -#: extension.js:129 +#: extension.js:137 msgid "Copy image URL to clipboard" msgstr "" -#: extension.js:130 +#: extension.js:138 msgid "Open image folder" msgstr "" -#: extension.js:132 +#: extension.js:140 msgid "Set lock screen image" msgstr "" -#: extension.js:133 +#: extension.js:141 msgid "Refresh Now" msgstr "" -#: extension.js:246 +#: extension.js:267 msgid "Next refresh" msgstr "" -#: extension.js:569 extension.js:599 +#: extension.js:268 +msgid "Last updated" +msgstr "" + +#: extension.js:592 extension.js:622 msgid "Bing Wallpaper of the Day for" msgstr "" -#: extension.js:626 +#: extension.js:649 msgid "No wallpaper available" msgstr "" -#: extension.js:627 +#: extension.js:650 msgid "No picture for today." msgstr "" diff --git a/locale/cs/LC_MESSAGES/BingWallpaper.mo b/locale/cs/LC_MESSAGES/BingWallpaper.mo index eaf128bf..19eb55fa 100644 Binary files a/locale/cs/LC_MESSAGES/BingWallpaper.mo and b/locale/cs/LC_MESSAGES/BingWallpaper.mo differ diff --git a/locale/cs/LC_MESSAGES/BingWallpaper.po b/locale/cs/LC_MESSAGES/BingWallpaper.po index 37da8e82..673261c9 100644 --- a/locale/cs/LC_MESSAGES/BingWallpaper.po +++ b/locale/cs/LC_MESSAGES/BingWallpaper.po @@ -7,168 +7,225 @@ msgid "" msgstr "" "Project-Id-Version: bing-wallpaper-gnome-extension\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-05-09 13:10+1000\n" -"PO-Revision-Date: 2021-05-09 13:26+1000\n" -"Last-Translator: Matěj Cepl \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2022-05-26 15:25+0200\n" +"Last-Translator: Ludek Vydra \n" "Language-Team: \n" -"Language: cs\n" +"Language: cs_CZ\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.1\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" +"X-Generator: Poedit 3.0.1\n" -#: Settings.ui.h:1 Settings4.ui.h:2 +#: ui/Settings.ui.h:1 ui/Settings4.ui.h:2 msgid "Hide the indicator" -msgstr "Skryj ukazatel" +msgstr "Skryj ikonu" -#: Settings.ui.h:2 Settings4.ui.h:3 -#, fuzzy +#: ui/Settings.ui.h:2 ui/Settings4.ui.h:3 msgid "Indicator icon" -msgstr "Ukazatel" +msgstr "Ikona indikátoru" -#: Settings.ui.h:3 Settings4.ui.h:4 +#: ui/Settings.ui.h:3 ui/Settings4.ui.h:4 msgid "Enable desktop notifications" -msgstr "" +msgstr "Povolit oznámení na ploše" -#: Settings.ui.h:4 Settings4.ui.h:5 extension.js:129 +#: ui/Settings.ui.h:4 ui/Settings4.ui.h:5 extension.js:131 msgid "Set background image" msgstr "Nastav obrázek pozadí" -#: Settings.ui.h:5 Settings4.ui.h:6 extension.js:130 -msgid "Set lock screen image" -msgstr "Nastav obrázek při uzamčení obrazovky" +#: ui/Settings.ui.h:5 ui/Settings4.ui.h:6 +msgid "Background style option" +msgstr "Možnost stylu pozadí" -#: Settings.ui.h:6 Settings4.ui.h:7 +#: ui/Settings.ui.h:6 ui/Settings4.ui.h:7 msgid "Download folder" msgstr "Složka pro stažení souborů" -#: Settings.ui.h:7 Settings4.ui.h:1 +#: ui/Settings.ui.h:7 ui/Settings4.ui.h:1 msgid "Bing Wallpaper pictures folder" msgstr "Složka tapet z Bing" -#: Settings.ui.h:8 Settings4.ui.h:9 +#: ui/Settings.ui.h:8 ui/Settings4.ui.h:8 +msgid "Open folder" +msgstr "Otevři složku" + +#: ui/Settings.ui.h:9 ui/Settings4.ui.h:9 msgid "Delete previously downloaded wallpapers" msgstr "Smaž tapety, které jste dříve stáhli" -#: Settings.ui.h:9 Settings4.ui.h:10 -msgid "Days to store wallpapers before deleting" -msgstr "Počet dní před tím, nežli jsou tapety smazány" +#: ui/Settings.ui.h:10 ui/Settings4.ui.h:10 +msgid "Selected image" +msgstr "Vybraný obrázek" + +#: ui/Settings.ui.h:11 +msgid "Select from image gallery" +msgstr "Vyber z galerie obrázků" -#: Settings.ui.h:10 Settings4.ui.h:11 +#: ui/Settings.ui.h:12 ui/Settings4.ui.h:11 msgid "Bing locale" msgstr "Národní nastavení Bing" -#: Settings.ui.h:11 Settings4.ui.h:12 -msgid "Default is English - United States" -msgstr "Výchozí je angličtina Spojených států" - -#: Settings.ui.h:12 Settings4.ui.h:14 -msgid "Screen resolution" -msgstr "Rozlišení obrazovky" - -#: Settings.ui.h:13 Settings4.ui.h:15 -msgid "Override automatic resolution selection" -msgstr "Přebít automatický výběr rozlišení obrazovky" - -#: Settings.ui.h:14 Settings4.ui.h:13 -#, fuzzy -msgid "Selected image" -msgstr "Obraz" - -#: Settings.ui.h:15 Settings4.ui.h:16 extension.js:132 +#: ui/Settings.ui.h:13 ui/Settings4.ui.h:12 extension.js:134 msgid "Settings" msgstr "Nastavení" -#: Settings.ui.h:16 Settings4.ui.h:17 +#: ui/Settings.ui.h:14 ui/Settings4.ui.h:13 msgid "Use custom blur and brightness" -msgstr "" +msgstr "Použij vlastního rozostření a jas" -#: Settings.ui.h:17 Settings4.ui.h:18 +#: ui/Settings.ui.h:15 ui/Settings4.ui.h:14 msgid "Override GDM3 lockscreen effects" -msgstr "" +msgstr "Zruš GDM3 efekty zamykací obrazovky" -#: Settings.ui.h:18 Settings4.ui.h:19 +#: ui/Settings.ui.h:16 ui/Settings4.ui.h:15 msgid "Blur can improve readability of login prompt" -msgstr "" +msgstr "Rozostření může zlepšit čitelnost výzvy k přihlášení" -#: Settings.ui.h:19 Settings4.ui.h:20 +#: ui/Settings.ui.h:17 ui/Settings4.ui.h:16 msgid "Background blur intensity" -msgstr "" +msgstr "Intenzita rozostření pozadí" -#: Settings.ui.h:20 Settings4.ui.h:21 +#: ui/Settings.ui.h:18 ui/Settings4.ui.h:17 msgid "Can improve contrast of login prompt" -msgstr "" +msgstr "Může zlepšit kontrast výzvy k přihlášení" -#: Settings.ui.h:21 Settings4.ui.h:22 -#, fuzzy -#| msgid "Set background image" +#: ui/Settings.ui.h:19 ui/Settings4.ui.h:18 msgid "Background brightness" -msgstr "Nastav obrázek pozadí" +msgstr "Jas pozadí" -#: Settings.ui.h:22 Settings4.ui.h:23 +#: ui/Settings.ui.h:20 ui/Settings4.ui.h:19 msgid "Presets" -msgstr "" +msgstr "Předvolby" -#: Settings.ui.h:23 Settings4.ui.h:24 +#: ui/Settings.ui.h:21 msgid "Commonly used presets" -msgstr "" +msgstr "Obvykle používané předvolby" -#: Settings.ui.h:24 Settings4.ui.h:25 +#: ui/Settings.ui.h:22 ui/Settings4.ui.h:20 msgid "No blur, slight dim" -msgstr "" +msgstr "Žádné rozostření, mírné ztmavení" -#: Settings.ui.h:25 Settings4.ui.h:26 +#: ui/Settings.ui.h:23 ui/Settings4.ui.h:21 msgid "GNOME default" -msgstr "" +msgstr "Výchozí GNOME" -#: Settings.ui.h:26 Settings4.ui.h:27 +#: ui/Settings.ui.h:24 ui/Settings4.ui.h:22 msgid "Slight blur, slight dim" -msgstr "" +msgstr "Mírné rozostření, mírné ztmavení" -#: Settings.ui.h:27 Settings4.ui.h:28 +#: ui/Settings.ui.h:25 ui/Settings4.ui.h:23 msgid "Lock Screen" +msgstr "Uzamčení obrazovky" + +#: ui/Settings.ui.h:26 ui/Settings4.ui.h:25 +msgid "Debug logging" +msgstr "Debug logging" + +#: ui/Settings.ui.h:27 ui/Settings4.ui.h:24 +msgid "Enable logging to system journal" +msgstr "Povolit logování do systémového žurnálu" + +#: ui/Settings.ui.h:28 ui/Settings4.ui.h:27 +msgid "Always show new images" +msgstr "Vždy zobrazit nové obrázky" + +#: ui/Settings.ui.h:29 ui/Settings4.ui.h:26 +msgid "Switch to new images when available (unless on random mode)" msgstr "" +"Přepínání na nové obrázky, jakmile jsou k dispozici (pokud není zapnutý " +"náhodný režim)." + +#: ui/Settings.ui.h:30 ui/Settings4.ui.h:29 +msgid "Enable all features on Wayland" +msgstr "Povolení všech funkcí v systému Wayland" + +#: ui/Settings.ui.h:31 ui/Settings4.ui.h:28 +msgid "Some newer features may be unstable on Wayland" +msgstr "Některé novější funkce mohou být na systému Wayland nestabilní" + +#: ui/Settings.ui.h:32 ui/Settings4.ui.h:30 +msgid "Screen resolution" +msgstr "Rozlišení obrazovky" + +#: ui/Settings.ui.h:33 ui/Settings4.ui.h:31 +msgid "Override automatic resolution selection" +msgstr "Přebít automatický výběr rozlišení obrazovky" + +#: ui/Settings.ui.h:34 ui/Settings4.ui.h:32 +msgid "Manually adjust random interval (seconds)" +msgstr "Nastav ručně náhodný interval (sekundy)" + +#: ui/Settings.ui.h:35 ui/Settings4.ui.h:33 +msgid "Random interval" +msgstr "Náhodný interval" + +#: ui/Settings.ui.h:36 ui/Settings4.ui.h:34 +msgid "Import Bing Wallpaper data" +msgstr "Importuj data Bing Wallpaper" + +#: ui/Settings.ui.h:37 ui/Settings4.ui.h:35 +msgid "Import previously exported JSON data from wallpaper directory" +msgstr "Importuj předtím exportovaná data JSON z adresáře tapet" + +#: ui/Settings.ui.h:38 ui/Settings4.ui.h:36 +msgid "Import" +msgstr "Import" -#: Settings.ui.h:28 Settings4.ui.h:29 +#: ui/Settings.ui.h:39 ui/Settings4.ui.h:37 +msgid "Export Bing Wallpaper data" +msgstr "Exmportuj data Bing Wallpaper" + +#: ui/Settings.ui.h:40 ui/Settings4.ui.h:38 +msgid "Export JSON data to wallpaper dir for backup or data migration" +msgstr "Exportuj JSON data do adresáře tapet pro zálohování nebo migraci" + +#: ui/Settings.ui.h:41 ui/Settings4.ui.h:39 +msgid "Export" +msgstr "Export" + +#: ui/Settings.ui.h:42 ui/Settings4.ui.h:40 +msgid "Always export Bing data" +msgstr "Vždy exportuj Bing data" + +#: ui/Settings.ui.h:43 ui/Settings4.ui.h:41 +msgid "Export Bing JSON whenever data changes" +msgstr "Exportuj Bing JSON kdykoli se data změní" + +#: ui/Settings.ui.h:44 ui/Settings4.ui.h:42 +msgid "Debug options" +msgstr "Ladicí možnosti" + +#: ui/Settings.ui.h:45 ui/Settings4.ui.h:44 msgid "New wallpaper images everyday from Bing" -msgstr "" +msgstr "Nové Bing obrázky tapet každý den" -#: Settings.ui.h:29 Settings4.ui.h:30 -#, fuzzy -#| msgid "Gnome shell extension version: " +#: ui/Settings.ui.h:46 msgid "Gnome shell extension version " msgstr "Verze rozšíření Gnome Shell " -#: Settings.ui.h:30 Settings4.ui.h:31 -msgid "https://github.com/neffo/bing-wallpaper-gnome-extension" -msgstr "https://github.com/neffo/bing-wallpaper-gnome-extension" - -#: Settings.ui.h:31 Settings4.ui.h:32 +#: ui/Settings.ui.h:47 ui/Settings4.ui.h:46 msgid "Maintained by Michael Carroll" msgstr "Správcem je Michael Carroll" -#: Settings.ui.h:32 Settings4.ui.h:33 +#: ui/Settings.ui.h:48 ui/Settings4.ui.h:47 msgid "" -"Show your support to the author on Flattr or Github " +"Show your support to the author on Flattr or Github " "Sponsors." msgstr "" +"Podpořte autora na Flattr nebo Github Sponsors." -#: Settings.ui.h:33 Settings4.ui.h:34 +#: ui/Settings.ui.h:49 ui/Settings4.ui.h:48 msgid "Changes since last version" -msgstr "" +msgstr "Změny od poslední verze" -#: Settings.ui.h:34 Settings4.ui.h:35 +#: ui/Settings.ui.h:50 ui/Settings4.ui.h:49 msgid "Based on NASA APOD Gnome shell extension by Elia Argentieri" msgstr "Založeno na Gnome rozšíření NASA APOD od Elia Argentieriho" -#: Settings.ui.h:35 Settings4.ui.h:36 -#, fuzzy -#| msgid "" -#| "This program comes with ABSOLUTELY NO WARRANTY.\n" -#| "See the GNU General Public License, version 3 or later for details." +#: ui/Settings.ui.h:51 ui/Settings4.ui.h:50 msgid "" "This program comes with ABSOLUTELY NO WARRANTY.\n" "See the GNU General " @@ -176,118 +233,155 @@ msgid "" msgstr "" "Tento program je ABSOLUTNĚ BEZ ZÁRUKY.\n" "Podrobnosti se dozvíte na Obecná veřejná licence GNU v.3 nebo pozdější.Obecná veřejná licence GNU v.3 nebo pozdější." -#: Settings.ui.h:37 Settings4.ui.h:38 +#: ui/Settings.ui.h:53 ui/Settings4.ui.h:52 msgid "About" msgstr "O rozšíření" -#: Settings4.ui.h:8 -msgid "Open folder" -msgstr "" +#: ui/Settings4.ui.h:43 +msgid "Gallery" +msgstr "Galerie" + +#: ui/Settings4.ui.h:45 +msgid "GNOME shell extension version " +msgstr "Verze rozšíření Gnome Shell " + +#: ui/carousel.ui.h:1 ui/carousel4.ui.h:1 +msgid "Apply" +msgstr "Použij" + +#: ui/carousel.ui.h:2 ui/carousel4.ui.h:2 +msgid "View" +msgstr "Zobrazit" + +#: ui/carousel.ui.h:3 ui/carousel4.ui.h:3 +msgid "Info" +msgstr "Info" -#: extension.js:117 +#: ui/carousel.ui.h:4 ui/carousel4.ui.h:4 +msgid "Delete" +msgstr "Vymaž" + +#: ui/carousel.ui.h:5 ui/carousel4.ui.h:6 +msgid "Set random mode" +msgstr "Nastav náhodný mód" + +#: ui/carousel4.ui.h:5 +msgid "" +msgstr "" + +#: ui/carousel4.ui.h:7 +msgid "Load image gallery" +msgstr "Nahrej galerii obrázků" + +#: extension.js:119 msgid "" msgstr "" -#: extension.js:119 extension.js:121 extension.js:123 +#: extension.js:121 extension.js:123 extension.js:126 msgid "Awaiting refresh..." msgstr "Čekám na obnovu..." -#: extension.js:126 +#: extension.js:128 msgid "Copy image to clipboard" -msgstr "Kopíruj obrázku do schránky" +msgstr "Kopíruj obrázek do schránky" -#: extension.js:127 +#: extension.js:129 msgid "Copy image URL to clipboard" msgstr "Kopíruj URL obrázku do schránky" -#: extension.js:128 +#: extension.js:130 msgid "Open image folder" -msgstr "" +msgstr "Otevři adresář s obrázky" + +#: extension.js:132 +msgid "Set lock screen image" +msgstr "Nastav obrázek při uzamčení obrazovky" -#: extension.js:131 +#: extension.js:133 msgid "Refresh Now" msgstr "Obnov teď" -#: extension.js:137 -msgid "Thumbnail disabled on Wayland" -msgstr "" - -#: extension.js:203 +#: extension.js:246 msgid "Next refresh" msgstr "Příští obnova" -#: extension.js:490 extension.js:527 +#: extension.js:569 extension.js:599 msgid "Bing Wallpaper of the Day for" msgstr "Tapeta z Bing pro den" -#: extension.js:495 -#, fuzzy -#| msgid "Set wallpaper" -msgid "Set as wallpaper" -msgstr "Nastav tapety" - -#: extension.js:498 -msgid "More info on Bing.com" -msgstr "" - -#: extension.js:553 +#: extension.js:626 msgid "No wallpaper available" msgstr "Žádná tapeta není dostupná" -#: extension.js:554 +#: extension.js:627 msgid "No picture for today." msgstr "Dnes není žádný obrázek k dispozici." -#: prefs.js:173 -#, fuzzy +#: prefs.js:168 +msgid "Select folder" +msgstr "Vyber adresář" + +#: prefs.js:233 msgid "Most recent image" msgstr "Dnešní obrázek" -#: prefs.js:174 -#, fuzzy +#: prefs.js:234 msgid "Random image" msgstr "Náhodný obrázek" -#: prefs.js:190 prefs.js:206 -msgid "Disabled on current GNOME version" -msgstr "" - -#: utils.js:139 +#: utils.js:116 msgid "Fetching data..." msgstr "Stahuji data..." -#: utils.js:150 +#: utils.js:127 msgid "Market not available in your region" msgstr "Nabídka není k dispozici na vašem území" -#: utils.js:154 +#: utils.js:131 msgid "A network error occured" msgstr "Nastala síťová chyba" -#: utils.js:159 -#, fuzzy +#: utils.js:136 msgid "Too many requests in 5 seconds" -msgstr "Příliš mnoho požadavků" +msgstr "Příliš mnoho požadavků během posledních 5 sekund" -#: utils.js:186 +#: utils.js:162 msgid "No change log found for this release" -msgstr "" +msgstr "V tomto vydání nebyl nalezen protokol změn" + +#: utils.js:168 +msgid "Error fetching change log" +msgstr "Chyba stahování protokolu změn" -#: utils.js:366 utils.js:369 +#: utils.js:383 utils.js:386 msgid "minutes" msgstr "minut" -#: utils.js:372 +#: utils.js:389 msgid "days" msgstr "dnů" -#: utils.js:375 +#: utils.js:392 msgid "hours" msgstr "hodin" +#~ msgid "Days to store wallpapers before deleting" +#~ msgstr "Počet dní před tím, nežli jsou tapety smazány" + +#~ msgid "Default is English - United States" +#~ msgstr "Výchozí je angličtina Spojených států" + +#~ msgid "https://github.com/neffo/bing-wallpaper-gnome-extension" +#~ msgstr "https://github.com/neffo/bing-wallpaper-gnome-extension" + +#, fuzzy +#~| msgid "Set wallpaper" +#~ msgid "Set as wallpaper" +#~ msgstr "Nastav tapety" + #~ msgid "" #~ "Changes your wallpaper daily to the Bing picture of the day for your " #~ "region. Displays the picture description and copyright information." diff --git a/metadata.json b/metadata.json index df5c213e..83ab7154 100644 --- a/metadata.json +++ b/metadata.json @@ -4,7 +4,7 @@ "name": "Bing Wallpaper", "settings-schema": "org.gnome.shell.extensions.bingwallpaper", "description": "Lightweight GNOME shell extension to set your wallpaper to today's Microsoft Bing image of the day (the image you see when you visit Bing.com).\n\n *Disclaimer*: this extension is unofficial and not affiliated with Bing or Microsoft in any way. Images are protected by copyright and are licensed only for use as wallpapers.\n\nThis extension is based extensively on the NASA APOD extension by Elinvention (https://github.com/Elinvention) and inspired by Bing Desktop Wallpaper Changer by Utkarsh Gupta (https://github.com/UtkarshGpta).\n\nFeatures:\n* Fetches Bing wallpaper of the day and sets as both lock screen and desktop wallpaper (user selectable on GNOME versions that support it)\n* Optionally force a specific region (i.e. locale)\n* UHD supported resolutions\n* Only attempts to download wallpapers when they have been updated\n* Doesn't poll continuously - only once per day and on startup (schedules a refresh when Bing is due to update)\n *NEW: random mode\n *NEW: select wallpaper from previously downloaded images\n* English (en), German (de), Dutch (nl), Italian (it), Polish (pl), Chinese (zh_CN), French (fr_FR), Portuguese (pt, pt_BR), Russian (ru_RU), Spanish (es), Korean (ko, ko_KR, ko_KP), Indonesian (id), Catalan (ca), Norwegian Bokmål (nb) & Nynorsk (ni), Swedish (sv), Arabic (ar), Hungarian (hu) and Finnish (fi_FI) - a HUGE thanks to the translators\n\nAlways restart GNOME after manually updating extensions. Please report bugs to the GitHub page below:", - "version": "40", + "version": "41", "url": "https://github.com/neffo/bing-wallpaper-gnome-extension", "gettext-domain": "BingWallpaper" } diff --git a/prefs.js b/prefs.js index 48707a5d..db386adc 100644 --- a/prefs.js +++ b/prefs.js @@ -172,7 +172,7 @@ function buildPrefsWidget() { if (response !== Gtk.ResponseType.ACCEPT) { return; } - let fileURI = fileChooser.get_file().get_uri().replace('file://', ''); + let fileURI = fileChooser.get_file().get_path().replace('file://', ''); log("fileChooser returned: "+fileURI); fileChooserBtn.set_label(fileURI); Utils.moveImagesToNewFolder(settings, Utils.getWallpaperDir(settings), fileURI); diff --git a/stylesheet.css b/stylesheet.css new file mode 100644 index 00000000..12a8dd7f --- /dev/null +++ b/stylesheet.css @@ -0,0 +1,5 @@ +.popup-menu-item:focus, .popup-menu-item:hover { + background-color: rgba(247, 247, 247, 0.1) !important; } + +.wp-thumbnail-image:focus, .wp-thumbnail-image:hover { + background-color: rgba(247, 247, 247, 0.1) !important; } \ No newline at end of file