From 6880bf722d254d12e8236c78a7d858b9c94deee6 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 29 May 2020 23:44:13 +0200 Subject: uri.c: Add support for relative paths --- po/messages.pot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'po') diff --git a/po/messages.pot b/po/messages.pot index 115f3b4..8b30b0d 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 0.5.1+gf25fc89.HEAD\n" +"Project-Id-Version: Badwolf 1.0.0+gfffd169.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-05-18 04:14+0200\n" +"POT-Creation-Date: 2020-05-29 23:45+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- cgit v1.3.1-23-gd82d From ed40d74fdde65134365334b8d0d2b5593c121b89 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 29 May 2020 23:55:25 +0200 Subject: Fix implicit-declaration for realpath --- Makefile | 2 +- po/messages.pot | 4 ++-- uri.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'po') diff --git a/Makefile b/Makefile index f371a28..9cd4d96 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ EXE_test = uri_test TRANS = fr.mo pt_BR.mo DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt -CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\" +CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\" CDEPS += `$(PKGCONFIG) --cflags $(DEPS)` LIBS = `$(PKGCONFIG) --libs $(DEPS)` diff --git a/po/messages.pot b/po/messages.pot index 8b30b0d..28609d4 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+gfffd169.develop\n" +"Project-Id-Version: Badwolf 1.0.0+g6880bf7.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-05-29 23:45+0200\n" +"POT-Creation-Date: 2020-05-29 23:52+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/uri.c b/uri.c index 59e50d7..912bf86 100644 --- a/uri.c +++ b/uri.c @@ -4,7 +4,8 @@ #include "uri.h" -#include /* g_strcmp0() */ +#include /* g_strcmp0(), g_uri_parse_scheme(), g_strdup_printf */ +#include /* realpath(), free() */ #include /* access() */ const gchar * -- cgit v1.3.1-23-gd82d From 828e2e38e092a8ccc11a57b66baa14e2291f59e6 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 12 Jun 2020 01:50:39 +0200 Subject: downloads: Ellipsize destination file path --- config.h | 12 ++++++++++++ downloads.c | 1 + po/messages.pot | 14 +++++++------- 3 files changed, 20 insertions(+), 7 deletions(-) (limited to 'po') diff --git a/config.h b/config.h index d963cb6..14b142c 100644 --- a/config.h +++ b/config.h @@ -93,4 +93,16 @@ */ #define BADWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE +/* BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE: pango ellipsize mode of the download destination path, + * can be one of: + * - PANGO_ELLIPSIZE_NONE + * - PANGO_ELLIPSIZE_START + * - PANGO_ELLIPSIZE_MIDDLE + * - PANGO_ELLIPSIZE_END + * + * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode + */ +#define BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE + + #endif /* CONFIG_H_INCLUDED */ diff --git a/downloads.c b/downloads.c index 1a21ada..9b83edd 100644 --- a/downloads.c +++ b/downloads.c @@ -42,6 +42,7 @@ download_new_entry(WebKitDownload *webkit_download, struct Download *download) download->stop_icon = gtk_button_new_from_icon_name("process-stop", GTK_ICON_SIZE_SMALL_TOOLBAR); gtk_progress_bar_set_show_text(GTK_PROGRESS_BAR(download->progress), TRUE); + gtk_label_set_ellipsize(GTK_LABEL(download->file_path), BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE); g_signal_connect( download->stop_icon, "clicked", G_CALLBACK(download_stop_iconCb_clicked), webkit_download); diff --git a/po/messages.pot b/po/messages.pot index 28609d4..45867ee 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+g6880bf7.develop\n" +"Project-Id-Version: Badwolf 1.0.0+ged40d74.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-05-29 23:52+0200\n" +"POT-Creation-Date: 2020-06-12 01:46+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,27 +17,27 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: downloads.c:117 +#: downloads.c:118 #, c-format msgid "%02i:%02i:%02i Download cancelled" msgstr "" -#: downloads.c:119 +#: downloads.c:120 #, c-format msgid "%02i:%02i:%02i Download error" msgstr "" -#: downloads.c:141 +#: downloads.c:142 #, c-format msgid "%02i:%02i:%02i Download finished" msgstr "" -#: downloads.c:167 +#: downloads.c:168 #, c-format msgid "%02i:%02i:%02i Downloading…" msgstr "" -#: downloads.c:195 downloads.c:212 downloads.c:215 +#: downloads.c:196 downloads.c:213 downloads.c:216 msgid "Badwolf Downloads" msgstr "" -- cgit v1.3.1-23-gd82d From 4b85e087dad714f6e969f702e8be7319531afc37 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 12 Jun 2020 02:20:14 +0200 Subject: downloads: Use a ListBox in a ScrollWindow --- config.h | 1 - downloads.c | 17 ++++++++++------- po/messages.pot | 14 +++++++------- 3 files changed, 17 insertions(+), 15 deletions(-) (limited to 'po') diff --git a/config.h b/config.h index 14b142c..8426ce3 100644 --- a/config.h +++ b/config.h @@ -104,5 +104,4 @@ */ #define BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE - #endif /* CONFIG_H_INCLUDED */ diff --git a/downloads.c b/downloads.c index 9b83edd..09b7bb0 100644 --- a/downloads.c +++ b/downloads.c @@ -53,8 +53,7 @@ download_new_entry(WebKitDownload *webkit_download, struct Download *download) gtk_box_pack_start(GTK_BOX(download->container), download->status, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(download->container), download->file_path, FALSE, FALSE, 0); - gtk_box_pack_start( - GTK_BOX(download->window->downloads_tab), download->container, FALSE, FALSE, 0); + gtk_list_box_insert(GTK_LIST_BOX(download->window->downloads_tab), download->container, -1); gtk_widget_show_all(download->container); } @@ -180,14 +179,18 @@ downloadCb_received_data(WebKitDownload *webkit_download, guint64 data_lenght, g GtkWidget * badwolf_downloads_tab_new() { - return gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + return gtk_list_box_new(); } void badwolf_downloads_tab_attach(struct Window *window) { - gtk_notebook_insert_page(GTK_NOTEBOOK(window->notebook), window->downloads_tab, NULL, 0); - gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(window->notebook), window->downloads_tab, TRUE); + GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL); + gtk_widget_set_name(scrolled_window, "browser__scrollwin_downloads"); + gtk_container_add(GTK_CONTAINER(scrolled_window), window->downloads_tab); + gtk_notebook_insert_page(GTK_NOTEBOOK(window->notebook), scrolled_window, NULL, 0); + + gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(window->notebook), scrolled_window, TRUE); GtkWidget *tab_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_set_name(tab_box, "browser__tabbox"); @@ -211,9 +214,9 @@ badwolf_downloads_tab_attach(struct Window *window) gtk_box_pack_start(GTK_BOX(tab_box), label, TRUE, TRUE, 0); gtk_widget_set_tooltip_text(tab_box, _("Badwolf Downloads")); - gtk_notebook_set_tab_label(GTK_NOTEBOOK(window->notebook), window->downloads_tab, tab_box); + gtk_notebook_set_tab_label(GTK_NOTEBOOK(window->notebook), scrolled_window, tab_box); gtk_notebook_set_menu_label_text( - GTK_NOTEBOOK(window->notebook), window->downloads_tab, _("Badwolf Downloads")); + GTK_NOTEBOOK(window->notebook), scrolled_window, _("Badwolf Downloads")); gtk_widget_show_all(tab_box); } diff --git a/po/messages.pot b/po/messages.pot index 45867ee..0d84a9f 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+ged40d74.develop\n" +"Project-Id-Version: Badwolf 1.0.0+g828e2e3.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-06-12 01:46+0200\n" +"POT-Creation-Date: 2020-06-12 02:16+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,27 +17,27 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: downloads.c:118 +#: downloads.c:117 #, c-format msgid "%02i:%02i:%02i Download cancelled" msgstr "" -#: downloads.c:120 +#: downloads.c:119 #, c-format msgid "%02i:%02i:%02i Download error" msgstr "" -#: downloads.c:142 +#: downloads.c:141 #, c-format msgid "%02i:%02i:%02i Download finished" msgstr "" -#: downloads.c:168 +#: downloads.c:167 #, c-format msgid "%02i:%02i:%02i Downloading…" msgstr "" -#: downloads.c:196 downloads.c:213 downloads.c:216 +#: downloads.c:199 downloads.c:216 downloads.c:218 msgid "Badwolf Downloads" msgstr "" -- cgit v1.3.1-23-gd82d From cb232d9e919d67c71a96d7ab1fc85cf5aa968b81 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 16 Jun 2020 01:45:13 +0200 Subject: Add webcontext hex id to tab label --- badwolf.c | 20 +++++++++++++----- badwolf.h | 1 + interface.txt | 1 + po/messages.pot | 64 ++++++++++++++++++++++++++++----------------------------- 4 files changed, 49 insertions(+), 37 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index 54dcf53..b0e2beb 100644 --- a/badwolf.c +++ b/badwolf.c @@ -12,13 +12,14 @@ #include /* _() and other internationalization/localization helpers */ #include /* soup* */ #include /* LC_* */ -#include /* perror(), fprintf() */ +#include /* perror(), fprintf(), snprintf() */ #include /* malloc() */ #include /* access() */ gchar *web_extensions_directory; -const gchar *homepage = "https://hacktivis.me/projects/badwolf"; -const gchar *version = VERSION; +const gchar *homepage = "https://hacktivis.me/projects/badwolf"; +const gchar *version = VERSION; +int context_id_counter = 0; static gboolean WebViewCb_close(WebKitWebView *webView, gpointer user_data); static gboolean WebViewCb_web_process_terminated(WebKitWebView *webView, @@ -134,6 +135,10 @@ GtkWidget * badwolf_new_tab_box(const gchar *title, struct Client *browser) { (void)browser; + char context_id_str[7]; + + snprintf(context_id_str, 7, "%4X: ", browser->context_id); + GtkWidget *tab_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_set_name(tab_box, "browser__tabbox"); GtkWidget *close = @@ -141,6 +146,8 @@ badwolf_new_tab_box(const gchar *title, struct Client *browser) gtk_widget_set_name(close, "browser__tabbox__close"); GtkWidget *label = gtk_label_new(title); gtk_widget_set_name(label, "browser__tabbox__label"); + GtkWidget *context_label = gtk_label_new(context_id_str); + gtk_widget_set_name(label, "browser__tabbox__context_label"); GtkWidget *playing = gtk_image_new_from_icon_name("audio-volume-high-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); gtk_widget_set_name(playing, "browser__tabbox__playing"); @@ -155,8 +162,10 @@ badwolf_new_tab_box(const gchar *title, struct Client *browser) gtk_label_set_ellipsize(GTK_LABEL(label), BADWOLF_TAB_LABEL_ELLIPSIZE); gtk_label_set_single_line_mode(GTK_LABEL(label), TRUE); + gtk_label_set_single_line_mode(GTK_LABEL(context_label), TRUE); gtk_box_pack_start(GTK_BOX(tab_box), playing, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tab_box), context_label, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tab_box), label, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tab_box), close, FALSE, FALSE, 0); @@ -589,8 +598,9 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat if(browser == NULL) return NULL; - browser->window = window; - browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + browser->window = window; + browser->context_id = context_id_counter++; + browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_widget_set_name(browser->box, "browser__box"); browser->toolbar = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); diff --git a/badwolf.h b/badwolf.h index 7911c33..99d7b78 100644 --- a/badwolf.h +++ b/badwolf.h @@ -26,6 +26,7 @@ struct Client GtkWidget *auto_load_images; GtkWidget *location; + int context_id; WebKitWebView *webView; struct Window *window; diff --git a/interface.txt b/interface.txt index 76d9526..f23a149 100644 --- a/interface.txt +++ b/interface.txt @@ -3,6 +3,7 @@ - Each tab contains a Browser View or the Downloads View ## Tab Labels +- An hexadecimal number identifying the webkit process context - An icon to indicate if a media is playing - The title of the web view - A close button diff --git a/po/messages.pot b/po/messages.pot index 0d84a9f..c150e4e 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+g828e2e3.develop\n" +"Project-Id-Version: Badwolf 1.0.0+g4b85e08.context-id\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-06-12 02:16+0200\n" +"POT-Creation-Date: 2020-06-16 01:41+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,27 +37,27 @@ msgstr "" msgid "%02i:%02i:%02i Downloading…" msgstr "" -#: downloads.c:199 downloads.c:216 downloads.c:218 +#: downloads.c:199 downloads.c:216 downloads.c:219 msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:910 +#: badwolf.c:920 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:403 +#: badwolf.c:412 msgid "Continue" msgstr "" -#: badwolf.c:353 +#: badwolf.c:362 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" "\n" msgstr "" -#: badwolf.c:99 +#: badwolf.c:100 msgid "Crashed" msgstr "" @@ -65,31 +65,31 @@ msgstr "" msgid "Download starting…" msgstr "" -#: badwolf.c:376 +#: badwolf.c:385 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -#: badwolf.c:357 +#: badwolf.c:366 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "" -#: badwolf.c:370 +#: badwolf.c:379 msgid "Error: The certificate has been revoked.\n" msgstr "" -#: badwolf.c:367 +#: badwolf.c:376 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -#: badwolf.c:373 +#: badwolf.c:382 msgid "Error: The certificate is considered to be insecure.\n" msgstr "" -#: badwolf.c:364 +#: badwolf.c:373 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -#: badwolf.c:360 +#: badwolf.c:369 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" @@ -100,79 +100,79 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:839 +#: badwolf.c:849 msgid "New tab" msgstr "" -#: badwolf.c:959 +#: badwolf.c:969 msgid "Open new tab" msgstr "" -#: badwolf.c:103 +#: badwolf.c:104 msgid "Out of Memory" msgstr "" -#: badwolf.c:908 +#: badwolf.c:918 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:915 +#: badwolf.c:925 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:400 +#: badwolf.c:409 #, c-format msgid "TLS Error for %s." msgstr "" -#: badwolf.c:403 +#: badwolf.c:412 msgid "Temporarily Add Exception" msgstr "" -#: badwolf.c:610 +#: badwolf.c:620 msgid "Toggle javascript" msgstr "" -#: badwolf.c:615 +#: badwolf.c:625 msgid "Toggle loading images automatically" msgstr "" -#: badwolf.c:107 +#: badwolf.c:108 msgid "Unknown Crash" msgstr "" -#: badwolf.c:613 +#: badwolf.c:623 msgid "_IMG" msgstr "" -#: badwolf.c:608 +#: badwolf.c:618 msgid "_JS" msgstr "" -#: badwolf.c:728 +#: badwolf.c:738 msgid "search in current page" msgstr "" -#: badwolf.c:98 +#: badwolf.c:99 msgid "the web process crashed.\n" msgstr "" -#: badwolf.c:102 +#: badwolf.c:103 msgid "the web process exceeded the memory limit.\n" msgstr "" -#: badwolf.c:106 +#: badwolf.c:107 msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:922 +#: badwolf.c:932 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:993 +#: badwolf.c:1003 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 31e176f6f7c2ac8cf7d1c147a2f20c4e74b21932 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 16 Jun 2020 06:21:16 +0200 Subject: fix context_id incrementation --- badwolf.c | 23 ++++++++++++++--------- badwolf.h | 2 +- po/messages.pot | 50 +++++++++++++++++++++++++------------------------- 3 files changed, 40 insertions(+), 35 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index b0e2beb..a8b8802 100644 --- a/badwolf.c +++ b/badwolf.c @@ -293,10 +293,15 @@ WebViewCb_create(WebKitWebView *related_web_view, gpointer user_data) { (void)navigation_action; - struct Window *window = (struct Window *)user_data; - struct Client *browser = new_browser(window, NULL, related_web_view); + struct Client *old_browser = (struct Client *)user_data; + struct Client *browser = NULL; + + // shouldn't be needed but better be safe + old_browser->webView = related_web_view; + + browser = new_browser(old_browser->window, NULL, old_browser); - if(badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser) < 0) + if(badwolf_new_tab(GTK_NOTEBOOK(old_browser->window->notebook), browser) < 0) return NULL; else return browser->webView; @@ -590,16 +595,16 @@ widgetCb_drop_button3_event(GtkWidget *widget, GdkEvent *event, gpointer user_da } struct Client * -new_browser(struct Window *window, const gchar *target_url, WebKitWebView *related_web_view) +new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser) { struct Client *browser = malloc(sizeof(struct Client)); - target_url = badwolf_ensure_uri_scheme(target_url, (related_web_view == NULL)); + target_url = badwolf_ensure_uri_scheme(target_url, (old_browser == NULL)); char *badwolf_l10n = NULL; if(browser == NULL) return NULL; browser->window = window; - browser->context_id = context_id_counter++; + browser->context_id = old_browser == NULL ? context_id_counter++ : old_browser->context_id; browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_widget_set_name(browser->box, "browser__box"); @@ -670,7 +675,7 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat "web-context", web_context, "related-view", - related_web_view, + old_browser == NULL ? NULL : old_browser->webView, "settings", settings, NULL)); @@ -799,7 +804,7 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat "notify::estimated-load-progress", G_CALLBACK(WebViewCb_notify__estimated_load_progress), browser); - g_signal_connect(browser->webView, "create", G_CALLBACK(WebViewCb_create), window); + g_signal_connect(browser->webView, "create", G_CALLBACK(WebViewCb_create), browser); g_signal_connect(browser->webView, "close", G_CALLBACK(WebViewCb_close), browser); g_signal_connect( browser->webView, "key-press-event", G_CALLBACK(WebViewCb_key_press_event), browser); @@ -830,7 +835,7 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat /* signals for box container */ g_signal_connect(browser->box, "key-press-event", G_CALLBACK(boxCb_key_press_event), browser); - if(related_web_view == NULL) webkit_web_view_load_uri(browser->webView, target_url); + if(old_browser == NULL) webkit_web_view_load_uri(browser->webView, target_url); return browser; } diff --git a/badwolf.h b/badwolf.h index 99d7b78..530f9c8 100644 --- a/badwolf.h +++ b/badwolf.h @@ -38,7 +38,7 @@ struct Client GtkWidget *badwolf_new_tab_box(const gchar *title, struct Client *browser); void webView_tab_label_change(struct Client *browser, const gchar *title); struct Client * -new_browser(struct Window *window, const gchar *target_url, WebKitWebView *related_web_view); +new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser); int badwolf_new_tab(GtkNotebook *notebook, struct Client *browser); gint badwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child); #endif /* BADWOLF_H_INCLUDED */ diff --git a/po/messages.pot b/po/messages.pot index c150e4e..e669e74 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+g4b85e08.context-id\n" +"Project-Id-Version: Badwolf 1.0.0+g5c8cf6d.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-06-16 01:41+0200\n" +"POT-Creation-Date: 2020-06-16 06:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,16 +41,16 @@ msgstr "" msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:920 +#: badwolf.c:925 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:412 +#: badwolf.c:417 msgid "Continue" msgstr "" -#: badwolf.c:362 +#: badwolf.c:367 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -65,31 +65,31 @@ msgstr "" msgid "Download starting…" msgstr "" -#: badwolf.c:385 +#: badwolf.c:390 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -#: badwolf.c:366 +#: badwolf.c:371 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "" -#: badwolf.c:379 +#: badwolf.c:384 msgid "Error: The certificate has been revoked.\n" msgstr "" -#: badwolf.c:376 +#: badwolf.c:381 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -#: badwolf.c:382 +#: badwolf.c:387 msgid "Error: The certificate is considered to be insecure.\n" msgstr "" -#: badwolf.c:373 +#: badwolf.c:378 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -#: badwolf.c:369 +#: badwolf.c:374 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" @@ -100,11 +100,11 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:849 +#: badwolf.c:854 msgid "New tab" msgstr "" -#: badwolf.c:969 +#: badwolf.c:974 msgid "Open new tab" msgstr "" @@ -112,30 +112,30 @@ msgstr "" msgid "Out of Memory" msgstr "" -#: badwolf.c:918 +#: badwolf.c:923 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:925 +#: badwolf.c:930 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:409 +#: badwolf.c:414 #, c-format msgid "TLS Error for %s." msgstr "" -#: badwolf.c:412 +#: badwolf.c:417 msgid "Temporarily Add Exception" msgstr "" -#: badwolf.c:620 +#: badwolf.c:625 msgid "Toggle javascript" msgstr "" -#: badwolf.c:625 +#: badwolf.c:630 msgid "Toggle loading images automatically" msgstr "" @@ -143,15 +143,15 @@ msgstr "" msgid "Unknown Crash" msgstr "" -#: badwolf.c:623 +#: badwolf.c:628 msgid "_IMG" msgstr "" -#: badwolf.c:618 +#: badwolf.c:623 msgid "_JS" msgstr "" -#: badwolf.c:738 +#: badwolf.c:743 msgid "search in current page" msgstr "" @@ -167,12 +167,12 @@ msgstr "" msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:932 +#: badwolf.c:937 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1003 +#: badwolf.c:1008 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From e94212d51be4e15e12a67e633baa32f0a0d6273b Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 4 Jul 2020 06:52:00 +0200 Subject: badwolf: badwolf_get_tab_position → gtk_notebook_page_num MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- badwolf.c | 16 ++------------- po/messages.pot | 62 ++++++++++++++++++++++++++++----------------------------- 2 files changed, 33 insertions(+), 45 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index a8b8802..6bb0470 100644 --- a/badwolf.c +++ b/badwolf.c @@ -75,8 +75,7 @@ WebViewCb_close(WebKitWebView *webView, gpointer user_data) struct Client *browser = (struct Client *)user_data; GtkNotebook *notebook = GTK_NOTEBOOK(browser->window->notebook); - gtk_notebook_remove_page(notebook, - badwolf_get_tab_position(GTK_CONTAINER(notebook), browser->box)); + gtk_notebook_remove_page(notebook, gtk_notebook_page_num(GTK_NOTEBOOK(notebook), browser->box)); gtk_widget_destroy(browser->box); @@ -221,7 +220,7 @@ webView_tab_label_change(struct Client *browser, const gchar *title) gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(notebook), browser->box, title); // Set the window title if the title change was on the current tab - if(badwolf_get_tab_position(GTK_CONTAINER(notebook), browser->box) == + if(gtk_notebook_page_num(GTK_NOTEBOOK(notebook), browser->box) == gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook))) gtk_window_set_title(GTK_WINDOW(browser->window->main_window), title); } @@ -898,17 +897,6 @@ notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gtk_window_set_title(GTK_WINDOW(window->main_window), gtk_widget_get_tooltip_text(label)); } -gint -badwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child) -{ - GValue position = G_VALUE_INIT; - g_value_init(&position, G_TYPE_INT); - - gtk_container_child_get_property(notebook, child, "position", &position); - - return g_value_get_int(&position); -} - int main(int argc, char *argv[]) { diff --git a/po/messages.pot b/po/messages.pot index e669e74..b2ca404 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+g5c8cf6d.develop\n" +"Project-Id-Version: Badwolf 1.0.0+g498bce5.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-06-16 06:32+0200\n" +"POT-Creation-Date: 2020-07-04 06:53+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,23 +41,23 @@ msgstr "" msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:925 +#: badwolf.c:913 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:417 +#: badwolf.c:416 msgid "Continue" msgstr "" -#: badwolf.c:367 +#: badwolf.c:366 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" "\n" msgstr "" -#: badwolf.c:100 +#: badwolf.c:99 msgid "Crashed" msgstr "" @@ -65,31 +65,31 @@ msgstr "" msgid "Download starting…" msgstr "" -#: badwolf.c:390 +#: badwolf.c:389 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -#: badwolf.c:371 +#: badwolf.c:370 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "" -#: badwolf.c:384 +#: badwolf.c:383 msgid "Error: The certificate has been revoked.\n" msgstr "" -#: badwolf.c:381 +#: badwolf.c:380 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -#: badwolf.c:387 +#: badwolf.c:386 msgid "Error: The certificate is considered to be insecure.\n" msgstr "" -#: badwolf.c:378 +#: badwolf.c:377 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -#: badwolf.c:374 +#: badwolf.c:373 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" @@ -100,79 +100,79 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:854 +#: badwolf.c:853 msgid "New tab" msgstr "" -#: badwolf.c:974 +#: badwolf.c:962 msgid "Open new tab" msgstr "" -#: badwolf.c:104 +#: badwolf.c:103 msgid "Out of Memory" msgstr "" -#: badwolf.c:923 +#: badwolf.c:911 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:930 +#: badwolf.c:918 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:414 +#: badwolf.c:413 #, c-format msgid "TLS Error for %s." msgstr "" -#: badwolf.c:417 +#: badwolf.c:416 msgid "Temporarily Add Exception" msgstr "" -#: badwolf.c:625 +#: badwolf.c:624 msgid "Toggle javascript" msgstr "" -#: badwolf.c:630 +#: badwolf.c:629 msgid "Toggle loading images automatically" msgstr "" -#: badwolf.c:108 +#: badwolf.c:107 msgid "Unknown Crash" msgstr "" -#: badwolf.c:628 +#: badwolf.c:627 msgid "_IMG" msgstr "" -#: badwolf.c:623 +#: badwolf.c:622 msgid "_JS" msgstr "" -#: badwolf.c:743 +#: badwolf.c:742 msgid "search in current page" msgstr "" -#: badwolf.c:99 +#: badwolf.c:98 msgid "the web process crashed.\n" msgstr "" -#: badwolf.c:103 +#: badwolf.c:102 msgid "the web process exceeded the memory limit.\n" msgstr "" -#: badwolf.c:107 +#: badwolf.c:106 msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:937 +#: badwolf.c:925 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1008 +#: badwolf.c:996 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From eaf289e8ebb017f7de4081a1564737da044dd341 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 4 Jul 2020 07:15:29 +0200 Subject: Switch automatically to a tab when user-requested This changes behavior but doesn't breaks meaning nor documentation and significantly improves usability. So meant to be applied directly into 1.0.x release branch. Closes: https://gitlab.com/lanodan/badWolf/-/issues/8 --- badwolf.c | 18 ++++++++++++------ badwolf.h | 2 +- keybindings.c | 6 ++++-- po/messages.pot | 18 +++++++++--------- 4 files changed, 26 insertions(+), 18 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index 6bb0470..d3dcde9 100644 --- a/badwolf.c +++ b/badwolf.c @@ -300,7 +300,7 @@ WebViewCb_create(WebKitWebView *related_web_view, browser = new_browser(old_browser->window, NULL, old_browser); - if(badwolf_new_tab(GTK_NOTEBOOK(old_browser->window->notebook), browser) < 0) + if(badwolf_new_tab(GTK_NOTEBOOK(old_browser->window->notebook), browser, FALSE) < 0) return NULL; else return browser->webView; @@ -839,7 +839,8 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b return browser; } -/* badwolf_new_tab: Inserts struct Client *browser in GtkNotebook *notebook +/* badwolf_new_tab: Inserts struct Client *browser in GtkNotebook *notebook + * and optionally switches selected tab to it. * * returns: * 0 : Ran successfully @@ -847,7 +848,7 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b * -2 : browser is NULL */ int -badwolf_new_tab(GtkNotebook *notebook, struct Client *browser) +badwolf_new_tab(GtkNotebook *notebook, struct Client *browser, bool auto_switch) { gint current_page = gtk_notebook_get_current_page(notebook); gchar *title = _("New tab"); @@ -864,6 +865,11 @@ badwolf_new_tab(GtkNotebook *notebook, struct Client *browser) gtk_widget_queue_draw(GTK_WIDGET(notebook)); + if(auto_switch) + { + gtk_notebook_set_current_page(notebook, gtk_notebook_page_num(notebook, browser->box)); + } + return 0; } @@ -874,7 +880,7 @@ new_tabCb_clicked(GtkButton *new_tab, gpointer user_data) struct Window *window = (struct Window *)user_data; struct Client *browser = new_browser(window, NULL, NULL); - badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser); + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser, TRUE); } static void @@ -982,10 +988,10 @@ main(int argc, char *argv[]) gtk_widget_show_all(window->main_window); if(argc == 1) - badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, NULL, NULL)); + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, NULL, NULL), FALSE); else for(int i = 1; i < argc; ++i) - badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, argv[i], NULL)); + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, argv[i], NULL), FALSE); gtk_notebook_set_current_page(GTK_NOTEBOOK(window->notebook), 1); diff --git a/badwolf.h b/badwolf.h index 530f9c8..a375be6 100644 --- a/badwolf.h +++ b/badwolf.h @@ -39,6 +39,6 @@ GtkWidget *badwolf_new_tab_box(const gchar *title, struct Client *browser); void webView_tab_label_change(struct Client *browser, const gchar *title); struct Client * new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser); -int badwolf_new_tab(GtkNotebook *notebook, struct Client *browser); +int badwolf_new_tab(GtkNotebook *notebook, struct Client *browser, bool auto_switch); gint badwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child); #endif /* BADWOLF_H_INCLUDED */ diff --git a/keybindings.c b/keybindings.c index 75860ed..95e3fd5 100644 --- a/keybindings.c +++ b/keybindings.c @@ -14,7 +14,7 @@ about_dialogCb_activate_link(GtkAboutDialog *about_dialog, gchar *uri, gpointer (void)about_dialog; struct Window *window = (struct Window *)user_data; - badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, uri, NULL)); + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, uri, NULL), FALSE); gtk_widget_destroy(GTK_WIDGET(about_dialog)); @@ -112,7 +112,9 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client * { case GDK_KEY_Page_Down: gtk_notebook_next_page(notebook); return TRUE; case GDK_KEY_Page_Up: gtk_notebook_prev_page(notebook); return TRUE; - case GDK_KEY_t: badwolf_new_tab(notebook, new_browser(window, NULL, NULL)); return TRUE; + case GDK_KEY_t: + badwolf_new_tab(notebook, new_browser(window, NULL, NULL), TRUE); + return TRUE; } } } diff --git a/po/messages.pot b/po/messages.pot index b2ca404..fd9ca35 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.0+g498bce5.develop\n" +"Project-Id-Version: Badwolf 1.0.0+ge94212d.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-07-04 06:53+0200\n" +"POT-Creation-Date: 2020-07-04 07:13+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,7 +41,7 @@ msgstr "" msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:913 +#: badwolf.c:919 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" @@ -100,11 +100,11 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:853 +#: badwolf.c:854 msgid "New tab" msgstr "" -#: badwolf.c:962 +#: badwolf.c:968 msgid "Open new tab" msgstr "" @@ -112,12 +112,12 @@ msgstr "" msgid "Out of Memory" msgstr "" -#: badwolf.c:911 +#: badwolf.c:917 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:918 +#: badwolf.c:924 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" @@ -167,12 +167,12 @@ msgstr "" msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:925 +#: badwolf.c:931 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:996 +#: badwolf.c:1002 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 6b58d37c4a86819a39868a37a95444cd2abfc4b4 Mon Sep 17 00:00:00 2001 From: Oğuz Ersen Date: Fri, 17 Jul 2020 21:36:26 +0000 Subject: po/tr.po: Add Turkish translation. --- po/tr.po | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 po/tr.po (limited to 'po') diff --git a/po/tr.po b/po/tr.po new file mode 100644 index 0000000..040c48c --- /dev/null +++ b/po/tr.po @@ -0,0 +1,183 @@ +# Turkish translations for Badwolf package. +# Copyright (C) 2020 Badwolf Authors +# This file is distributed under the same license as the Badwolf package. +# Oğuz Ersen , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2020-07-11 11:35+0200\n" +"PO-Revision-Date: 2020-07-17 23:50+0300\n" +"Last-Translator: Oğuz Ersen \n" +"Language-Team: Turkish\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: downloads.c:117 +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i İndirme iptal edildi" + +#: downloads.c:119 +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i İndirme hatası" + +#: downloads.c:141 +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i İndirme tamamlandı" + +#: downloads.c:167 +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i İndiriliyor…" + +#: downloads.c:199 downloads.c:216 downloads.c:219 +msgid "Badwolf Downloads" +msgstr "Badwolf İndirmeleri" + +#: badwolf.c:919 +#, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Oluşturma zamanı WebKit sürümü: %d.%d.%d\n" + +#: badwolf.c:416 +msgid "Continue" +msgstr "Devam Et" + +#: badwolf.c:366 +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Bağlantının güvenliğini daha iyi sağlamak için TLS sertifikası " +"doğrulanamadı. Makinenizi ve ağınızı doğrulamak isteyebilirsiniz.\n" +"\n" + +#: badwolf.c:99 +msgid "Crashed" +msgstr "Çöktü" + +#: downloads.c:39 +msgid "Download starting…" +msgstr "İndirme başlatılıyor…" + +#: badwolf.c:389 +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "Hata: Sertifika doğrulanırken bilinmeyen bir hata oluştu.\n" + +#: badwolf.c:370 +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Hata: X509 Sertifika Yetkilisi bilinmiyor.\n" + +#: badwolf.c:383 +msgid "Error: The certificate has been revoked.\n" +msgstr "Hata: Sertifika yürürlükten kaldırıldı.\n" + +#: badwolf.c:380 +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "Hata: Sertifikanın süresi doldu. Sisteminizin saatini gözden geçirin.\n" + +#: badwolf.c:386 +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Hata: Sertifikanın güvensiz olduğu kabul ediliyor.\n" + +#: badwolf.c:377 +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "Hata: Sertifika henüz geçerli değil. Sisteminizin saatini gözden geçirin.\n" + +#: badwolf.c:373 +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "Hata: Verilen kimlik beklenen ile eşleşmiyor.\n" + +#: keybindings.c:32 +#, c-format +msgid "" +"Minimalist and privacy-oriented WebKitGTK+ browser\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Sadelik ve gizlilik odaklı WebKitGTK+ tarayıcısı\n" +"Çalışma zamanı WebKit sürümü: %d.%d.%d" + +#: badwolf.c:854 +msgid "New tab" +msgstr "Yeni sekme" + +#: badwolf.c:968 +msgid "Open new tab" +msgstr "Yeni sekme aç" + +#: badwolf.c:103 +msgid "Out of Memory" +msgstr "Yetersiz Bellek" + +#: badwolf.c:917 +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Çalışan Badwolf sürümü: %s\n" + +#: badwolf.c:924 +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Çalışma zamanı WebKit sürümü: %d.%d.%d\n" + +#: badwolf.c:413 +#, c-format +msgid "TLS Error for %s." +msgstr "%s için TLS Hatası." + +#: badwolf.c:416 +msgid "Temporarily Add Exception" +msgstr "Geçici Olarak İstisna Ekle" + +#: badwolf.c:624 +msgid "Toggle javascript" +msgstr "Javascript'i aç/kapat" + +#: badwolf.c:629 +msgid "Toggle loading images automatically" +msgstr "Resimleri otomatik yüklemeyi aç/kapat" + +#: badwolf.c:107 +msgid "Unknown Crash" +msgstr "Bilinmeyen Çökme" + +#: badwolf.c:627 +msgid "_IMG" +msgstr "_RSM" + +#: badwolf.c:622 +msgid "_JS" +msgstr "_JS" + +#: badwolf.c:742 +msgid "search in current page" +msgstr "geçerli sayfada ara" + +#: badwolf.c:98 +msgid "the web process crashed.\n" +msgstr "web işlemi çöktü.\n" + +#: badwolf.c:102 +msgid "the web process exceeded the memory limit.\n" +msgstr "web işlemi bellek sınırını aştı.\n" + +#: badwolf.c:106 +msgid "the web process terminated for an unknown reason.\n" +msgstr "web işlemi bilinmeyen bir nedenle sona erdi.\n" + +#: badwolf.c:931 +#, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "webkit-web-extension dizini şuna ayarlandı: %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +#: badwolf.c:1002 +msgid "ø" +msgstr "" -- cgit v1.3.1-23-gd82d From 506ea6fa32138827a103cf11cc174f4a0f3a25c3 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Oct 2020 02:42:10 +0100 Subject: Add _() to bookmarks.c and update french translation --- bookmarks.c | 15 ++++----- po/fr.po | 95 ++++++++++++++++++++++++++++++++++++++------------------- po/messages.pot | 83 ++++++++++++++++++++++++++++++++++--------------- po/pt_BR.po | 83 ++++++++++++++++++++++++++++++++++--------------- po/tr.po | 87 ++++++++++++++++++++++++++++++++++++---------------- 5 files changed, 249 insertions(+), 114 deletions(-) (limited to 'po') diff --git a/bookmarks.c b/bookmarks.c index 2eb321d..2a6df22 100644 --- a/bookmarks.c +++ b/bookmarks.c @@ -3,6 +3,7 @@ #include "badwolf.h" #include "config.h" +#include /* _() and other internationalization/localization helpers */ #include /* g_fprintf() */ #include #include @@ -55,7 +56,7 @@ load_xpath_results(GtkListStore *list_store, xmlNodeSetPtr nodes) size = (nodes) ? nodes->nodeNr : 0; - g_fprintf(stderr, "Bookmarks: Found %d bookmarks.\n", size); + g_fprintf(stderr, _("Bookmarks: Found %d bookmarks.\n"), size); for(int i = 0; i < size; i++) if(nodes->nodeTab[i]) { @@ -77,15 +78,15 @@ bookmarks_completion_init() if(access(filename, R_OK) != 0) { - g_fprintf(stderr, "Bookmarks: No loadable file found at %s\n", filename); + g_fprintf(stderr, _("Bookmarks: No loadable file found at %s\n"), filename); return NULL; } - g_fprintf(stderr, "Bookmarks: loading at %s\n", filename); + g_fprintf(stderr, _("Bookmarks: loading at %s\n"), filename); doc = xmlParseFile(filename); if(doc == NULL) { - g_fprintf(stderr, "Bookmarks: unable to parse file \"%s\"\n", filename); + g_fprintf(stderr, _("Bookmarks: unable to parse file \"%s\"\n"), filename); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -95,7 +96,7 @@ bookmarks_completion_init() xpathCtx = xmlXPathNewContext(doc); if(xpathCtx == NULL) { - g_fprintf(stderr, "Bookmarks: unable to create new XPath context\n"); + g_fprintf(stderr, _("Bookmarks: unable to create new XPath context\n")); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -103,7 +104,7 @@ bookmarks_completion_init() xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); if(xpathObj == NULL) { - g_fprintf(stderr, "Bookmarks: unable to evaluate xpath expression \"%s\"\n", xpathExpr); + g_fprintf(stderr, _("Bookmarks: unable to evaluate XPath expression \"%s\"\n"), xpathExpr); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -112,7 +113,7 @@ bookmarks_completion_init() location_completion_cleanup(xpathObj, xpathCtx, doc); - g_fprintf(stderr, "Bookmarks: Done.\n"); + g_fprintf(stderr, _("Bookmarks: Done.\n")); return GTK_TREE_MODEL(list_store); } diff --git a/po/fr.po b/po/fr.po index d41f044..d938819 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,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: 2020-05-15 06:00+0200\n" +"POT-Creation-Date: 2020-10-25 02:35+0100\n" "PO-Revision-Date: 2019-12-22 00:57+0100\n" "Last-Translator: Haelwenn (lanodan) Monnier \n" "Language-Team: French\n" @@ -37,20 +37,53 @@ msgstr "%02i:%02i:%02i Téléchargement finit" msgid "%02i:%02i:%02i Downloading…" msgstr "%02i:%02i:%02i Téléchargement en cours…" -#: downloads.c:195 downloads.c:212 downloads.c:215 +#: downloads.c:199 downloads.c:216 downloads.c:219 msgid "Badwolf Downloads" msgstr "Téléchargements Badwolf" -#: badwolf.c:861 +#: bookmarks.c:116 +msgid "Bookmarks: Done.\n" +msgstr "Marque-Pages: Terminé.\n" + +#: bookmarks.c:59 +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Marque-Pages: %d marque-pages trouvés.\n" + +#: bookmarks.c:81 +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Marques-Pages: Aucun fichier chargeable trouvé à %s\n" + +#: bookmarks.c:85 +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Marques-Pages: chargement à %s\n" + +#: bookmarks.c:99 +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Marques-Pages: Échec à la création du contexte XPath\n" + +#: bookmarks.c:107 +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "Marques-Pages: Échec à l'évaluation de l'expression XPath « %s »\n" + +#: bookmarks.c:89 +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Marques-Pages: Ëchec au parsage du fichier « %s »\n" + +#: badwolf.c:954 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit à la compilation: %d.%d.%d\n" -#: badwolf.c:391 +#: badwolf.c:439 msgid "Continue" msgstr "Continuer" -#: badwolf.c:341 +#: badwolf.c:389 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -61,7 +94,7 @@ msgstr "" "et son réseau.\n" "\n" -#: badwolf.c:98 +#: badwolf.c:99 msgid "Crashed" msgstr "Crash" @@ -69,33 +102,33 @@ msgstr "Crash" msgid "Download starting…" msgstr "Démarrage du téléchargement" -#: badwolf.c:364 +#: badwolf.c:412 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" "Erreur : Une erreur inconnue est apparue pendant la validation du " "certificat.\n" -#: badwolf.c:345 +#: badwolf.c:393 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Erreur : L'autorité de certification (CA X509) est inconnue.\n" -#: badwolf.c:358 +#: badwolf.c:406 msgid "Error: The certificate has been revoked.\n" msgstr "Erreur : Le certificat à été révoqué.\n" -#: badwolf.c:355 +#: badwolf.c:403 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "Erreur : Le certificat a expiré.\n" -#: badwolf.c:361 +#: badwolf.c:409 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Erreur : Le certificat est considéré comme non-sécurisé.\n" -#: badwolf.c:352 +#: badwolf.c:400 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "Erreur : Le certificat n'est pas encore valide.\n" -#: badwolf.c:348 +#: badwolf.c:396 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Erreur : L'identité ne correspond pas à celle attendue.\n" @@ -108,80 +141,80 @@ msgstr "" "Navigateur WebKitGTK+ minimaliste et orienté vie privée\n" "Version WebKit au lancement: %d.%d.%d" -#: badwolf.c:790 +#: badwolf.c:889 msgid "New tab" msgstr "Nouvel onglet" -#: badwolf.c:910 +#: badwolf.c:1006 msgid "Open new tab" msgstr "Ouvrir un nouvel onglet" -#: badwolf.c:102 +#: badwolf.c:103 msgid "Out of Memory" msgstr "Dépassement Mémoire" -#: badwolf.c:859 +#: badwolf.c:952 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Version de Badwolf: %s\n" -#: badwolf.c:866 +#: badwolf.c:959 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit au lancement: %d.%d.%d\n" -#: badwolf.c:388 +#: badwolf.c:436 #, c-format msgid "TLS Error for %s." msgstr "Erreur TLS pour %s." -#: badwolf.c:391 +#: badwolf.c:439 #, fuzzy msgid "Temporarily Add Exception" msgstr "Ajouter Temporairement une Exception" -#: badwolf.c:588 +#: badwolf.c:647 msgid "Toggle javascript" msgstr "Activer/Désactiver javascript" -#: badwolf.c:593 +#: badwolf.c:652 msgid "Toggle loading images automatically" msgstr "" -#: badwolf.c:106 +#: badwolf.c:107 msgid "Unknown Crash" msgstr "Crash inconnu" -#: badwolf.c:591 +#: badwolf.c:650 msgid "_IMG" msgstr "_IMG" -#: badwolf.c:586 +#: badwolf.c:645 msgid "_JS" msgstr "_JS" -#: badwolf.c:706 +#: badwolf.c:777 msgid "search in current page" msgstr "recherche dans la page courante" -#: badwolf.c:97 +#: badwolf.c:98 msgid "the web process crashed.\n" msgstr "le processus web a cessé de fonctionner.\n" -#: badwolf.c:101 +#: badwolf.c:102 msgid "the web process exceeded the memory limit.\n" msgstr "le processus web a dépassé la limitation de mémoire.\n" -#: badwolf.c:105 +#: badwolf.c:106 msgid "the web process terminated for an unknown reason.\n" msgstr "le processus web s’est interrompu pour une raison inconnue.\n" -#: badwolf.c:873 +#: badwolf.c:966 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "Répertoire webkit-web-extension configuré à %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:944 +#: badwolf.c:1042 msgid "ø" msgstr "" diff --git a/po/messages.pot b/po/messages.pot index b122acb..dfddb74 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" +"Project-Id-Version: Badwolf 1.0.3+g0391361.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-07-11 11:35+0200\n" +"POT-Creation-Date: 2020-10-25 02:35+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,16 +41,49 @@ msgstr "" msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:919 +#: bookmarks.c:116 +msgid "Bookmarks: Done.\n" +msgstr "" + +#: bookmarks.c:59 +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "" + +#: bookmarks.c:81 +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "" + +#: bookmarks.c:85 +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "" + +#: bookmarks.c:99 +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "" + +#: bookmarks.c:107 +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "" + +#: bookmarks.c:89 +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "" + +#: badwolf.c:954 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:416 +#: badwolf.c:439 msgid "Continue" msgstr "" -#: badwolf.c:366 +#: badwolf.c:389 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -65,31 +98,31 @@ msgstr "" msgid "Download starting…" msgstr "" -#: badwolf.c:389 +#: badwolf.c:412 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -#: badwolf.c:370 +#: badwolf.c:393 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "" -#: badwolf.c:383 +#: badwolf.c:406 msgid "Error: The certificate has been revoked.\n" msgstr "" -#: badwolf.c:380 +#: badwolf.c:403 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -#: badwolf.c:386 +#: badwolf.c:409 msgid "Error: The certificate is considered to be insecure.\n" msgstr "" -#: badwolf.c:377 +#: badwolf.c:400 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -#: badwolf.c:373 +#: badwolf.c:396 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" @@ -100,11 +133,11 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:854 +#: badwolf.c:889 msgid "New tab" msgstr "" -#: badwolf.c:968 +#: badwolf.c:1006 msgid "Open new tab" msgstr "" @@ -112,30 +145,30 @@ msgstr "" msgid "Out of Memory" msgstr "" -#: badwolf.c:917 +#: badwolf.c:952 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:924 +#: badwolf.c:959 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:413 +#: badwolf.c:436 #, c-format msgid "TLS Error for %s." msgstr "" -#: badwolf.c:416 +#: badwolf.c:439 msgid "Temporarily Add Exception" msgstr "" -#: badwolf.c:624 +#: badwolf.c:647 msgid "Toggle javascript" msgstr "" -#: badwolf.c:629 +#: badwolf.c:652 msgid "Toggle loading images automatically" msgstr "" @@ -143,15 +176,15 @@ msgstr "" msgid "Unknown Crash" msgstr "" -#: badwolf.c:627 +#: badwolf.c:650 msgid "_IMG" msgstr "" -#: badwolf.c:622 +#: badwolf.c:645 msgid "_JS" msgstr "" -#: badwolf.c:742 +#: badwolf.c:777 msgid "search in current page" msgstr "" @@ -167,12 +200,12 @@ msgstr "" msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:931 +#: badwolf.c:966 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1002 +#: badwolf.c:1042 msgid "ø" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 9f54980..56f5ea0 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.4.0+g607300e\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-05-18 03:06+0200\n" +"POT-Creation-Date: 2020-10-25 02:35+0100\n" "PO-Revision-Date: 2020-05-17 20:18-0300\n" "Last-Translator: Pedro Lucas Porcellis \n" "Language-Team: Brazilian Portuguese\n" @@ -36,20 +36,53 @@ msgstr "%02i:%02i:%02i Transferência Concluída" msgid "%02i:%02i:%02i Downloading…" msgstr "%02i:%02i:%02i Baixando…" -#: downloads.c:195 downloads.c:212 downloads.c:215 +#: downloads.c:199 downloads.c:216 downloads.c:219 msgid "Badwolf Downloads" msgstr "Transferências do Badwolf" -#: badwolf.c:874 +#: bookmarks.c:116 +msgid "Bookmarks: Done.\n" +msgstr "" + +#: bookmarks.c:59 +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "" + +#: bookmarks.c:81 +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "" + +#: bookmarks.c:85 +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "" + +#: bookmarks.c:99 +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "" + +#: bookmarks.c:107 +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "" + +#: bookmarks.c:89 +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "" + +#: badwolf.c:954 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit %d.%d.%d\n" -#: badwolf.c:403 +#: badwolf.c:439 msgid "Continue" msgstr "Continuar" -#: badwolf.c:353 +#: badwolf.c:389 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -67,34 +100,34 @@ msgstr "Erro" msgid "Download starting…" msgstr "Transferência Iniciada…" -#: badwolf.c:376 +#: badwolf.c:412 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" "Erro: Algum erro desconhecido ocorreu enquanto validava o certificado.\n" -#: badwolf.c:357 +#: badwolf.c:393 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Erro: A Autoridade de Certificados X509 é desconhecida.\n" -#: badwolf.c:370 +#: badwolf.c:406 msgid "Error: The certificate has been revoked.\n" msgstr "Erro: O certificado foi revogado.\n" -#: badwolf.c:367 +#: badwolf.c:403 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" "Erro: O certificado foi expirado. Verifique o relógio do seu sistema.\n" -#: badwolf.c:373 +#: badwolf.c:409 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Erro: O certificado é considerado inseguro.\n" -#: badwolf.c:364 +#: badwolf.c:400 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" "Erro: O certificado não é válido ainda. Verifique o relógio do seu sistema.\n" -#: badwolf.c:360 +#: badwolf.c:396 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Erro: A identidade não confere com a esperada.\n" @@ -107,11 +140,11 @@ msgstr "" "Navegador orientado pela privacidade e minimalismo\n" "Versão do WebKit: %d.%d.%d" -#: badwolf.c:803 +#: badwolf.c:889 msgid "New tab" msgstr "Nova aba" -#: badwolf.c:923 +#: badwolf.c:1006 msgid "Open new tab" msgstr "Abrir uma Nova aba" @@ -119,30 +152,30 @@ msgstr "Abrir uma Nova aba" msgid "Out of Memory" msgstr "Sem memória" -#: badwolf.c:872 +#: badwolf.c:952 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Rodando versão %s do Badwolf\n" -#: badwolf.c:879 +#: badwolf.c:959 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit: %d.%d.%d\n" -#: badwolf.c:400 +#: badwolf.c:436 #, c-format msgid "TLS Error for %s." msgstr "Erro TLS para %s." -#: badwolf.c:403 +#: badwolf.c:439 msgid "Temporarily Add Exception" msgstr "Adicionar exceção temporária" -#: badwolf.c:600 +#: badwolf.c:647 msgid "Toggle javascript" msgstr "Habilitar Javascript" -#: badwolf.c:605 +#: badwolf.c:652 msgid "Toggle loading images automatically" msgstr "Habilitar carregamento de imagens automático" @@ -150,15 +183,15 @@ msgstr "Habilitar carregamento de imagens automático" msgid "Unknown Crash" msgstr "Erro desconhecido" -#: badwolf.c:603 +#: badwolf.c:650 msgid "_IMG" msgstr "_IMG" -#: badwolf.c:598 +#: badwolf.c:645 msgid "_JS" msgstr "_JS" -#: badwolf.c:718 +#: badwolf.c:777 msgid "search in current page" msgstr "buscar na página atual" @@ -174,12 +207,12 @@ msgstr "o processo web excedeu o limite de memória.\n" msgid "the web process terminated for an unknown reason.\n" msgstr "o processo web terminou por uma razão desconhecida.\n" -#: badwolf.c:886 +#: badwolf.c:966 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "diretório de extensões configurado para: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:957 +#: badwolf.c:1042 msgid "ø" msgstr "" diff --git a/po/tr.po b/po/tr.po index 040c48c..5c387ee 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-07-11 11:35+0200\n" +"POT-Creation-Date: 2020-10-25 02:35+0100\n" "PO-Revision-Date: 2020-07-17 23:50+0300\n" "Last-Translator: Oğuz Ersen \n" "Language-Team: Turkish\n" @@ -41,16 +41,49 @@ msgstr "%02i:%02i:%02i İndiriliyor…" msgid "Badwolf Downloads" msgstr "Badwolf İndirmeleri" -#: badwolf.c:919 +#: bookmarks.c:116 +msgid "Bookmarks: Done.\n" +msgstr "" + +#: bookmarks.c:59 +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "" + +#: bookmarks.c:81 +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "" + +#: bookmarks.c:85 +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "" + +#: bookmarks.c:99 +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "" + +#: bookmarks.c:107 +#, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "" + +#: bookmarks.c:89 +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "" + +#: badwolf.c:954 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Oluşturma zamanı WebKit sürümü: %d.%d.%d\n" -#: badwolf.c:416 +#: badwolf.c:439 msgid "Continue" msgstr "Devam Et" -#: badwolf.c:366 +#: badwolf.c:389 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -68,31 +101,33 @@ msgstr "Çöktü" msgid "Download starting…" msgstr "İndirme başlatılıyor…" -#: badwolf.c:389 +#: badwolf.c:412 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "Hata: Sertifika doğrulanırken bilinmeyen bir hata oluştu.\n" -#: badwolf.c:370 +#: badwolf.c:393 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Hata: X509 Sertifika Yetkilisi bilinmiyor.\n" -#: badwolf.c:383 +#: badwolf.c:406 msgid "Error: The certificate has been revoked.\n" msgstr "Hata: Sertifika yürürlükten kaldırıldı.\n" -#: badwolf.c:380 +#: badwolf.c:403 msgid "Error: The certificate has expired. Check your system's clock.\n" -msgstr "Hata: Sertifikanın süresi doldu. Sisteminizin saatini gözden geçirin.\n" +msgstr "" +"Hata: Sertifikanın süresi doldu. Sisteminizin saatini gözden geçirin.\n" -#: badwolf.c:386 +#: badwolf.c:409 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Hata: Sertifikanın güvensiz olduğu kabul ediliyor.\n" -#: badwolf.c:377 +#: badwolf.c:400 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" -msgstr "Hata: Sertifika henüz geçerli değil. Sisteminizin saatini gözden geçirin.\n" +msgstr "" +"Hata: Sertifika henüz geçerli değil. Sisteminizin saatini gözden geçirin.\n" -#: badwolf.c:373 +#: badwolf.c:396 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Hata: Verilen kimlik beklenen ile eşleşmiyor.\n" @@ -105,11 +140,11 @@ msgstr "" "Sadelik ve gizlilik odaklı WebKitGTK+ tarayıcısı\n" "Çalışma zamanı WebKit sürümü: %d.%d.%d" -#: badwolf.c:854 +#: badwolf.c:889 msgid "New tab" msgstr "Yeni sekme" -#: badwolf.c:968 +#: badwolf.c:1006 msgid "Open new tab" msgstr "Yeni sekme aç" @@ -117,30 +152,30 @@ msgstr "Yeni sekme aç" msgid "Out of Memory" msgstr "Yetersiz Bellek" -#: badwolf.c:917 +#: badwolf.c:952 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Çalışan Badwolf sürümü: %s\n" -#: badwolf.c:924 +#: badwolf.c:959 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Çalışma zamanı WebKit sürümü: %d.%d.%d\n" -#: badwolf.c:413 +#: badwolf.c:436 #, c-format msgid "TLS Error for %s." msgstr "%s için TLS Hatası." -#: badwolf.c:416 +#: badwolf.c:439 msgid "Temporarily Add Exception" msgstr "Geçici Olarak İstisna Ekle" -#: badwolf.c:624 +#: badwolf.c:647 msgid "Toggle javascript" msgstr "Javascript'i aç/kapat" -#: badwolf.c:629 +#: badwolf.c:652 msgid "Toggle loading images automatically" msgstr "Resimleri otomatik yüklemeyi aç/kapat" @@ -148,15 +183,15 @@ msgstr "Resimleri otomatik yüklemeyi aç/kapat" msgid "Unknown Crash" msgstr "Bilinmeyen Çökme" -#: badwolf.c:627 +#: badwolf.c:650 msgid "_IMG" msgstr "_RSM" -#: badwolf.c:622 +#: badwolf.c:645 msgid "_JS" msgstr "_JS" -#: badwolf.c:742 +#: badwolf.c:777 msgid "search in current page" msgstr "geçerli sayfada ara" @@ -172,12 +207,12 @@ msgstr "web işlemi bellek sınırını aştı.\n" msgid "the web process terminated for an unknown reason.\n" msgstr "web işlemi bilinmeyen bir nedenle sona erdi.\n" -#: badwolf.c:931 +#: badwolf.c:966 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "webkit-web-extension dizini şuna ayarlandı: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1002 +#: badwolf.c:1042 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 639fcd202b64af2707208ef92872fce6bc0eafe3 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Oct 2020 03:03:56 +0100 Subject: Update badwolf's description in code as well --- keybindings.c | 2 +- po/fr.po | 11 +++++------ po/messages.pot | 6 +++--- po/pt_BR.po | 6 +++--- po/tr.po | 6 +++--- 5 files changed, 15 insertions(+), 16 deletions(-) (limited to 'po') diff --git a/keybindings.c b/keybindings.c index ef33aaa..13f2a48 100644 --- a/keybindings.c +++ b/keybindings.c @@ -29,7 +29,7 @@ badwolf_about_dialog(GtkWindow *main_window, gpointer user_data) char *comments = NULL; - comments = g_strdup_printf(_("Minimalist and privacy-oriented WebKitGTK+ browser\n" + comments = g_strdup_printf(_("Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d"), webkit_get_major_version(), webkit_get_minor_version(), diff --git a/po/fr.po b/po/fr.po index d938819..ec8fcc9 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,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: 2020-10-25 02:35+0100\n" +"POT-Creation-Date: 2020-10-25 02:59+0100\n" "PO-Revision-Date: 2019-12-22 00:57+0100\n" "Last-Translator: Haelwenn (lanodan) Monnier \n" "Language-Team: French\n" @@ -18,17 +18,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: downloads.c:117 -#, fuzzy, c-format +#, c-format msgid "%02i:%02i:%02i Download cancelled" msgstr "%02i:%02i:%02i Téléchargement annulé" #: downloads.c:119 -#, fuzzy, c-format +#, c-format msgid "%02i:%02i:%02i Download error" msgstr "%02i:%02i:%02i Erreur du téléchargement" #: downloads.c:141 -#, fuzzy, c-format +#, c-format msgid "%02i:%02i:%02i Download finished" msgstr "%02i:%02i:%02i Téléchargement finit" @@ -135,7 +135,7 @@ msgstr "Erreur : L'identité ne correspond pas à celle attendue.\n" #: keybindings.c:32 #, c-format msgid "" -"Minimalist and privacy-oriented WebKitGTK+ browser\n" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" "Navigateur WebKitGTK+ minimaliste et orienté vie privée\n" @@ -169,7 +169,6 @@ msgid "TLS Error for %s." msgstr "Erreur TLS pour %s." #: badwolf.c:439 -#, fuzzy msgid "Temporarily Add Exception" msgstr "Ajouter Temporairement une Exception" diff --git a/po/messages.pot b/po/messages.pot index dfddb74..aef9ca2 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.3+g0391361.develop\n" +"Project-Id-Version: Badwolf 1.0.3+g15232cd.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:35+0100\n" +"POT-Creation-Date: 2020-10-25 02:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -129,7 +129,7 @@ msgstr "" #: keybindings.c:32 #, c-format msgid "" -"Minimalist and privacy-oriented WebKitGTK+ browser\n" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 56f5ea0..5320ec9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.4.0+g607300e\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:35+0100\n" +"POT-Creation-Date: 2020-10-25 02:59+0100\n" "PO-Revision-Date: 2020-05-17 20:18-0300\n" "Last-Translator: Pedro Lucas Porcellis \n" "Language-Team: Brazilian Portuguese\n" @@ -132,9 +132,9 @@ msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Erro: A identidade não confere com a esperada.\n" #: keybindings.c:32 -#, c-format +#, fuzzy, c-format msgid "" -"Minimalist and privacy-oriented WebKitGTK+ browser\n" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" "Navegador orientado pela privacidade e minimalismo\n" diff --git a/po/tr.po b/po/tr.po index 5c387ee..b7dbda9 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:35+0100\n" +"POT-Creation-Date: 2020-10-25 02:59+0100\n" "PO-Revision-Date: 2020-07-17 23:50+0300\n" "Last-Translator: Oğuz Ersen \n" "Language-Team: Turkish\n" @@ -132,9 +132,9 @@ msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Hata: Verilen kimlik beklenen ile eşleşmiyor.\n" #: keybindings.c:32 -#, c-format +#, fuzzy, c-format msgid "" -"Minimalist and privacy-oriented WebKitGTK+ browser\n" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" "Sadelik ve gizlilik odaklı WebKitGTK+ tarayıcısı\n" -- cgit v1.3.1-23-gd82d From 1b10b3399825822fe288a38e17ae652161f202ae Mon Sep 17 00:00:00 2001 From: Oğuz Ersen Date: Thu, 5 Nov 2020 23:29:29 +0300 Subject: po/tr.po: Update translations --- po/tr.po | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'po') diff --git a/po/tr.po b/po/tr.po index b7dbda9..40a7861 100644 --- a/po/tr.po +++ b/po/tr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" "POT-Creation-Date: 2020-10-25 02:59+0100\n" -"PO-Revision-Date: 2020-07-17 23:50+0300\n" +"PO-Revision-Date: 2020-11-05 23:00+0300\n" "Last-Translator: Oğuz Ersen \n" "Language-Team: Turkish\n" "Language: tr\n" @@ -43,45 +43,45 @@ msgstr "Badwolf İndirmeleri" #: bookmarks.c:116 msgid "Bookmarks: Done.\n" -msgstr "" +msgstr "Yer imleri: Bitti.\n" #: bookmarks.c:59 #, c-format msgid "Bookmarks: Found %d bookmarks.\n" -msgstr "" +msgstr "Yer imleri: %d yer imi bulundu.\n" #: bookmarks.c:81 #, c-format msgid "Bookmarks: No loadable file found at %s\n" -msgstr "" +msgstr "Yer imleri: %s konumunda yüklenebilir dosya bulunamadı\n" #: bookmarks.c:85 #, c-format msgid "Bookmarks: loading at %s\n" -msgstr "" +msgstr "Yer imleri: %s konumunda yükleniyor\n" #: bookmarks.c:99 msgid "Bookmarks: unable to create new XPath context\n" -msgstr "" +msgstr "Yer imleri: yeni XPath içeriği oluşturulamadı\n" #: bookmarks.c:107 #, c-format msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" -msgstr "" +msgstr "Yer imleri: \"%s\" XPath ifadesi değerlendirilemedi\n" #: bookmarks.c:89 #, c-format msgid "Bookmarks: unable to parse file \"%s\"\n" -msgstr "" +msgstr "Yer imleri: \"%s\" dosyası ayrıştırılamadı\n" #: badwolf.c:954 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" -msgstr "Oluşturma zamanı WebKit sürümü: %d.%d.%d\n" +msgstr "Derleme zamanı WebKit sürümü: %d.%d.%d\n" #: badwolf.c:439 msgid "Continue" -msgstr "Devam Et" +msgstr "Devam et" #: badwolf.c:389 msgid "" @@ -137,7 +137,7 @@ msgid "" "Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" -"Sadelik ve gizlilik odaklı WebKitGTK+ tarayıcısı\n" +"WebKitGTK tabanlı sadelik ve gizlilik odaklı web tarayıcısı\n" "Çalışma zamanı WebKit sürümü: %d.%d.%d" #: badwolf.c:889 -- cgit v1.3.1-23-gd82d From 2ab35014d69f116253468d683b0cd45785373aa6 Mon Sep 17 00:00:00 2001 From: Ben K Date: Tue, 30 Mar 2021 14:29:14 +0200 Subject: Add german translation --- Makefile | 2 +- po/de.po | 234 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/messages.pot | 4 +- 3 files changed, 237 insertions(+), 3 deletions(-) create mode 100644 po/de.po (limited to 'po') diff --git a/Makefile b/Makefile index a7409ab..5496f25 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ OBJS = bookmarks.o uri.o keybindings.o downloads.o badwolf.o OBJS_test = uri_test.o EXE = badwolf EXE_test = uri_test -TRANS = fr.mo pt_BR.mo tr.mo +TRANS = fr.mo pt_BR.mo tr.mo de.mo DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\" diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000..0afd563 --- /dev/null +++ b/po/de.po @@ -0,0 +1,234 @@ +# German translations for Badwolf package. +# Copyright (C) 2021 Badwolf Authors +# This file is distributed under the same license as the Badwolf package. +# Ben K. , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: Badwolf 1.0.3+g1b10b33.develop\n" +"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" +"POT-Creation-Date: 2021-03-23 18:10+0100\n" +"PO-Revision-Date: 2021-03-25 15:40+0100\n" +"Last-Translator: Ben K. \n" +"Language-Team: German\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.2.1\n" + +#: downloads.c:117 +#, c-format +msgid "%02i:%02i:%02i Download cancelled" +msgstr "%02i:%02i:%02i Herunterladen abgebrochen" + +#: downloads.c:119 +#, c-format +msgid "%02i:%02i:%02i Download error" +msgstr "%02i:%02i:%02i Herunterladen fehlgeschlagen" + +#: downloads.c:141 +#, c-format +msgid "%02i:%02i:%02i Download finished" +msgstr "%02i:%02i:%02i Fertig Heruntergeladen" + +#: downloads.c:167 +#, c-format +msgid "%02i:%02i:%02i Downloading…" +msgstr "%02i:%02i:%02i Lade herunter…" + +#: downloads.c:199 downloads.c:216 downloads.c:219 +msgid "Badwolf Downloads" +msgstr "Heruntergeladene Dateien" + +#: bookmarks.c:116 +msgid "Bookmarks: Done.\n" +msgstr "Lesezeichen: Erledigt. \n" + +#: bookmarks.c:59 +#, c-format +msgid "Bookmarks: Found %d bookmarks.\n" +msgstr "Lesezeichen: %d Lesezeichen gefunden. \n" + +#: bookmarks.c:81 +#, c-format +msgid "Bookmarks: No loadable file found at %s\n" +msgstr "Lesezeichen: Keine ladbare Datei unter %s gefunden\n" + +#: bookmarks.c:85 +#, c-format +msgid "Bookmarks: loading at %s\n" +msgstr "Lesezeichen: %s geladen\n" + +#: bookmarks.c:99 +#, fuzzy +msgid "Bookmarks: unable to create new XPath context\n" +msgstr "Lesezeichen: Kein neuer XPath-Kontext konnte erstellen werden\n" + +#: bookmarks.c:107 +#, fuzzy, c-format +msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" +msgstr "" +"Leisezeichen: Der XPath-Ausdruck \"%s\" konnte nicht ausgewertet " +"werden\n" + +#: bookmarks.c:89 +#, c-format +msgid "Bookmarks: unable to parse file \"%s\"\n" +msgstr "Lesezeichen: Die Datei \"%s\" konnte nicht geparst werden\n" + +#: badwolf.c:954 +#, fuzzy, c-format +msgid "Buildtime WebKit version: %d.%d.%d\n" +msgstr "Buildtime WebKit version: %d.%d.%d\n" + +#: badwolf.c:439 +msgid "Continue" +msgstr "Weiter" + +#: badwolf.c:389 +msgid "" +"Couldn't verify the TLS certificate to ensure a better security of the " +"connection. You might want to verify your machine and network.\n" +"\n" +msgstr "" +"Das TLS-Zertifikat konnte nicht verifiziert werden, um eine bessere " +"Sicherheit der Verbindung sicherzustellen. Sie möchten vielleicht ihr " +"Gerät und ihr Netzwerk überprüfen. \n" + +#: badwolf.c:99 +msgid "Crashed" +msgstr "Abgestürtzt" + +#: downloads.c:39 +msgid "Download starting…" +msgstr "Download startet…" + +#: badwolf.c:412 +msgid "Error: Some unknown error occurred validating the certificate.\n" +msgstr "" +"Fehler: Es ist ein unbekannter Fehler beim überprüfen des Zertifikats " +"aufgetreten.\n" + +#: badwolf.c:393 +#, fuzzy +msgid "Error: The X509 Certificate Authority is unknown.\n" +msgstr "Fehler: Die X509 Zertifikatsautorität ist unbekannt.\n" + +#: badwolf.c:406 +#, fuzzy +msgid "Error: The certificate has been revoked.\n" +msgstr "Fehler: Das Zertifikat wurde widerrufen.\n" + +#: badwolf.c:403 +msgid "Error: The certificate has expired. Check your system's clock.\n" +msgstr "" +"Fehler: Das Zertifikat ist abgelaufen. Bitte überprüfen Sie, ob die " +"Uhr ihres Systems richtig eingestellt ist.\n" + +#: badwolf.c:409 +msgid "Error: The certificate is considered to be insecure.\n" +msgstr "Fehler: Das Zertifikat wird als unsicher angesehen.\n" + +#: badwolf.c:400 +msgid "" +"Error: The certificate isn't valid yet. Check your system's clock.\n" +msgstr "" +"Fehler: Das Zertifikat ist noch nicht gültig. Bitte überprüfen Sie, ob " +"die Uhr ihres Systems richtig eingestellt ist.\n" + +#: badwolf.c:396 +msgid "Error: The given identity doesn't match the expected one.\n" +msgstr "" +"Fehler: Die gegebene Identität passt nicht mit der Erwarteten " +"zusammen.\n" + +#: keybindings.c:32 +#, c-format +msgid "" +"Minimalist and privacy-oriented web browser based on WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" +msgstr "" +"Minimalistischer und Privatsphäre-orientierter Internetbrowser " +"basierend of WebKitGTK\n" +"Runtime WebKit version: %d.%d.%d" + +#: badwolf.c:889 +msgid "New tab" +msgstr "Neuer Reiter" + +#: badwolf.c:1006 +msgid "Open new tab" +msgstr "Neuen Reiter öffnen" + +#: badwolf.c:103 +msgid "Out of Memory" +msgstr "" +"Ihnen scheint der Arbeitsspeicher ausgegangen zu sein! (Out of Memory)" + +#: badwolf.c:952 +#, c-format +msgid "Running Badwolf version: %s\n" +msgstr "Ausführende Badwolf-Version: %s\n" + +#: badwolf.c:959 +#, c-format +msgid "Runtime WebKit version: %d.%d.%d\n" +msgstr "Ausführende WebKit-Version: %d.%d.%d\n" + +#: badwolf.c:436 +#, c-format +msgid "TLS Error for %s." +msgstr "TLS-Fehler für %s." + +#: badwolf.c:439 +#, fuzzy +msgid "Temporarily Add Exception" +msgstr "Eine Ausnahme machen" + +#: badwolf.c:647 +msgid "Toggle javascript" +msgstr "JavaScript ein-/ausschalten" + +#: badwolf.c:652 +msgid "Toggle loading images automatically" +msgstr "Das automatische Laden von Bildern ein-/ausschalten" + +#: badwolf.c:107 +msgid "Unknown Crash" +msgstr "Unbekannter Absturz" + +#: badwolf.c:650 +msgid "_IMG" +msgstr "_IMG" + +#: badwolf.c:645 +msgid "_JS" +msgstr "_JS" + +#: badwolf.c:777 +msgid "search in current page" +msgstr "Die aktuelle Seite durchsuchen" + +#: badwolf.c:98 +msgid "the web process crashed.\n" +msgstr "Der Webprozess ist abgestürzt.\n" + +#: badwolf.c:102 +msgid "the web process exceeded the memory limit.\n" +msgstr "Der Webprozess hat das Arbeitsspeicherlimit überschritten.\n" + +#: badwolf.c:106 +msgid "the web process terminated for an unknown reason.\n" +msgstr "Der Webprozess wurde aus unbekannten Gründen beendet.\n" + +#: badwolf.c:966 +#, fuzzy, c-format +msgid "webkit-web-extension directory set to: %s\n" +msgstr "Das WebKit-Web-Erweiterungs-Verzeichnis wurde gesetzt auf: %s\n" + +#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. +#: badwolf.c:1042 +msgid "ø" +msgstr "ø" diff --git a/po/messages.pot b/po/messages.pot index aef9ca2..c5a821c 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.3+g15232cd.develop\n" +"Project-Id-Version: Badwolf 1.0.3+g1b10b339.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:59+0100\n" +"POT-Creation-Date: 2021-03-30 14:25+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- cgit v1.3.1-23-gd82d From 014062a71c624fdfed80606bc3668af1b1f1c4e9 Mon Sep 17 00:00:00 2001 From: Pedro Lucas Porcellis Date: Mon, 30 Nov 2020 15:19:40 -0300 Subject: Update pt_BR translation --- po/pt_BR.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'po') diff --git a/po/pt_BR.po b/po/pt_BR.po index 5320ec9..a3df8f5 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -42,36 +42,36 @@ msgstr "Transferências do Badwolf" #: bookmarks.c:116 msgid "Bookmarks: Done.\n" -msgstr "" +msgstr "Favoritos: Feito.\n" #: bookmarks.c:59 #, c-format msgid "Bookmarks: Found %d bookmarks.\n" -msgstr "" +msgstr "Favoritos: Encontrado %d favoritos.\n" #: bookmarks.c:81 #, c-format msgid "Bookmarks: No loadable file found at %s\n" -msgstr "" +msgstr "Favoritos: Nenhum arquivo carregável encontrado em %s\n" #: bookmarks.c:85 #, c-format msgid "Bookmarks: loading at %s\n" -msgstr "" +msgstr "Favoritos: carregando em %s\n" #: bookmarks.c:99 msgid "Bookmarks: unable to create new XPath context\n" -msgstr "" +msgstr "Favoritos: não foi possível criar um novo contexto do XPath\n" #: bookmarks.c:107 #, c-format msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" -msgstr "" +msgstr "Favoritos: não foi possivel compreender a expressão do XPath \"%s\"\n" #: bookmarks.c:89 #, c-format msgid "Bookmarks: unable to parse file \"%s\"\n" -msgstr "" +msgstr "Favoritos: não foi possível ler o arquivo \"%s\"\n" #: badwolf.c:954 #, c-format -- cgit v1.3.1-23-gd82d From 784fd85a291d98e5dca5d8fbcc7c7a0688707f03 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 30 Mar 2021 14:53:27 +0200 Subject: Update french translation --- po/fr.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'po') diff --git a/po/fr.po b/po/fr.po index ec8fcc9..ba42e68 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,5 +1,5 @@ # BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser -# Copyright (C) 2019-2020 Badwolf Authors +# Copyright (C) 2019-2021 Badwolf Authors # This file is distributed under the same license as the Badwolf package. # Haelwenn (lanodan) Monnier , 2019 # @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.3.0+gd88f2e7\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:59+0100\n" -"PO-Revision-Date: 2019-12-22 00:57+0100\n" +"POT-Creation-Date: 2021-03-30 14:25+0200\n" +"PO-Revision-Date: 2021-03-30 14:52+0200\n" "Last-Translator: Haelwenn (lanodan) Monnier \n" "Language-Team: French\n" "Language: fr\n" @@ -174,11 +174,11 @@ msgstr "Ajouter Temporairement une Exception" #: badwolf.c:647 msgid "Toggle javascript" -msgstr "Activer/Désactiver javascript" +msgstr "(Dés)activer javascript" #: badwolf.c:652 msgid "Toggle loading images automatically" -msgstr "" +msgstr "(Dés)activer le chargement automatique des images" #: badwolf.c:107 msgid "Unknown Crash" -- cgit v1.3.1-23-gd82d From 5547d3a708e75a62553b19c81e1afc66ef668a5c Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 15 Mar 2019 10:26:31 +0100 Subject: Handle WebKit content-filter --- badwolf.1 | 19 +++++++++---- badwolf.c | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- badwolf.h | 2 ++ po/messages.pot | 87 +++++++++++++++++++++++++++++++++++++-------------------- 4 files changed, 156 insertions(+), 39 deletions(-) (limited to 'po') diff --git a/badwolf.1 b/badwolf.1 index 68a39ed..ae2dfa1 100644 --- a/badwolf.1 +++ b/badwolf.1 @@ -1,6 +1,6 @@ -./" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser -./" Copyright © 2019-2020 Badwolf Authors -./" SPDX-License-Identifier: BSD-3-Clause +.\" BadWolf: Minimalist and privacy-oriented WebKitGTK+ browser +.\" Copyright © 2019-2021 Badwolf Authors +.\" SPDX-License-Identifier: BSD-3-Clause .Dd 2019-10-31 .Dt BADWOLF 1 .Sh NAME @@ -75,6 +75,16 @@ A more generic variable name is also intended to be used in the future. .El .Sh FILES .Bl -tag -width Ds -compact +.It Pa ${XDG_CONFIG_HOME:-$HOME/.config}/badwolf/content-filters.json +WebKit-specific content-filter file, this allows to block unwanted content (ads, nagware, ...). +For some introductory information about the format see: +.Lk https://webkit.org/blog/3476/content-blockers-first-look/ +.Pp +For a converter using AblockPlus-style filters, try: +.Lk https://gitlab.com/eyeo/adblockplus/abp2blocklist +.Pp +For a ready-to-use file (that you should update periodically), try: +.Lk https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json .It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/bookmarks.xbel XBEL (XML Bookmark Exchange Language) file, known to be currently supported by: .Xr elinks 1 , @@ -90,10 +100,7 @@ to be loaded into .Nm . Note: They aren't the JavaScript-based Web-Extensions supported by Firefox or Chrome, but native code in shared objects using the WebKitGTK API. .Pp Examples of useful extensions may be found at: -.Bl -item -compact .Lk https://hacktivis.me/git/badwolf-extensions -.Lk https://github.com/jun7/wyebadblock -.El .It Pa ${DATADIR:-/usr/local/share}/badwolf/interface.css .It Pa ${XDG_DATA_HOME:-$HOME/.local/share}/badwolf/interface.css CSS files (respectively system and user-level) for styling badwolf interface. diff --git a/badwolf.c b/badwolf.c index 23c444c..ec2a691 100644 --- a/badwolf.c +++ b/badwolf.c @@ -70,6 +70,7 @@ static void new_tabCb_clicked(GtkButton *new_tab, gpointer user_data); static void closeCb_clicked(GtkButton *close, gpointer user_data); static void notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data); +void content_managerCb_ready(GObject *store, GAsyncResult *result, gpointer user_data); static gboolean WebViewCb_close(WebKitWebView *webView, gpointer user_data) @@ -710,6 +711,8 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b old_browser == NULL ? NULL : old_browser->webView, "settings", settings, + "user-content-manager", + window->content_manager, NULL)); gtk_widget_set_name(GTK_WIDGET(browser->webView), "browser__webView"); if(old_browser == NULL) @@ -950,10 +953,73 @@ notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gtk_window_set_title(GTK_WINDOW(window->main_window), gtk_widget_get_tooltip_text(label)); } +void +content_managerCb_ready(GObject *store, GAsyncResult *result, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GError *err = NULL; + + WebKitUserContentFilter *filter = + webkit_user_content_filter_store_load_finish(window->content_store, result, &err); + + if(filter == NULL) + { + if(err == NULL) + { + fprintf(stderr, _("badwolf: failed to load content-filter, err: [%d] %s\n"), -1, "unknown"); + } + else + { + fprintf(stderr, + _("badwolf: failed to load content-filter, err: [%d] %s\n"), + err->code, + err->message); + } + } + else + { + fprintf(stderr, _("badwolf: content-filter loaded, adding to content-manager…\n")); + webkit_user_content_manager_add_filter(window->content_manager, filter); + } +} + +static void +storeCb_finish(WebKitUserContentFilterStore *store, GAsyncResult *result, gpointer user_data) +{ + struct Window *window = (struct Window *)user_data; + GError *err = NULL; + + WebKitUserContentFilter *filter = + webkit_user_content_filter_store_save_finish(window->content_store, result, &err); + + if(filter == NULL) + { + if(err == NULL) + { + fprintf(stderr, + _("badwolf: failed to compile content-filters.json, err: [%d] %s\n"), + -1, + "unknown"); + } + else + { + fprintf(stderr, + _("badwolf: failed to compile content-filters.json, err: [%d] %s\n"), + err->code, + err->message); + } + } + else + { + webkit_user_content_filter_store_load( + window->content_store, "a", NULL, content_managerCb_ready, window); + } +} + int main(int argc, char *argv[]) { - struct Window *window = &(struct Window){NULL, NULL, NULL, NULL}; + struct Window *window = &(struct Window){NULL, NULL, NULL, NULL, NULL, NULL}; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, DATADIR "/locale"); bind_textdomain_codeset(PACKAGE, "UTF-8"); @@ -983,7 +1049,24 @@ main(int argc, char *argv[]) window->main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); window->notebook = gtk_notebook_new(); window->new_tab = gtk_button_new_from_icon_name("tab-new-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR); - window->downloads_tab = badwolf_downloads_tab_new(); + window->downloads_tab = badwolf_downloads_tab_new(); + window->content_manager = webkit_user_content_manager_new(); + + gchar *contentFilterPath = + g_build_filename(g_get_user_config_dir(), g_get_prgname(), "content-filters.json", NULL); + GFile *contentFilterFile = g_file_new_for_path(contentFilterPath); + fprintf(stderr, _("content-filters file set to: %s\n"), contentFilterPath); + + gchar *filtersPath = g_build_filename(g_get_user_cache_dir(), g_get_prgname(), "filters", NULL); + fprintf(stderr, _("content-filters directory set to: %s\n"), filtersPath); + window->content_store = webkit_user_content_filter_store_new(filtersPath); + + webkit_user_content_filter_store_save_from_file(window->content_store, + "a", + contentFilterFile, + NULL, + (GAsyncReadyCallback)storeCb_finish, + window); gtk_window_set_default_size( GTK_WINDOW(window->main_window), BADWOLF_DEFAULT_WIDTH, BADWOLF_DEFAULT_HEIGHT); diff --git a/badwolf.h b/badwolf.h index e5b33f0..7919be8 100644 --- a/badwolf.h +++ b/badwolf.h @@ -14,6 +14,8 @@ struct Window GtkWidget *notebook; GtkWidget *new_tab; GtkWidget *downloads_tab; + WebKitUserContentManager *content_manager; + WebKitUserContentFilterStore *content_store; }; struct Client diff --git a/po/messages.pot b/po/messages.pot index c5a821c..093ddf2 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.3+g1b10b339.develop\n" +"Project-Id-Version: Badwolf 1.0.3+gdf1e25f.content-blockers\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2021-03-30 14:25+0200\n" +"POT-Creation-Date: 2021-04-09 06:17+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,23 +74,23 @@ msgstr "" msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "" -#: badwolf.c:954 +#: badwolf.c:1030 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:439 +#: badwolf.c:440 msgid "Continue" msgstr "" -#: badwolf.c:389 +#: badwolf.c:390 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" "\n" msgstr "" -#: badwolf.c:99 +#: badwolf.c:100 msgid "Crashed" msgstr "" @@ -98,31 +98,31 @@ msgstr "" msgid "Download starting…" msgstr "" -#: badwolf.c:412 +#: badwolf.c:413 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -#: badwolf.c:393 +#: badwolf.c:394 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "" -#: badwolf.c:406 +#: badwolf.c:407 msgid "Error: The certificate has been revoked.\n" msgstr "" -#: badwolf.c:403 +#: badwolf.c:404 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -#: badwolf.c:409 +#: badwolf.c:410 msgid "Error: The certificate is considered to be insecure.\n" msgstr "" -#: badwolf.c:400 +#: badwolf.c:401 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -#: badwolf.c:396 +#: badwolf.c:397 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" @@ -133,79 +133,104 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:889 +#: badwolf.c:904 msgid "New tab" msgstr "" -#: badwolf.c:1006 +#: badwolf.c:1099 msgid "Open new tab" msgstr "" -#: badwolf.c:103 +#: badwolf.c:104 msgid "Out of Memory" msgstr "" -#: badwolf.c:952 +#: badwolf.c:1028 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:959 +#: badwolf.c:1035 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" -#: badwolf.c:436 +#: badwolf.c:437 #, c-format msgid "TLS Error for %s." msgstr "" -#: badwolf.c:439 +#: badwolf.c:440 msgid "Temporarily Add Exception" msgstr "" -#: badwolf.c:647 +#: badwolf.c:650 msgid "Toggle javascript" msgstr "" -#: badwolf.c:652 +#: badwolf.c:655 msgid "Toggle loading images automatically" msgstr "" -#: badwolf.c:107 +#: badwolf.c:108 msgid "Unknown Crash" msgstr "" -#: badwolf.c:650 +#: badwolf.c:653 msgid "_IMG" msgstr "" -#: badwolf.c:645 +#: badwolf.c:648 msgid "_JS" msgstr "" -#: badwolf.c:777 +#: badwolf.c:981 +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "" + +#: badwolf.c:999 badwolf.c:1004 +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "" + +#: badwolf.c:969 badwolf.c:974 +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "" + +#: badwolf.c:1059 +#, c-format +msgid "content-filters directory set to: %s\n" +msgstr "" + +#: badwolf.c:1056 +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "" + +#: badwolf.c:792 msgid "search in current page" msgstr "" -#: badwolf.c:98 +#: badwolf.c:99 msgid "the web process crashed.\n" msgstr "" -#: badwolf.c:102 +#: badwolf.c:103 msgid "the web process exceeded the memory limit.\n" msgstr "" -#: badwolf.c:106 +#: badwolf.c:107 msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:966 +#: badwolf.c:1042 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1042 +#: badwolf.c:1135 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 9be9423c9b7ba45fad205daaf818c8c653721538 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 9 Apr 2021 07:15:28 +0200 Subject: Fix unused parameter warnings --- badwolf.c | 2 ++ po/messages.pot | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index ec2a691..bad849d 100644 --- a/badwolf.c +++ b/badwolf.c @@ -956,6 +956,7 @@ notebookCb_switch__page(GtkNotebook *notebook, GtkWidget *page, guint page_num, void content_managerCb_ready(GObject *store, GAsyncResult *result, gpointer user_data) { + (void)store; struct Window *window = (struct Window *)user_data; GError *err = NULL; @@ -986,6 +987,7 @@ content_managerCb_ready(GObject *store, GAsyncResult *result, gpointer user_data static void storeCb_finish(WebKitUserContentFilterStore *store, GAsyncResult *result, gpointer user_data) { + (void)store; struct Window *window = (struct Window *)user_data; GError *err = NULL; diff --git a/po/messages.pot b/po/messages.pot index 093ddf2..c608db5 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.3+gdf1e25f.content-blockers\n" +"Project-Id-Version: Badwolf 1.0.3+g972a533.content-blockers\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2021-04-09 06:17+0200\n" +"POT-Creation-Date: 2021-04-09 07:15+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,7 +74,7 @@ msgstr "" msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "" -#: badwolf.c:1030 +#: badwolf.c:1034 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" @@ -137,7 +137,7 @@ msgstr "" msgid "New tab" msgstr "" -#: badwolf.c:1099 +#: badwolf.c:1103 msgid "Open new tab" msgstr "" @@ -145,12 +145,12 @@ msgstr "" msgid "Out of Memory" msgstr "" -#: badwolf.c:1028 +#: badwolf.c:1032 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:1035 +#: badwolf.c:1039 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" @@ -184,27 +184,27 @@ msgstr "" msgid "_JS" msgstr "" -#: badwolf.c:981 +#: badwolf.c:982 #, c-format msgid "badwolf: content-filter loaded, adding to content-manager…\n" msgstr "" -#: badwolf.c:999 badwolf.c:1004 +#: badwolf.c:1002 badwolf.c:1009 #, c-format msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" msgstr "" -#: badwolf.c:969 badwolf.c:974 +#: badwolf.c:970 badwolf.c:975 #, c-format msgid "badwolf: failed to load content-filter, err: [%d] %s\n" msgstr "" -#: badwolf.c:1059 +#: badwolf.c:1063 #, c-format msgid "content-filters directory set to: %s\n" msgstr "" -#: badwolf.c:1056 +#: badwolf.c:1060 #, c-format msgid "content-filters file set to: %s\n" msgstr "" @@ -225,12 +225,12 @@ msgstr "" msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:1042 +#: badwolf.c:1046 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1135 +#: badwolf.c:1139 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 231a7c45fac1d1811650ba9ae714de6975fc1da8 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 9 Apr 2021 08:47:01 +0200 Subject: po/messages.pot: Bump --- po/messages.pot | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'po') diff --git a/po/messages.pot b/po/messages.pot index c608db5..e4fbe56 100644 --- a/po/messages.pot +++ b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 1.0.3+g972a533.content-blockers\n" +"Project-Id-Version: Badwolf 1.0.3+gedbbb27.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2021-04-09 07:15+0200\n" +"POT-Creation-Date: 2021-04-09 08:48+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -137,7 +137,7 @@ msgstr "" msgid "New tab" msgstr "" -#: badwolf.c:1103 +#: badwolf.c:1102 msgid "Open new tab" msgstr "" @@ -199,11 +199,6 @@ msgstr "" msgid "badwolf: failed to load content-filter, err: [%d] %s\n" msgstr "" -#: badwolf.c:1063 -#, c-format -msgid "content-filters directory set to: %s\n" -msgstr "" - #: badwolf.c:1060 #, c-format msgid "content-filters file set to: %s\n" @@ -231,6 +226,6 @@ msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1139 +#: badwolf.c:1138 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From 05361157c8daff3c75ec2a78c4f074149c4e8581 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 10 Apr 2021 18:48:06 +0200 Subject: fr: Update translation --- badwolf.c | 1 - po/fr.po | 82 +++++++++++++++++++++++++++++++++++++++------------------------ 2 files changed, 51 insertions(+), 32 deletions(-) (limited to 'po') diff --git a/badwolf.c b/badwolf.c index 93523e1..aea2bbc 100644 --- a/badwolf.c +++ b/badwolf.c @@ -688,7 +688,6 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b "download-started", G_CALLBACK(web_contextCb_download_started), browser); - } else { diff --git a/po/fr.po b/po/fr.po index ba42e68..58d386a 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.3.0+gd88f2e7\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2021-03-30 14:25+0200\n" -"PO-Revision-Date: 2021-03-30 14:52+0200\n" +"POT-Creation-Date: 2021-04-10 18:43+0200\n" +"PO-Revision-Date: 2021-04-10 18:43+0200\n" "Last-Translator: Haelwenn (lanodan) Monnier \n" "Language-Team: French\n" "Language: fr\n" @@ -74,16 +74,16 @@ msgstr "Marques-Pages: Échec à l'évaluation de l'expression XPath « %s »\ msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "Marques-Pages: Ëchec au parsage du fichier « %s »\n" -#: badwolf.c:954 +#: badwolf.c:1036 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit à la compilation: %d.%d.%d\n" -#: badwolf.c:439 +#: badwolf.c:441 msgid "Continue" msgstr "Continuer" -#: badwolf.c:389 +#: badwolf.c:391 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -94,7 +94,7 @@ msgstr "" "et son réseau.\n" "\n" -#: badwolf.c:99 +#: badwolf.c:101 msgid "Crashed" msgstr "Crash" @@ -102,33 +102,33 @@ msgstr "Crash" msgid "Download starting…" msgstr "Démarrage du téléchargement" -#: badwolf.c:412 +#: badwolf.c:414 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" "Erreur : Une erreur inconnue est apparue pendant la validation du " "certificat.\n" -#: badwolf.c:393 +#: badwolf.c:395 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Erreur : L'autorité de certification (CA X509) est inconnue.\n" -#: badwolf.c:406 +#: badwolf.c:408 msgid "Error: The certificate has been revoked.\n" msgstr "Erreur : Le certificat à été révoqué.\n" -#: badwolf.c:403 +#: badwolf.c:405 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "Erreur : Le certificat a expiré.\n" -#: badwolf.c:409 +#: badwolf.c:411 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Erreur : Le certificat est considéré comme non-sécurisé.\n" -#: badwolf.c:400 +#: badwolf.c:402 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "Erreur : Le certificat n'est pas encore valide.\n" -#: badwolf.c:396 +#: badwolf.c:398 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Erreur : L'identité ne correspond pas à celle attendue.\n" @@ -141,79 +141,99 @@ msgstr "" "Navigateur WebKitGTK+ minimaliste et orienté vie privée\n" "Version WebKit au lancement: %d.%d.%d" -#: badwolf.c:889 +#: badwolf.c:906 msgid "New tab" msgstr "Nouvel onglet" -#: badwolf.c:1006 +#: badwolf.c:1104 msgid "Open new tab" msgstr "Ouvrir un nouvel onglet" -#: badwolf.c:103 +#: badwolf.c:105 msgid "Out of Memory" msgstr "Dépassement Mémoire" -#: badwolf.c:952 +#: badwolf.c:1034 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Version de Badwolf: %s\n" -#: badwolf.c:959 +#: badwolf.c:1041 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Version WebKit au lancement: %d.%d.%d\n" -#: badwolf.c:436 +#: badwolf.c:438 #, c-format msgid "TLS Error for %s." msgstr "Erreur TLS pour %s." -#: badwolf.c:439 +#: badwolf.c:441 msgid "Temporarily Add Exception" msgstr "Ajouter Temporairement une Exception" -#: badwolf.c:647 +#: badwolf.c:653 msgid "Toggle javascript" msgstr "(Dés)activer javascript" -#: badwolf.c:652 +#: badwolf.c:658 msgid "Toggle loading images automatically" msgstr "(Dés)activer le chargement automatique des images" -#: badwolf.c:107 +#: badwolf.c:109 msgid "Unknown Crash" msgstr "Crash inconnu" -#: badwolf.c:650 +#: badwolf.c:656 msgid "_IMG" msgstr "_IMG" -#: badwolf.c:645 +#: badwolf.c:651 msgid "_JS" msgstr "_JS" -#: badwolf.c:777 +#: badwolf.c:984 +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: content-filter chargé, ajout à content-manager…\n" + +#: badwolf.c:1004 badwolf.c:1011 +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: échec de compilation de content-filters.json, err: [%d] %s\n" + +#: badwolf.c:972 badwolf.c:977 +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: échec de chargement de content-filter, err: [%d] %s\n" + +#: badwolf.c:1062 +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "Fichier content-filters configuré à: %s\n" + +#: badwolf.c:800 msgid "search in current page" msgstr "recherche dans la page courante" -#: badwolf.c:98 +#: badwolf.c:100 msgid "the web process crashed.\n" msgstr "le processus web a cessé de fonctionner.\n" -#: badwolf.c:102 +#: badwolf.c:104 msgid "the web process exceeded the memory limit.\n" msgstr "le processus web a dépassé la limitation de mémoire.\n" -#: badwolf.c:106 +#: badwolf.c:108 msgid "the web process terminated for an unknown reason.\n" msgstr "le processus web s’est interrompu pour une raison inconnue.\n" -#: badwolf.c:966 +#: badwolf.c:1048 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "Répertoire webkit-web-extension configuré à %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1042 +#: badwolf.c:1140 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From e80608ea7d4382fa47ecc33f7a39776ab75ff868 Mon Sep 17 00:00:00 2001 From: Oğuz Ersen Date: Sat, 10 Apr 2021 20:45:07 +0300 Subject: tr: Update translation Closes: https://gitlab.com/lanodan/badWolf/-/merge_requests/9 --- po/tr.po | 86 +++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 33 deletions(-) (limited to 'po') diff --git a/po/tr.po b/po/tr.po index 40a7861..2ce7fde 100644 --- a/po/tr.po +++ b/po/tr.po @@ -1,14 +1,14 @@ # Turkish translations for Badwolf package. # Copyright (C) 2020 Badwolf Authors # This file is distributed under the same license as the Badwolf package. -# Oğuz Ersen , 2020. +# Oğuz Ersen , 2020, 2021. # msgid "" msgstr "" "Project-Id-Version: Badwolf 1.0.2+g17b9802.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:59+0100\n" -"PO-Revision-Date: 2020-11-05 23:00+0300\n" +"POT-Creation-Date: 2021-04-10 20:38+0300\n" +"PO-Revision-Date: 2021-04-10 20:38+0300\n" "Last-Translator: Oğuz Ersen \n" "Language-Team: Turkish\n" "Language: tr\n" @@ -74,16 +74,16 @@ msgstr "Yer imleri: \"%s\" XPath ifadesi değerlendirilemedi\n" msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "Yer imleri: \"%s\" dosyası ayrıştırılamadı\n" -#: badwolf.c:954 +#: badwolf.c:1036 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Derleme zamanı WebKit sürümü: %d.%d.%d\n" -#: badwolf.c:439 +#: badwolf.c:441 msgid "Continue" msgstr "Devam et" -#: badwolf.c:389 +#: badwolf.c:391 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" @@ -93,7 +93,7 @@ msgstr "" "doğrulanamadı. Makinenizi ve ağınızı doğrulamak isteyebilirsiniz.\n" "\n" -#: badwolf.c:99 +#: badwolf.c:101 msgid "Crashed" msgstr "Çöktü" @@ -101,38 +101,38 @@ msgstr "Çöktü" msgid "Download starting…" msgstr "İndirme başlatılıyor…" -#: badwolf.c:412 +#: badwolf.c:414 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "Hata: Sertifika doğrulanırken bilinmeyen bir hata oluştu.\n" -#: badwolf.c:393 +#: badwolf.c:395 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Hata: X509 Sertifika Yetkilisi bilinmiyor.\n" -#: badwolf.c:406 +#: badwolf.c:408 msgid "Error: The certificate has been revoked.\n" msgstr "Hata: Sertifika yürürlükten kaldırıldı.\n" -#: badwolf.c:403 +#: badwolf.c:405 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" "Hata: Sertifikanın süresi doldu. Sisteminizin saatini gözden geçirin.\n" -#: badwolf.c:409 +#: badwolf.c:411 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Hata: Sertifikanın güvensiz olduğu kabul ediliyor.\n" -#: badwolf.c:400 +#: badwolf.c:402 msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" "Hata: Sertifika henüz geçerli değil. Sisteminizin saatini gözden geçirin.\n" -#: badwolf.c:396 +#: badwolf.c:398 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Hata: Verilen kimlik beklenen ile eşleşmiyor.\n" #: keybindings.c:32 -#, fuzzy, c-format +#, c-format msgid "" "Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" @@ -140,79 +140,99 @@ msgstr "" "WebKitGTK tabanlı sadelik ve gizlilik odaklı web tarayıcısı\n" "Çalışma zamanı WebKit sürümü: %d.%d.%d" -#: badwolf.c:889 +#: badwolf.c:906 msgid "New tab" msgstr "Yeni sekme" -#: badwolf.c:1006 +#: badwolf.c:1104 msgid "Open new tab" msgstr "Yeni sekme aç" -#: badwolf.c:103 +#: badwolf.c:105 msgid "Out of Memory" msgstr "Yetersiz Bellek" -#: badwolf.c:952 +#: badwolf.c:1034 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Çalışan Badwolf sürümü: %s\n" -#: badwolf.c:959 +#: badwolf.c:1041 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Çalışma zamanı WebKit sürümü: %d.%d.%d\n" -#: badwolf.c:436 +#: badwolf.c:438 #, c-format msgid "TLS Error for %s." msgstr "%s için TLS Hatası." -#: badwolf.c:439 +#: badwolf.c:441 msgid "Temporarily Add Exception" msgstr "Geçici Olarak İstisna Ekle" -#: badwolf.c:647 +#: badwolf.c:653 msgid "Toggle javascript" msgstr "Javascript'i aç/kapat" -#: badwolf.c:652 +#: badwolf.c:658 msgid "Toggle loading images automatically" msgstr "Resimleri otomatik yüklemeyi aç/kapat" -#: badwolf.c:107 +#: badwolf.c:109 msgid "Unknown Crash" msgstr "Bilinmeyen Çökme" -#: badwolf.c:650 +#: badwolf.c:656 msgid "_IMG" msgstr "_RSM" -#: badwolf.c:645 +#: badwolf.c:651 msgid "_JS" msgstr "_JS" -#: badwolf.c:777 +#: badwolf.c:984 +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: content-filter yüklendi, content-manager'e ekleniyor…\n" + +#: badwolf.c:1004 badwolf.c:1011 +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "badwolf: content-filters.json derlenemedi, hata: [%d] %s\n" + +#: badwolf.c:972 badwolf.c:977 +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: content-filter yüklenemedi, hata: [%d] %s\n" + +#: badwolf.c:1062 +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "content-filters dosyası şuna ayarlandı: %s\n" + +#: badwolf.c:800 msgid "search in current page" msgstr "geçerli sayfada ara" -#: badwolf.c:98 +#: badwolf.c:100 msgid "the web process crashed.\n" msgstr "web işlemi çöktü.\n" -#: badwolf.c:102 +#: badwolf.c:104 msgid "the web process exceeded the memory limit.\n" msgstr "web işlemi bellek sınırını aştı.\n" -#: badwolf.c:106 +#: badwolf.c:108 msgid "the web process terminated for an unknown reason.\n" msgstr "web işlemi bilinmeyen bir nedenle sona erdi.\n" -#: badwolf.c:966 +#: badwolf.c:1048 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "webkit-web-extension dizini şuna ayarlandı: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1042 +#: badwolf.c:1140 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d From ad0c46dcbac4607cd0b048c0e66e0865bb7b4983 Mon Sep 17 00:00:00 2001 From: Ben K Date: Sun, 11 Apr 2021 14:33:15 +0200 Subject: de: Update translation --- po/de.po | 114 ++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 65 insertions(+), 49 deletions(-) (limited to 'po') diff --git a/po/de.po b/po/de.po index 0afd563..9660b70 100644 --- a/po/de.po +++ b/po/de.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 1.0.3+g1b10b33.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2021-03-23 18:10+0100\n" -"PO-Revision-Date: 2021-03-25 15:40+0100\n" +"POT-Creation-Date: 2021-04-11 14:10+0200\n" +"PO-Revision-Date: 2021-04-11 14:32+0200\n" "Last-Translator: Ben K. \n" "Language-Team: German\n" "Language: de\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.2.1\n" +"X-Generator: Poedit 2.4.2\n" #: downloads.c:117 #, c-format @@ -70,34 +70,33 @@ msgstr "Lesezeichen: Kein neuer XPath-Kontext konnte erstellen werden\n" #, fuzzy, c-format msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" msgstr "" -"Leisezeichen: Der XPath-Ausdruck \"%s\" konnte nicht ausgewertet " -"werden\n" +"Leisezeichen: Der XPath-Ausdruck \"%s\" konnte nicht ausgewertet werden\n" #: bookmarks.c:89 #, c-format msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "Lesezeichen: Die Datei \"%s\" konnte nicht geparst werden\n" -#: badwolf.c:954 +#: badwolf.c:1036 #, fuzzy, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Buildtime WebKit version: %d.%d.%d\n" -#: badwolf.c:439 +#: badwolf.c:441 msgid "Continue" msgstr "Weiter" -#: badwolf.c:389 +#: badwolf.c:391 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" "\n" msgstr "" "Das TLS-Zertifikat konnte nicht verifiziert werden, um eine bessere " -"Sicherheit der Verbindung sicherzustellen. Sie möchten vielleicht ihr " -"Gerät und ihr Netzwerk überprüfen. \n" +"Sicherheit der Verbindung sicherzustellen. Sie möchten vielleicht ihr Gerät " +"und ihr Netzwerk überprüfen. \n" -#: badwolf.c:99 +#: badwolf.c:101 msgid "Crashed" msgstr "Abgestürtzt" @@ -105,44 +104,42 @@ msgstr "Abgestürtzt" msgid "Download starting…" msgstr "Download startet…" -#: badwolf.c:412 +#: badwolf.c:414 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" "Fehler: Es ist ein unbekannter Fehler beim überprüfen des Zertifikats " "aufgetreten.\n" -#: badwolf.c:393 +#: badwolf.c:395 #, fuzzy msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Fehler: Die X509 Zertifikatsautorität ist unbekannt.\n" -#: badwolf.c:406 +#: badwolf.c:408 #, fuzzy msgid "Error: The certificate has been revoked.\n" msgstr "Fehler: Das Zertifikat wurde widerrufen.\n" -#: badwolf.c:403 +#: badwolf.c:405 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" -"Fehler: Das Zertifikat ist abgelaufen. Bitte überprüfen Sie, ob die " -"Uhr ihres Systems richtig eingestellt ist.\n" +"Fehler: Das Zertifikat ist abgelaufen. Bitte überprüfen Sie, ob die Uhr " +"ihres Systems richtig eingestellt ist.\n" -#: badwolf.c:409 +#: badwolf.c:411 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Fehler: Das Zertifikat wird als unsicher angesehen.\n" -#: badwolf.c:400 -msgid "" -"Error: The certificate isn't valid yet. Check your system's clock.\n" +#: badwolf.c:402 +msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -"Fehler: Das Zertifikat ist noch nicht gültig. Bitte überprüfen Sie, ob " -"die Uhr ihres Systems richtig eingestellt ist.\n" +"Fehler: Das Zertifikat ist noch nicht gültig. Bitte überprüfen Sie, ob die " +"Uhr ihres Systems richtig eingestellt ist.\n" -#: badwolf.c:396 +#: badwolf.c:398 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" -"Fehler: Die gegebene Identität passt nicht mit der Erwarteten " -"zusammen.\n" +"Fehler: Die gegebene Identität passt nicht mit der Erwarteten zusammen.\n" #: keybindings.c:32 #, c-format @@ -150,85 +147,104 @@ msgid "" "Minimalist and privacy-oriented web browser based on WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" msgstr "" -"Minimalistischer und Privatsphäre-orientierter Internetbrowser " -"basierend of WebKitGTK\n" +"Minimalistischer und Privatsphäre-orientierter Internetbrowser basierend of " +"WebKitGTK\n" "Runtime WebKit version: %d.%d.%d" -#: badwolf.c:889 +#: badwolf.c:906 msgid "New tab" msgstr "Neuer Reiter" -#: badwolf.c:1006 +#: badwolf.c:1104 msgid "Open new tab" msgstr "Neuen Reiter öffnen" -#: badwolf.c:103 +#: badwolf.c:105 msgid "Out of Memory" -msgstr "" -"Ihnen scheint der Arbeitsspeicher ausgegangen zu sein! (Out of Memory)" +msgstr "Ihnen scheint der Arbeitsspeicher ausgegangen zu sein! (Out of Memory)" -#: badwolf.c:952 +#: badwolf.c:1034 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Ausführende Badwolf-Version: %s\n" -#: badwolf.c:959 +#: badwolf.c:1041 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Ausführende WebKit-Version: %d.%d.%d\n" -#: badwolf.c:436 +#: badwolf.c:438 #, c-format msgid "TLS Error for %s." msgstr "TLS-Fehler für %s." -#: badwolf.c:439 -#, fuzzy +#: badwolf.c:441 msgid "Temporarily Add Exception" msgstr "Eine Ausnahme machen" -#: badwolf.c:647 +#: badwolf.c:653 msgid "Toggle javascript" msgstr "JavaScript ein-/ausschalten" -#: badwolf.c:652 +#: badwolf.c:658 msgid "Toggle loading images automatically" msgstr "Das automatische Laden von Bildern ein-/ausschalten" -#: badwolf.c:107 +#: badwolf.c:109 msgid "Unknown Crash" msgstr "Unbekannter Absturz" -#: badwolf.c:650 +#: badwolf.c:656 msgid "_IMG" msgstr "_IMG" -#: badwolf.c:645 +#: badwolf.c:651 msgid "_JS" msgstr "_JS" -#: badwolf.c:777 +#: badwolf.c:984 +#, fuzzy, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "badwolf: Inhaltsfilter wurde geladen, füge zum Inhaltsmanager hinzu…\n" + +#: badwolf.c:1004 badwolf.c:1011 +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "" +"badwolf: kompilieren von content-filters.json fehlgeschlagen, err: [%d] %s\n" + +#: badwolf.c:972 badwolf.c:977 +#, fuzzy, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: konnte Inhaltsfilter nicht laden, err: [%d] %s\n" + +#: badwolf.c:1062 +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "Inhaltsfilter-Datei wurde gesetzt auf: %s\n" + +#: badwolf.c:800 msgid "search in current page" msgstr "Die aktuelle Seite durchsuchen" -#: badwolf.c:98 +#: badwolf.c:100 msgid "the web process crashed.\n" msgstr "Der Webprozess ist abgestürzt.\n" -#: badwolf.c:102 +#: badwolf.c:104 msgid "the web process exceeded the memory limit.\n" msgstr "Der Webprozess hat das Arbeitsspeicherlimit überschritten.\n" -#: badwolf.c:106 +#: badwolf.c:108 msgid "the web process terminated for an unknown reason.\n" msgstr "Der Webprozess wurde aus unbekannten Gründen beendet.\n" -#: badwolf.c:966 +#: badwolf.c:1048 #, fuzzy, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "Das WebKit-Web-Erweiterungs-Verzeichnis wurde gesetzt auf: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1042 +#: badwolf.c:1140 msgid "ø" msgstr "ø" -- cgit v1.3.1-23-gd82d From 96157d37a0bf67d7fa82f0891eeae72b77da2b8c Mon Sep 17 00:00:00 2001 From: Pedro Lucas Porcellis Date: Wed, 14 Apr 2021 19:33:33 -0300 Subject: i18n: Update pt_BR translation --- po/pt_BR.po | 100 ++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 64 insertions(+), 36 deletions(-) (limited to 'po') diff --git a/po/pt_BR.po b/po/pt_BR.po index a3df8f5..61b5c5b 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Badwolf 0.4.0+g607300e\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-10-25 02:59+0100\n" -"PO-Revision-Date: 2020-05-17 20:18-0300\n" +"POT-Creation-Date: 2021-04-14 18:24-0300\n" +"PO-Revision-Date: 2021-04-14 19:31-0300\n" "Last-Translator: Pedro Lucas Porcellis \n" "Language-Team: Brazilian Portuguese\n" "Language: pt_BR\n" @@ -15,6 +15,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 2.4.1\n" #: downloads.c:117 #, c-format @@ -66,33 +67,35 @@ msgstr "Favoritos: não foi possível criar um novo contexto do XPath\n" #: bookmarks.c:107 #, c-format msgid "Bookmarks: unable to evaluate XPath expression \"%s\"\n" -msgstr "Favoritos: não foi possivel compreender a expressão do XPath \"%s\"\n" +msgstr "" +"Favoritos: não foi possivel compreender a expressão do XPath \"%s\"\n" #: bookmarks.c:89 #, c-format msgid "Bookmarks: unable to parse file \"%s\"\n" msgstr "Favoritos: não foi possível ler o arquivo \"%s\"\n" -#: badwolf.c:954 +#: badwolf.c:1036 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit %d.%d.%d\n" -#: badwolf.c:439 +#: badwolf.c:441 msgid "Continue" msgstr "Continuar" -#: badwolf.c:389 +#: badwolf.c:391 msgid "" "Couldn't verify the TLS certificate to ensure a better security of the " "connection. You might want to verify your machine and network.\n" "\n" msgstr "" "Não foi possível verificar o certificado TLS para garantir uma melhor " -"segurança da conexão. Talvez você deva verificar a sua máquina e rede.\n" +"segurança da conexão. Talvez você deva verificar a sua máquina e " +"rede.\n" "\n" -#: badwolf.c:99 +#: badwolf.c:101 msgid "Crashed" msgstr "Erro" @@ -100,34 +103,37 @@ msgstr "Erro" msgid "Download starting…" msgstr "Transferência Iniciada…" -#: badwolf.c:412 +#: badwolf.c:414 msgid "Error: Some unknown error occurred validating the certificate.\n" msgstr "" -"Erro: Algum erro desconhecido ocorreu enquanto validava o certificado.\n" +"Erro: Algum erro desconhecido ocorreu enquanto validava o " +"certificado.\n" -#: badwolf.c:393 +#: badwolf.c:395 msgid "Error: The X509 Certificate Authority is unknown.\n" msgstr "Erro: A Autoridade de Certificados X509 é desconhecida.\n" -#: badwolf.c:406 +#: badwolf.c:408 msgid "Error: The certificate has been revoked.\n" msgstr "Erro: O certificado foi revogado.\n" -#: badwolf.c:403 +#: badwolf.c:405 msgid "Error: The certificate has expired. Check your system's clock.\n" msgstr "" "Erro: O certificado foi expirado. Verifique o relógio do seu sistema.\n" -#: badwolf.c:409 +#: badwolf.c:411 msgid "Error: The certificate is considered to be insecure.\n" msgstr "Erro: O certificado é considerado inseguro.\n" -#: badwolf.c:400 -msgid "Error: The certificate isn't valid yet. Check your system's clock.\n" +#: badwolf.c:402 +msgid "" +"Error: The certificate isn't valid yet. Check your system's clock.\n" msgstr "" -"Erro: O certificado não é válido ainda. Verifique o relógio do seu sistema.\n" +"Erro: O certificado não é válido ainda. Verifique o relógio do seu " +"sistema.\n" -#: badwolf.c:396 +#: badwolf.c:398 msgid "Error: The given identity doesn't match the expected one.\n" msgstr "Erro: A identidade não confere com a esperada.\n" @@ -140,79 +146,101 @@ msgstr "" "Navegador orientado pela privacidade e minimalismo\n" "Versão do WebKit: %d.%d.%d" -#: badwolf.c:889 +#: badwolf.c:906 msgid "New tab" msgstr "Nova aba" -#: badwolf.c:1006 +#: badwolf.c:1104 msgid "Open new tab" msgstr "Abrir uma Nova aba" -#: badwolf.c:103 +#: badwolf.c:105 msgid "Out of Memory" msgstr "Sem memória" -#: badwolf.c:952 +#: badwolf.c:1034 #, c-format msgid "Running Badwolf version: %s\n" msgstr "Rodando versão %s do Badwolf\n" -#: badwolf.c:959 +#: badwolf.c:1041 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "Versão do WebKit: %d.%d.%d\n" -#: badwolf.c:436 +#: badwolf.c:438 #, c-format msgid "TLS Error for %s." msgstr "Erro TLS para %s." -#: badwolf.c:439 +#: badwolf.c:441 msgid "Temporarily Add Exception" msgstr "Adicionar exceção temporária" -#: badwolf.c:647 +#: badwolf.c:653 msgid "Toggle javascript" msgstr "Habilitar Javascript" -#: badwolf.c:652 +#: badwolf.c:658 msgid "Toggle loading images automatically" msgstr "Habilitar carregamento de imagens automático" -#: badwolf.c:107 +#: badwolf.c:109 msgid "Unknown Crash" msgstr "Erro desconhecido" -#: badwolf.c:650 +#: badwolf.c:656 msgid "_IMG" msgstr "_IMG" -#: badwolf.c:645 +#: badwolf.c:651 msgid "_JS" msgstr "_JS" -#: badwolf.c:777 +#: badwolf.c:984 +#, c-format +msgid "badwolf: content-filter loaded, adding to content-manager…\n" +msgstr "" +"badwolf: carregado content-filter, adicionando ao content-manager...\n" + +#: badwolf.c:1004 badwolf.c:1011 +#, c-format +msgid "badwolf: failed to compile content-filters.json, err: [%d] %s\n" +msgstr "" +"badwolf: falha ao compilar 'content-filters.json', erro: [%d] %s\n" + +#: badwolf.c:972 badwolf.c:977 +#, c-format +msgid "badwolf: failed to load content-filter, err: [%d] %s\n" +msgstr "badwolf: falha ao carregar content-filter, erro: [%d] %s\n" + +#: badwolf.c:1062 +#, c-format +msgid "content-filters file set to: %s\n" +msgstr "arquivo de content-filters configurado para: %s\n" + +#: badwolf.c:800 msgid "search in current page" msgstr "buscar na página atual" -#: badwolf.c:98 +#: badwolf.c:100 msgid "the web process crashed.\n" msgstr "o processo web travou.\n" -#: badwolf.c:102 +#: badwolf.c:104 msgid "the web process exceeded the memory limit.\n" msgstr "o processo web excedeu o limite de memória.\n" -#: badwolf.c:106 +#: badwolf.c:108 msgid "the web process terminated for an unknown reason.\n" msgstr "o processo web terminou por uma razão desconhecida.\n" -#: badwolf.c:966 +#: badwolf.c:1048 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "diretório de extensões configurado para: %s\n" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:1042 +#: badwolf.c:1140 msgid "ø" msgstr "" -- cgit v1.3.1-23-gd82d