From 467942656135ae5339169c903f5b0cc80ac5e6ca Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Sun, 28 Mar 2021 21:33:09 +1000 Subject: [PATCH] update copyrights and templates --- Settings.ui.h | 20 +++++++-- buildzip.sh | 2 +- extension.js | 5 ++- locale/BingWallpaper.pot | 93 ++++++++++++++++++++++++++++++++++------ prefs.js | 2 +- utils.js | 2 +- 6 files changed, 105 insertions(+), 19 deletions(-) diff --git a/Settings.ui.h b/Settings.ui.h index 6d5cbc29..330234c6 100644 --- a/Settings.ui.h +++ b/Settings.ui.h @@ -11,11 +11,25 @@ char *s = N_("Default is English - United States"); char *s = N_("Screen resolution:"); char *s = N_("Override automatic resolution selection"); char *s = N_("Settings"); +char *s = N_("Use custom blur and brightness"); +char *s = N_("Override GDM3 lockscreen effects"); +char *s = N_("Blur can improve readability of login prompt"); +char *s = N_("Background blur intensity"); +char *s = N_("Can improve contrast of login prompt"); +char *s = N_("Background brightness"); +char *s = N_("Presets"); +char *s = N_("Commonly used presets"); +char *s = N_("No blur, slight dim"); +char *s = N_("GNOME default"); +char *s = N_("Slight blur, slight dim"); +char *s = N_("Lock Screen"); +char *s = N_("New wallpaper images everyday from Bing"); char *s = N_("Gnome shell extension version: "); -char *s = N_("Changes your wallpaper daily to the Bing picture of the day for your region. Displays the picture description and copyright information."); -char *s = N_("Maintained by Michael Carroll"); char *s = N_("https://github.com/neffo/bing-wallpaper-gnome-extension"); +char *s = N_("Maintained by Michael Carroll"); +char *s = N_("Show your support to the author on Flattr or Github Sponsors."); +char *s = N_("Changes since last version"); char *s = N_("Based on NASA APOD Gnome shell extension by Elia Argentieri"); char *s = N_("This program comes with ABSOLUTELY NO WARRANTY.\n" - "See the GNU General Public License, version 3 or later for details."); + "See the GNU General Public License, version 3 or later for details."); char *s = N_("About"); diff --git a/buildzip.sh b/buildzip.sh index b90b48d6..1213255e 100755 --- a/buildzip.sh +++ b/buildzip.sh @@ -2,7 +2,7 @@ glib-compile-schemas schemas/ intltool-extract --type=gettext/glade Settings.ui -xgettext -k -k_ -kN_ -o locale/BingWallpaper.pot Settings.ui.h extension.js prefs.js --from-code=UTF-8 +xgettext -k -k_ -kN_ -o locale/BingWallpaper.pot Settings.ui.h extension.js prefs.js blur.js utils.js convenience.js --from-code=UTF-8 for D in locale/*; do if [ -d "${D}" ]; then diff --git a/extension.js b/extension.js index 015304f7..61bdf9ce 100644 --- a/extension.js +++ b/extension.js @@ -1,5 +1,5 @@ // Bing Wallpaper GNOME extension -// Copyright (C) 2017-2020 Michael Carroll +// Copyright (C) 2017-2021 Michael Carroll // This extension is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or @@ -192,6 +192,7 @@ const BingWallpaperIndicator = new Lang.Class({ } else { this.thumbnailItem = new PopupMenu.PopupMenuItem(_("Thumbnail disabled on Wayland")); + log('X11 not detected, disabling some unsafe features'); } this.menu.addMenuItem(this.refreshItem); this.menu.addMenuItem(this.refreshDueItem); @@ -355,6 +356,8 @@ const BingWallpaperIndicator = new Lang.Class({ }, // set menu thumbnail + // "But really, what the extension is doing is a terrible terrible hack, and I'm quite surprised that it worked at all." - Florian Müllner, 2020 + // FIXME: find another way _setImage: function () { let pixbuf = this.thumbnail.gtkImage.get_pixbuf(); const { width, height } = pixbuf; diff --git a/locale/BingWallpaper.pot b/locale/BingWallpaper.pot index 0eb87638..a21ae1ec 100644 --- a/locale/BingWallpaper.pot +++ b/locale/BingWallpaper.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-28 19:31+1000\n" +"POT-Creation-Date: 2021-03-28 21:10+1000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -70,35 +70,92 @@ msgid "Settings" msgstr "" #: Settings.ui.h:14 -msgid "Gnome shell extension version: " +msgid "Use custom blur and brightness" msgstr "" #: Settings.ui.h:15 -msgid "" -"Changes your wallpaper daily to the Bing picture of the day for your region. " -"Displays the picture description and copyright information." +msgid "Override GDM3 lockscreen effects" msgstr "" #: Settings.ui.h:16 -msgid "Maintained by Michael Carroll" +msgid "Blur can improve readability of login prompt" msgstr "" #: Settings.ui.h:17 -msgid "https://github.com/neffo/bing-wallpaper-gnome-extension" +msgid "Background blur intensity" msgstr "" #: Settings.ui.h:18 -msgid "Based on NASA APOD Gnome shell extension by Elia Argentieri" +msgid "Can improve contrast of login prompt" msgstr "" #: Settings.ui.h:19 +msgid "Background brightness" +msgstr "" + +#: Settings.ui.h:20 +msgid "Presets" +msgstr "" + +#: Settings.ui.h:21 +msgid "Commonly used presets" +msgstr "" + +#: Settings.ui.h:22 +msgid "No blur, slight dim" +msgstr "" + +#: Settings.ui.h:23 +msgid "GNOME default" +msgstr "" + +#: Settings.ui.h:24 +msgid "Slight blur, slight dim" +msgstr "" + +#: Settings.ui.h:25 +msgid "Lock Screen" +msgstr "" + +#: Settings.ui.h:26 +msgid "New wallpaper images everyday from Bing" +msgstr "" + +#: Settings.ui.h:27 +msgid "Gnome shell extension version: " +msgstr "" + +#: Settings.ui.h:28 +msgid "https://github.com/neffo/bing-wallpaper-gnome-extension" +msgstr "" + +#: Settings.ui.h:29 +msgid "Maintained by Michael Carroll" +msgstr "" + +#: Settings.ui.h:30 +msgid "" +"Show your support to the author on Flattr or Github " +"Sponsors." +msgstr "" + +#: Settings.ui.h:31 +msgid "Changes since last version" +msgstr "" + +#: Settings.ui.h:32 +msgid "Based on NASA APOD Gnome shell extension by Elia Argentieri" +msgstr "" + +#: Settings.ui.h:33 msgid "" "This program comes with ABSOLUTELY NO WARRANTY.\n" -"See the GNU General Public License, version 3 or later for details." +"See the GNU General " +"Public License, version 3 or later for details." msgstr "" -#: Settings.ui.h:21 +#: Settings.ui.h:35 msgid "About" msgstr "" @@ -146,7 +203,7 @@ msgstr "" msgid "Bing Wallpaper of the Day for" msgstr "" -#: extension.js:433 +#: extension.js:433 utils.js:135 msgid "Market not available in your region" msgstr "" @@ -157,3 +214,15 @@ msgstr "" #: extension.js:482 msgid "No picture for today 😞." msgstr "" + +#: utils.js:124 +msgid "Fetching data..." +msgstr "" + +#: utils.js:139 +msgid "A network error occured" +msgstr "" + +#: utils.js:168 +msgid "No change log found for this release" +msgstr "" diff --git a/prefs.js b/prefs.js index 11984b02..4dacdc48 100644 --- a/prefs.js +++ b/prefs.js @@ -1,5 +1,5 @@ // Bing Wallpaper GNOME extension -// Copyright (C) 2017-2020 Michael Carroll +// Copyright (C) 2017-2021 Michael Carroll // This extension is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/utils.js b/utils.js index dcc5a991..a77ddc77 100644 --- a/utils.js +++ b/utils.js @@ -1,5 +1,5 @@ // Bing Wallpaper GNOME extension -// Copyright (C) 2017-2020 Michael Carroll +// Copyright (C) 2017-2021 Michael Carroll // This extension is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or