Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
3 files changed, 194 insertions, 12 deletions
-rw-r--r--Makefile12
-rw-r--r--badwolf.c11
-rw-r--r--po/tr.po183
diff --git a/Makefile b/Makefile
index 1500c84..212ff00 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# - Usage of += for appending to a variable
PACKAGE = Badwolf
-VERSION = 1.0.2
+VERSION = 1.0.3
VERSION_FULL = $(VERSION)`./version.sh`
PREFIX ?= /usr/local
@@ -30,7 +30,7 @@ OBJS = 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
+TRANS = fr.mo pt_BR.mo tr.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)\"
@@ -78,12 +78,12 @@ test: $(EXE_test)
.PHONY: install
install: all
mkdir -p $(DESTDIR)$(BINDIR)
- cp -p badwolf $(DESTDIR)$(BINDIR)/badwolf
+ cp -p badwolf $(DESTDIR)$(BINDIR)/
mkdir -p $(DESTDIR)$(MANDIR)/man1
- cp -p badwolf.1 $(DESTDIR)$(MANDIR)/man1
+ cp -p badwolf.1 $(DESTDIR)$(MANDIR)/man1/
mkdir -p $(DESTDIR)$(DATADIR)/locale
- cp -r locale/ $(DESTDIR)$(DATADIR)
- cp interface.css $(DESTDIR)$(DATADIR)
+ cp -r locale/ $(DESTDIR)$(DATADIR)/
+ cp interface.css $(DESTDIR)$(DATADIR)/
mkdir -p $(DESTDIR)$(APPSDIR)
cp -p badwolf.desktop $(DESTDIR)$(APPSDIR)/
mkdir -p $(DESTDIR)$(DOCDIR)
diff --git a/badwolf.c b/badwolf.c
index 184c4a3..5bac0a6 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -72,9 +72,6 @@ WebViewCb_close(WebKitWebView *webView, gpointer user_data)
{
(void)webView;
struct Client *browser = (struct Client *)user_data;
- GtkNotebook *notebook = GTK_NOTEBOOK(browser->window->notebook);
-
- gtk_notebook_remove_page(notebook, gtk_notebook_page_num(GTK_NOTEBOOK(notebook), browser->box));
gtk_widget_destroy(browser->box);
@@ -664,6 +661,8 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat
settings,
NULL));
gtk_widget_set_name(GTK_WIDGET(browser->webView), "browser__webView");
+ g_object_unref(web_context);
+ g_object_unref(settings);
gtk_box_pack_start(
GTK_BOX(browser->toolbar), GTK_WIDGET(browser->back), FALSE, FALSE, BADWOLF_TOOLBAR_PADDING);
@@ -925,10 +924,10 @@ main(int argc, char *argv[])
gtk_window_set_role(GTK_WINDOW(window->main_window), "browser");
gtk_window_set_icon_name(GTK_WINDOW(window->main_window), "badwolf");
- GtkCssProvider *css_provider_app = gtk_css_provider_new();
- gchar *provider_path_app = g_build_filename(DATADIR, "interface.css", NULL);
+ gchar *provider_path_app = g_build_filename(DATADIR, "interface.css", NULL);
if(access(provider_path_app, R_OK) == 0)
{
+ GtkCssProvider *css_provider_app = gtk_css_provider_new();
gtk_css_provider_load_from_path(css_provider_app, provider_path_app, NULL);
gtk_style_context_add_provider_for_screen(
gtk_widget_get_screen(GTK_WIDGET(window->main_window)),
@@ -937,11 +936,11 @@ main(int argc, char *argv[])
}
g_free(provider_path_app);
- GtkCssProvider *css_provider_user = gtk_css_provider_new();
gchar *provider_path_user =
g_build_filename(g_get_user_data_dir(), "badwolf", "interface.css", NULL);
if(access(provider_path_user, R_OK) == 0)
{
+ GtkCssProvider *css_provider_user = gtk_css_provider_new();
gtk_css_provider_load_from_path(css_provider_user, provider_path_user, NULL);
gtk_style_context_add_provider_for_screen(
gtk_widget_get_screen(GTK_WIDGET(window->main_window)),
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 <https://hacktivis.me/projects/badwolf>
+# This file is distributed under the same license as the Badwolf package.
+# Oğuz Ersen <oguzersen@protonmail.com>, 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 <oguzersen@protonmail.com>\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 ""