From 5a77b3c38a7d9396a1ab91863b5b1d6fc64aabb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Tue, 2 Apr 2024 02:04:34 +0300 Subject: [PATCH 1/8] appdata: `translate=no` properties It appears that the appstream project no longer supports `translatable=no` properties, and gettext extract them as translatable. I opened an issue to inform about the situation, but `translatable=no` properties are not accepted by developers. You can find the issue here: `https://github.com/ximion/appstream/issues/623` **Please test your script or string extraction process before merging this PR.** > In MetaInfo files, each individual paragraph of a description > (or enumerated entry) is translated individually, however, > you can only exclude the complete block from being translated > by adding `translate="no"` to the description element. Source: https://freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html --- data/io.github.lainsce.Colorway.metainfo.xml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/io.github.lainsce.Colorway.metainfo.xml.in b/data/io.github.lainsce.Colorway.metainfo.xml.in index 0c32bac..afd0711 100644 --- a/data/io.github.lainsce.Colorway.metainfo.xml.in +++ b/data/io.github.lainsce.Colorway.metainfo.xml.in @@ -3,7 +3,7 @@ @app_id@ CC0-1.0 GPL-3.0+ - Colorway + Colorway Generate color pairings

Generate color pairings from selected color that follow certain color rules.

@@ -16,7 +16,7 @@ ModernToolkit HiDpiIcon - Lains + Lains https://github.com/lainsce/colorway/ https://github.com/lainsce/colorway/issues https://www.ko-fi.com/lainsce/ From 67994f130226c926fd56c99793776b2aa6fde142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Tue, 2 Apr 2024 02:04:43 +0300 Subject: [PATCH 2/8] appdata: Add developer ID Flathub requires a developer tag and developer ID. Also Appstream decided to use rdns structure for developer ID. It allows reverse-dns IDs like sh.cozy, de.geigi or Fediverse handle (like @user@example.org) > A developer tag with a name child tag must be present. > Only one developer tag is allowed and the name tag also must be present only once in untranslated form. ``` Developer name ``` Source: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#name-summary-and-developer-name > The element should have a id property, containing a unique ID to identify the component developer / development team. It is recommended to use a reverse-DNS name, like org.gnome or io.github.ximion, or a Fediverse handle (like @user@example.org) as ID to achieve a higher chance of uniqueness. Source: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-developer --- data/io.github.lainsce.Colorway.metainfo.xml.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/io.github.lainsce.Colorway.metainfo.xml.in b/data/io.github.lainsce.Colorway.metainfo.xml.in index afd0711..474ab19 100644 --- a/data/io.github.lainsce.Colorway.metainfo.xml.in +++ b/data/io.github.lainsce.Colorway.metainfo.xml.in @@ -17,6 +17,9 @@ HiDpiIcon Lains + + Lains + https://github.com/lainsce/colorway/ https://github.com/lainsce/colorway/issues https://www.ko-fi.com/lainsce/ From baffc728811e29d44174fead7ab58cf2e62de8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Tue, 2 Apr 2024 02:05:02 +0300 Subject: [PATCH 3/8] appdata: Exclude release descriptions from translation GNOME automatically excludes release descriptions on Damned Lies (GNOME Translation Platform). It's a good practice to follow the GNOME way. This can streamline the translation process, allowing translators to focus their efforts on more critical and user-facing aspects of the application. --- data/io.github.lainsce.Colorway.metainfo.xml.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/data/io.github.lainsce.Colorway.metainfo.xml.in b/data/io.github.lainsce.Colorway.metainfo.xml.in index 474ab19..406de5f 100644 --- a/data/io.github.lainsce.Colorway.metainfo.xml.in +++ b/data/io.github.lainsce.Colorway.metainfo.xml.in @@ -44,48 +44,48 @@ io.github.lainsce.Colorway - +

Changed: UI now follows Helium HIG, not Adwaita nor Solo.

- +

Fixed: Hue slider rainbow and starting position.

- +

Changed: UI now follows my own style that complements that of Adwaita, called Solo.

Changed: Window size reduced dramatically.

- +

Changed: New UI colors.

- +

Release: Recoloring With Accent

Changed: The UI now uses libadwaita recoloring.

Changed: New UI layout.

- +

Release: Color Choosing with a Drag

Added: The color chooser box's pointer can now be dragged to choose the color as well, no more clicking random spots.

Changed: Most icons now above color content are aware of contrast and will update accordingly as white or black colored to ensure contrast.

- +

Release: Copiable Colors

Added: Now the color boxes are now buttons which you can copy the individual color.

- +

Release: First Release

