From a6559c76b74134976f6c8292c6ae20c0d628320a Mon Sep 17 00:00:00 2001 From: user Date: Tue, 25 Apr 2023 18:49:32 +0200 Subject: [PATCH] Improve language support --- de.zwarf.picplanner.json | 20 +++-- de.zwarf.picplanner.json~ | 140 +++++++++++++++++++++++++++++++++++ po/POTFILES | 1 + po/de.po | 8 +- po/fr.po | 9 ++- src/picplanner-application.c | 1 + 6 files changed, 167 insertions(+), 12 deletions(-) create mode 100644 de.zwarf.picplanner.json~ diff --git a/de.zwarf.picplanner.json b/de.zwarf.picplanner.json index 4e82263..abc388a 100644 --- a/de.zwarf.picplanner.json +++ b/de.zwarf.picplanner.json @@ -58,7 +58,9 @@ { "name" : "protobuf", "buildsystem" : "autotools", - "config-opts": [ "DIST_LANG=cpp" ], + "config-opts" : [ + "DIST_LANG=cpp" + ], "cleanup" : [ "/bin/protoc*", "/lib/libprotoc*", @@ -72,7 +74,6 @@ } ] }, - { "name" : "protobuf-c", "buildsystem" : "autotools", @@ -102,19 +103,19 @@ ] }, { - "name": "libgeoclue", - "buildsystem": "meson", + "name" : "libgeoclue", + "buildsystem" : "meson", "config-opts" : [ "-Denable-backend=false", "-Dlibgeoclue=true", "-Dintrospection=true", "-Dgtk-doc=false" ], - "sources": [ + "sources" : [ { "type" : "git", - "url": "https://gitlab.freedesktop.org/geoclue/geoclue.git", - "commit": "bbfb6289dedb88cb8155d9f6868787d5432e1f90" + "url" : "https://gitlab.freedesktop.org/geoclue/geoclue.git", + "commit" : "bbfb6289dedb88cb8155d9f6868787d5432e1f90" } ] }, @@ -129,5 +130,8 @@ } ] } - ] + ], + "build-options" : { + "env" : { } + } } diff --git a/de.zwarf.picplanner.json~ b/de.zwarf.picplanner.json~ new file mode 100644 index 0000000..3d46c25 --- /dev/null +++ b/de.zwarf.picplanner.json~ @@ -0,0 +1,140 @@ +{ + "app-id" : "de.zwarf.picplanner", + "runtime" : "org.gnome.Platform", + "runtime-version" : "44", + "sdk" : "org.gnome.Sdk", + "command" : "picplanner", + "finish-args" : [ + "--share=network", + "--share=ipc", + "--socket=fallback-x11", + "--device=dri", + "--socket=wayland" + ], + "cleanup" : [ + "/include", + "/lib/pkgconfig", + "/man", + "/share/doc", + "/share/gtk-doc", + "/share/man", + "/share/pkgconfig", + "*.la", + "*.a" + ], + "modules" : [ + { + "name" : "geocode-glib", + "buildsystem" : "meson", + "config-opts" : [ + "-Denable-gtk-doc=false", + "-Denable-introspection=false", + "-Denable-installed-tests=false", + "-Dsoup2=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/geocode-glib.git", + "commit" : "210abe69d68e38947106f4680631c369b0c23189" + } + ] + }, + { + "name" : "libgweather", + "buildsystem" : "meson", + "config-opts" : [ + "-Denable_vala=false", + "-Dgtk_doc=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/libgweather.git", + "commit" : "699cfb7e114acba4e066ebda9a51e6820da3daa7" + } + ] + }, + { + "name" : "protobuf", + "buildsystem" : "autotools", + "config-opts" : [ + "DIST_LANG=cpp" + ], + "cleanup" : [ + "/bin/protoc*", + "/lib/libprotoc*", + "/lib/libprotobuf-lite*" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/protocolbuffers/protobuf.git", + "commit" : "54489e95e01882407f356f83c9074415e561db00" + } + ] + }, + { + "name" : "protobuf-c", + "buildsystem" : "autotools", + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/protobuf-c/protobuf-c.git", + "commit" : "abc67a11c6db271bedbb9f58be85d6f4e2ea8389" + } + ] + }, + { + "name" : "libshumate", + "buildsystem" : "meson", + "config-opts" : [ + "-Ddemos=true", + "-Dgtk_doc=false", + "-Dvector_renderer=true" + ], + "builddir" : true, + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/libshumate.git", + "commit" : "a79548ba6e0a6043b3dcfdd44d61abe1869ddde9" + } + ] + }, + { + "name" : "libgeoclue", + "buildsystem" : "meson", + "config-opts" : [ + "-Denable-backend=false", + "-Dlibgeoclue=true", + "-Dintrospection=true", + "-Dgtk-doc=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.freedesktop.org/geoclue/geoclue.git", + "commit" : "bbfb6289dedb88cb8155d9f6868787d5432e1f90" + } + ] + }, + { + "name" : "picplanner", + "builddir" : true, + "buildsystem" : "meson", + "sources" : [ + { + "type" : "git", + "url" : "~/Projekte/picplanner" + } + ], + "config-opts" : [ + "LC_MESSAGES=de_DE.UTF-8" + ] + } + ], + "build-options" : { + "env" : { } + } +} diff --git a/po/POTFILES b/po/POTFILES index d4acf98..9bacff1 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -5,6 +5,7 @@ src/window/milky-way-page/milky-way-view.ui src/window/preferences-dialog/preferences-dialog.ui src/main.c +src/picplanner-application.c src/window/picplanner-window.c src/window/sun-page/sun-view.c diff --git a/po/de.po b/po/de.po index 7e7fa2c..15acf7c 100644 --- a/po/de.po +++ b/po/de.po @@ -1,5 +1,5 @@ # German translation for picplanner. -# Copyright (C) 2022 picplanner COPYRIGHT HOLDER +# Copyright (C) 2022 picplanner Zwarf # This file is distributed under the same license as the picplanner package. # # Zwarf , 2022. @@ -13,6 +13,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +# /src/picplanner-application.c +msgid "translator-credits" +msgstr "" +"Zwarf " # /src/window/picplanner-window.ui # /src/window/preferences-dialog/preferences-dialog.ui @@ -159,4 +163,4 @@ msgid "General Appearance" msgstr "Erscheinungsbild" msgid "Invert Color Scheme" -msgstr "Farbschema Invertieren" \ No newline at end of file +msgstr "Farbschema Invertieren" diff --git a/po/fr.po b/po/fr.po index 2a8b205..8f3d044 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,5 +1,5 @@ -# German translation for picplanner. -# Copyright (C) 2022 picplanner COPYRIGHT HOLDER +# French translation for picplanner. +# Copyright (C) 2022 picplanner Zwarf # This file is distributed under the same license as the picplanner package. # # Zwarf , 2022. @@ -18,6 +18,11 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Poedit 3.2.2\n" +# /src/picplanner-application.c +msgid "translator-credits" +msgstr "" +"Irénée Thirion " + # /src/window/picplanner-window.ui # /src/window/preferences-dialog/preferences-dialog.ui msgid "Preferences" diff --git a/src/picplanner-application.c b/src/picplanner-application.c index de48a14..7d5bda3 100644 --- a/src/picplanner-application.c +++ b/src/picplanner-application.c @@ -149,6 +149,7 @@ picplanner_application_show_about (GSimpleAction *action, "license-type", GTK_LICENSE_GPL_3_0, "developers", authors, "designers", artists, + "translator-credits", _("translator-credits"), NULL); }