logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: d909a7cd27dc95451d184aa324505190f8c5d59b
parent 807f3221818d8f1dd703e6f09eabfc7da1f3ae8d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 16 Jul 2023 04:02:49 +0200

Improve handling of intentionally empty title

Diffstat:

Mbadwolf.c4++--
Mpo/fr.po33++++++++++++++++++++++++++++++++-
Mpo/messages.pot5++++-
3 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -234,11 +234,11 @@ webView_tab_label_change(struct Client *browser, const gchar *title) { GtkWidget *notebook = browser->window->notebook; -#define title_IS_EMPTY (title == NULL) || strnlen(title, 2) == 0 +#define title_IS_EMPTY title == NULL || title[0] == '\0' if(title_IS_EMPTY) title = webkit_web_view_get_title(browser->webView); if(title_IS_EMPTY) title = webkit_web_view_get_uri(browser->webView); - if(title_IS_EMPTY) title = "BadWolf"; + if(title_IS_EMPTY) title = _("Empty Title"); gtk_notebook_set_tab_label( GTK_NOTEBOOK(notebook), browser->box, badwolf_new_tab_box(title, browser)); diff --git a/po/fr.po b/po/fr.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.3.0+gd88f2e7\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2022-08-24 15:07+0200\n" +"POT-Creation-Date: 2023-07-16 04:07+0200\n" "PO-Revision-Date: 2021-04-10 18:43+0200\n" "Last-Translator: Haelwenn (lanodan) Monnier <contact@hacktivis.me>\n" "Language-Team: French\n" @@ -83,6 +83,9 @@ msgstr "Crash" msgid "Download starting…" msgstr "Démarrage du téléchargement" +msgid "Empty Title" +msgstr "Titre Vide" + msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" "Erreur : Une erreur inconnue est apparue pendant la validation du " @@ -154,6 +157,34 @@ msgid "_JS" msgstr "_JS" #, c-format +msgid "badwolf: Checking for userscripts matching %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Error getting userscript content: %s\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Out of Memory\n" +msgstr "" + +#, c-format +msgid "badwolf: Failed to list userscripts: Read Error\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Found %zd userscripts\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: No userscripts found\n" +msgstr "" + +#, c-format +msgid "badwolf: Notice: Userscripts loaded\n" +msgstr "" + +#, c-format msgid "badwolf: content-filter loaded, adding to content-manager…\n" msgstr "badwolf: content-filter chargé, ajout à content-manager…\n" diff --git a/po/messages.pot b/po/messages.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 1.2.0+geb77866.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2023-03-17 08:08+0100\n" +"POT-Creation-Date: 2023-07-16 04:07+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -78,6 +78,9 @@ msgstr "" msgid "Download starting…" msgstr "" +msgid "Empty Title" +msgstr "" + msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr ""