From 96f541cfeca9a3deadaf4f11a842e3e84ae072d0 Mon Sep 17 00:00:00 2001 From: hoijui Date: Sat, 16 Dec 2017 16:50:34 +0100 Subject: [PATCH 1/5] document missing build step `./autogen.sh` --- README | 1 + 1 file changed, 1 insertion(+) diff --git a/README b/README index 893fbb0..5bfdd28 100644 --- a/README +++ b/README @@ -34,6 +34,7 @@ Simple install procedure: $ tar xzvf l3afpad-x.x.x.tar.gz # unpack the sources $ cd l3afpad-x.x.x # change to the toplevel directory + $ ./autogen.sh # generate the `configure' script $ ./configure # run the `configure' script $ make # build L3afpad [ Become root if necessary ] From 78ab7c32bb52125b1d13469d9cf137177734b20f Mon Sep 17 00:00:00 2001 From: hoijui Date: Sat, 16 Dec 2017 16:51:10 +0100 Subject: [PATCH 2/5] improve german translation --- po/de.po | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/po/de.po b/po/de.po index 704c5ca..b0fd58f 100644 --- a/po/de.po +++ b/po/de.po @@ -4,14 +4,15 @@ # Sebastian Stach , 2004. # Ruediger Arp , 2004. # Mario Blättermann , 2009. +# Robin Vobruba , 2017. # msgid "" msgstr "" "Project-Id-Version: l3afpad 0.8.16\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-07-05 17:27+0200\n" -"PO-Revision-Date: 2009-06-28 13:12+0100\n" -"Last-Translator: Mario Blättermann \n" +"PO-Revision-Date: 2017-12-16 16:44:00+0100\n" +"Last-Translator: Robin Vobruba \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" @@ -44,7 +45,7 @@ msgstr "_Neu" #: ../src/menu.c:40 msgid "_Open..." -msgstr "Ö_ffnen" +msgstr "Ö_ffnen..." #: ../src/menu.c:41 msgid "_Save" @@ -52,11 +53,11 @@ msgstr "_Speichern" #: ../src/menu.c:42 msgid "Save _As..." -msgstr "Speichern _unter" +msgstr "Speichern _unter..." #: ../src/menu.c:44 msgid "Sta_tistics..." -msgstr "" +msgstr "Dokumentens_tatistik..." #: ../src/menu.c:47 msgid "Print Pre_view" @@ -64,7 +65,7 @@ msgstr "Druck_vorschau" #: ../src/menu.c:48 msgid "_Print..." -msgstr "_Drucken …" +msgstr "_Drucken..." #: ../src/menu.c:50 msgid "_Quit" @@ -112,15 +113,15 @@ msgstr "_Rückwärts suchen" #: ../src/menu.c:61 msgid "_Replace..." -msgstr "_Ersetzen …" +msgstr "_Ersetzen..." #: ../src/menu.c:62 msgid "_Jump To..." -msgstr "_Gehe zu …" +msgstr "_Gehe zu..." #: ../src/menu.c:63 msgid "_Font..." -msgstr "_Schriftart …" +msgstr "_Schriftart..." #: ../src/menu.c:64 msgid "_About" @@ -140,18 +141,19 @@ msgstr "_Auto-Einzug" #: ../src/callback.c:139 msgid "Statistics" -msgstr "" +msgstr "Dokumentenstatistik" #: ../src/callback.c:330 msgid "GTK+ based simple text editor" -msgstr "Einfacher auf GTK+ basierender Texteditor" +msgstr "Einfacher, auf GTK+ basierender Texteditor" #: ../src/callback.c:338 msgid "translator-credits" msgstr "" "Sebastian Stach \n" "Ruediger Arp \n" -"Mario Blättermann " +"Mario Blättermann \n" +"Robin Vobruba " #: ../src/callback.c:349 msgid "Lɜafpad" @@ -177,11 +179,11 @@ msgstr "Anderer Zeichensatz" #: ../src/selector.c:155 ../src/selector.c:302 ../src/dialog.c:68 msgid "_Cancel" -msgstr "" +msgstr "_Abbrechen" #: ../src/selector.c:156 ../src/dialog.c:42 msgid "_OK" -msgstr "" +msgstr "_OK" #: ../src/selector.c:165 msgid "Code_set:" @@ -207,16 +209,16 @@ msgstr "Speichern unter" #: ../src/selector.c:303 #, fuzzy msgid "_Open" -msgstr "Öffnen" +msgstr "Ö_ffnen" #: ../src/selector.c:303 #, fuzzy msgid "_Save As" -msgstr "Speichern unter" +msgstr "_Speichern unter" #: ../src/selector.c:312 msgid "C_haracter Coding:" -msgstr "Zeic_henkodierung: " +msgstr "Zeic_henkodierung:" #: ../src/selector.c:369 #, c-format @@ -249,6 +251,11 @@ msgid "" "Selection\n" "Chars: %7d Words: %6d Lines: %5d\n" msgstr "" +"Gesammt\n" +"Zeichen: %7d Wörter: %6d Zeilen: %5d\n" +"\n" +"Auswahl\n" +"Zeichen: %7d Wörter: %6d Zeilen: %5d\n" #: ../src/search.c:129 msgid "Search string not found" @@ -261,7 +268,7 @@ msgstr "Ersetzen?" #: ../src/search.c:245 #, c-format msgid "%d strings replaced" -msgstr "%d Mal gefunden und ersetzt" +msgstr "%d Mal ersetzt" #: ../src/search.c:308 msgid "Replace" @@ -281,11 +288,11 @@ msgstr "_Ersetzen durch: " #: ../src/search.c:396 ../src/search.c:410 msgid "_Match case" -msgstr "_Groß-/Kleinschreibung berücksichtigen" +msgstr "_Groß-/Kleinschreibung beachten" #: ../src/search.c:402 msgid "Replace _all at once" -msgstr "_Alles ersetzen" +msgstr "_Alle ersetzen" #: ../src/search.c:469 msgid "Jump To" @@ -297,15 +304,15 @@ msgstr "_Gehe zu" #: ../src/search.c:481 msgid "_Line number:" -msgstr "Zeilen_nummer: " +msgstr "Zeilen_nummer:" #: ../src/dialog.c:67 msgid "_No" -msgstr "" +msgstr "_Nein" #: ../src/dialog.c:69 msgid "_Yes" -msgstr "" +msgstr "_Ja" #: ../data/l3afpad.desktop.in.h:1 msgid "L3afpad" From dd09ecacf87573ee9f297edd7d482c6c536b11a8 Mon Sep 17 00:00:00 2001 From: hoijui Date: Sat, 16 Dec 2017 16:51:43 +0100 Subject: [PATCH 3/5] add gitignore file (masks files that should never be committed) --- .gitignore | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18b229e --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +/INSTALL +Makefile +Makefile.in +Makefile.in.in +/aclocal.m4 +/compile +/config.h +/config.h.in +/config.status +/configure +/data/l3afpad.desktop +/depcomp +/install-sh +/missing +/po/.intltool-merge-cache +/po/POTFILES +/po/*.gmo +/po/stamp-it +/src/.deps/ +/src/l3afpad +/stamp-h1 + From aa0b0eb0d7efeb5e5b798ef01a0bd1e62f7c7ab0 Mon Sep 17 00:00:00 2001 From: hoijui Date: Sun, 17 Dec 2017 10:42:59 +0100 Subject: [PATCH 4/5] fix GtkSourceSearchFlags values changes values from: 0, 1, 2 to: 1, 2, 4 before, GTK_SOURCE_SEARCH_VISIBLE_ONLY was 0, and as the the enum values are used as bit-field, checking for this bit would always return in _not set_: visible_only = (flags & GTK_SOURCE_SEARCH_VISIBLE_ONLY) != 0; --- src/gtksourceiter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gtksourceiter.h b/src/gtksourceiter.h index f2a4235..5bc1d56 100644 --- a/src/gtksourceiter.h +++ b/src/gtksourceiter.h @@ -28,9 +28,9 @@ G_BEGIN_DECLS typedef enum { - GTK_SOURCE_SEARCH_VISIBLE_ONLY, - GTK_SOURCE_SEARCH_TEXT_ONLY, - GTK_SOURCE_SEARCH_CASE_INSENSITIVE + GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1, + GTK_SOURCE_SEARCH_TEXT_ONLY = 2, + GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 4 /* Possible future plans: SEARCH_REGEXP */ } GtkSourceSearchFlags; From 39ca226b866551c6a9833a31fea78af13ef6ac9f Mon Sep 17 00:00:00 2001 From: hoijui Date: Sun, 17 Dec 2017 10:43:16 +0100 Subject: [PATCH 5/5] fix resource leak --- src/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file.c b/src/file.c index f458e83..c4f50cf 100644 --- a/src/file.c +++ b/src/file.c @@ -220,6 +220,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi) if (fwrite(cstr, 1, wbytes, fp) != wbytes) { run_dialog_message(gtk_widget_get_toplevel(view), GTK_MESSAGE_ERROR, _("Can't write file")); + fclose(fp); return -1; }