From e9f77ca9673e6903957ad93d041a525439ced14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Tue, 2 Apr 2024 02:05:09 +0300 Subject: [PATCH 4/8] appdata: Add vcs-browser URL Add vcs-browser URL to point the source code repository. --- data/io.github.lainsce.Colorway.metainfo.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/data/io.github.lainsce.Colorway.metainfo.xml.in b/data/io.github.lainsce.Colorway.metainfo.xml.in index 406de5f..772c343 100644 --- a/data/io.github.lainsce.Colorway.metainfo.xml.in +++ b/data/io.github.lainsce.Colorway.metainfo.xml.in @@ -23,6 +23,7 @@ https://github.com/lainsce/colorway/ https://github.com/lainsce/colorway/issues https://www.ko-fi.com/lainsce/ + https://github.com/lainsce/colorway/ https://github.com/lainsce/colorway/blob/master/po/README.md From 1dd93ce25f3cc12cf7265ead9595cb552f75462d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 22 Apr 2024 19:01:44 +0300 Subject: [PATCH 5/8] app: Fix translator-credits Empty strings cannot be translatable --- src/window.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.vala b/src/window.vala index 5639c57..794b93c 100644 --- a/src/window.vala +++ b/src/window.vala @@ -553,7 +553,7 @@ namespace Colorway { public void action_about () { // TRANSLATORS: 'Name ' or 'Name https://website.example' - string translators = (_("")); + string translators = (_("translator-credits")); var about = new He.AboutWindow ( this, From 938befef52204438f8fca01a119e283789ae4d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 22 Apr 2024 19:02:23 +0300 Subject: [PATCH 6/8] po: Update POTFILES --- po/POTFILES | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/po/POTFILES b/po/POTFILES index 36932a8..55d5658 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -2,8 +2,7 @@ data/io.github.lainsce.Colorway.desktop.in data/io.github.lainsce.Colorway.metainfo.xml.in data/io.github.lainsce.Colorway.gschema.xml -data/ui/menu.ui -data/ui/window.ui +data/ui/window.blp src/main.vala src/window.vala From c323649db79cc099e4436632d15cdc7a3ec8ac61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 22 Apr 2024 19:02:57 +0300 Subject: [PATCH 7/8] i18n: Update POT file --- po/io.github.lainsce.Colorway.pot | 99 ++++++------------------------- 1 file changed, 19 insertions(+), 80 deletions(-) diff --git a/po/io.github.lainsce.Colorway.pot b/po/io.github.lainsce.Colorway.pot index cc6de76..67271e5 100644 --- a/po/io.github.lainsce.Colorway.pot +++ b/po/io.github.lainsce.Colorway.pot @@ -3,14 +3,12 @@ # This file is distributed under the same license as the io.github.lainsce.Colorway package. # FIRST AUTHOR , YEAR. # -#. TRANSLATORS: 'Name ' or 'Name https://website.example' -#: src/window.vala:591 #, fuzzy msgid "" msgstr "" "Project-Id-Version: io.github.lainsce.Colorway\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-22 15:35+0100\n" +"POT-Creation-Date: 2024-04-22 18:57+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -36,110 +34,51 @@ msgid "" "Generate color pairings from selected color that follow certain color rules." msgstr "" -#: data/io.github.lainsce.Colorway.metainfo.xml.in:45 -msgid "Changed: UI now follows Helium HIG, not Adwaita nor Solo." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:50 -msgid "Fixed: Hue slider rainbow and starting position." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:55 -msgid "" -"Changed: UI now follows my own style that complements that of Adwaita, " -"called Solo." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:56 -msgid "Changed: Window size reduced dramatically." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:61 -msgid "Changed: New UI colors." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:66 -msgid "Release: Recoloring With Accent" -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:67 -msgid "Changed: The UI now uses libadwaita recoloring." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:68 -msgid "Changed: New UI layout." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:73 -msgid "Release: Color Choosing with a Drag" -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:74 -msgid "" -"Added: The color chooser box's pointer can now be dragged to choose the " -"color as well, no more clicking random spots." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:75 -msgid "" -"Changed: Most icons now above color content are aware of contrast and will " -"update accordingly as white or black colored to ensure contrast." -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:80 -msgid "Release: Copiable Colors" -msgstr "" - -#: data/io.github.lainsce.Colorway.metainfo.xml.in:81 -msgid "" -"Added: Now the color boxes are now buttons which you can copy the individual " -"color." +#: data/ui/window.blp:47 +msgid "Change color (hexcode)" msgstr "" -#: data/io.github.lainsce.Colorway.metainfo.xml.in:86 -msgid "Release: First Release" +#: data/ui/window.blp:59 +msgid "Pick Color" msgstr "" -#: data/ui/menu.ui:7 +#: data/ui/window.blp:80 msgid "Copy Colors to Clipboard" msgstr "" -#: data/ui/menu.ui:11 +#: data/ui/window.blp:85 msgid "Copy Colors Image to Clipboard" msgstr "" -#: data/ui/menu.ui:17 +#: data/ui/window.blp:92 msgid "Keyboard Shortcuts" msgstr "" -#: data/ui/menu.ui:21 +#: data/ui/window.blp:97 msgid "About Colorway" msgstr "" -#: data/ui/window.ui:22 -msgid "Change color (hexcode)" -msgstr "" - -#: data/ui/window.ui:50 -msgid "Pick Color" -msgstr "" - -#: src/window.vala:100 +#: src/window.vala:98 msgid "Analogous" msgstr "" -#: src/window.vala:101 +#: src/window.vala:98 msgid "Complementary" msgstr "" -#: src/window.vala:102 +#: src/window.vala:98 msgid "Triadic" msgstr "" -#: src/window.vala:103 +#: src/window.vala:98 msgid "Tetradic" msgstr "" -#: src/window.vala:104 +#: src/window.vala:98 msgid "Monochromatic" msgstr "" + +#. TRANSLATORS: 'Name ' or 'Name https://website.example' +#: src/window.vala:556 +msgid "translator-credits" +msgstr "" From 9c0ef34a305beb157c57d545d52f5ddf6102f7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 22 Apr 2024 19:04:24 +0300 Subject: [PATCH 8/8] i18n: Add Turkish translation --- po/LINGUAS | 3 +- po/tr.po | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 po/tr.po diff --git a/po/LINGUAS b/po/LINGUAS index 775a9ce..8c9f05b 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -4,6 +4,7 @@ es fr hr it +nl oc sk -nl +tr diff --git a/po/tr.po b/po/tr.po new file mode 100644 index 0000000..7917b8e --- /dev/null +++ b/po/tr.po @@ -0,0 +1,84 @@ +# Turkish translation of io.github.lainsce.Colorway. +# Copyright (C) 2024 io.github.lainsce.Colorway COPYRIGHT HOLDER +# This file is distributed under the same license as the io.github.lainsce.Colorway package. +# +# Sabri Ünal , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: io.github.lainsce.Colorway\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-04-22 18:57+0300\n" +"PO-Revision-Date: 2024-04-22 19:01+0300\n" +"Last-Translator: Sabri Ünal \n" +"Language-Team: \n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.4.2\n" + +#: data/io.github.lainsce.Colorway.desktop.in:3 +msgid "Colorway" +msgstr "Colorway" + +#: data/io.github.lainsce.Colorway.desktop.in:6 +msgid "color;palette;library;hue;swatch;" +msgstr "renk;palet;kitaplık;renk tonu;renk örneği;" + +#: data/io.github.lainsce.Colorway.metainfo.xml.in:7 +msgid "Generate color pairings" +msgstr "Renk eşleştirmeleri oluştur" + +#: data/io.github.lainsce.Colorway.metainfo.xml.in:9 +msgid "Generate color pairings from selected color that follow certain color rules." +msgstr "Seçilen renkten belirli renk kurallarına uyan renk eşleştirmeleri oluşturun." + +#: data/ui/window.blp:47 +msgid "Change color (hexcode)" +msgstr "Renk değiştir (hexcode)" + +#: data/ui/window.blp:59 +msgid "Pick Color" +msgstr "Renk Seç" + +#: data/ui/window.blp:80 +msgid "Copy Colors to Clipboard" +msgstr "Renkleri Panoya Kopyala" + +#: data/ui/window.blp:85 +msgid "Copy Colors Image to Clipboard" +msgstr "Renk Görüntüsünü Panoya Kopyala" + +#: data/ui/window.blp:92 +msgid "Keyboard Shortcuts" +msgstr "Klavye Kısayolları" + +#: data/ui/window.blp:97 +msgid "About Colorway" +msgstr "Colorway Hakkında" + +#: src/window.vala:98 +msgid "Analogous" +msgstr "Benzer" + +#: src/window.vala:98 +msgid "Complementary" +msgstr "Tamamlayıcı" + +#: src/window.vala:98 +msgid "Triadic" +msgstr "Üçlü" + +#: src/window.vala:98 +msgid "Tetradic" +msgstr "Dörtlü" + +#: src/window.vala:98 +msgid "Monochromatic" +msgstr "Tek renkli" + +#. TRANSLATORS: 'Name ' or 'Name https://website.example' +#: src/window.vala:556 +msgid "translator-credits" +msgstr "Sabri Ünal "