From 5214daa37995b98155e73421731de0e48ae0238d Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 03:43:45 +0000 Subject: [PATCH 1/15] Enable localization domain and make more strings translatable --- diff --git a/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml b/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml index f66328b..6da1d39 100644 --- a/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml +++ b/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml @@ -14,26 +14,26 @@ import Qt5Compat.GraphicalEffects import org.kde.plasma.welcome GenericPage { - heading: i18nc("@info:window", "Enable Third Party Repositories") - description: xi18nc("@info:usagetip", "Fedora strongly believes in and promotes free and open source software. However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary games, applications, and graphics drivers using the Discover application or the DNF package manager.") + heading: i18ndc("plasma-welcome-fedora", "@info:window", "Enable Third Party Repositories") + description: xi18ndc("plasma-welcome-fedora", "@info:usagetip", "Fedora strongly believes in and promotes free and open source software. However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary games, applications, and graphics drivers using the Discover application or the DNF package manager.") id: root topContent: [ Kirigami.UrlButton { id: thirdPartyInfoLink Layout.topMargin: Kirigami.Units.largeSpacing - text: i18nc("@action:button", "See which repositories will get added") + text: i18ndc("plasma-welcome-fedora", "@action:button", "See which repositories will get added") url: "https://docs.fedoraproject.org/en-US/workstation-working-group/third-party-repos/#_included_software" }, Kirigami.UrlButton { id: thirdPartyPolicyLink Layout.topMargin: Kirigami.Units.largeSpacing - text: i18nc("@action:button", "Learn more about Fedora's Third Party Repository Policy") + text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's Third Party Repository Policy") url: "https://docs.fedoraproject.org/en-US/fesco/Third_Party_Repository_Policy/" }, Kirigami.UrlButton { id: fedoraLicenseLink Layout.topMargin: Kirigami.Units.largeSpacing - text: i18nc("@action:button", "Learn more about Fedora's license approval standards") + text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's license approval standards") url: "https://docs.fedoraproject.org/en-US/legal/license-approval/" }, QQC2.Button { @@ -41,7 +41,7 @@ GenericPage { text: "Enable Third Party Repositories" onClicked: { Controller.runCommand("pkexec fedora-third-party enable"); - showPassiveNotification(i18n("Third-Party Repositories are now being enabled in the background.")); + showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being enabled in the background.")); disableThirdParty.visible = true; enableThirdParty.visible = false; } @@ -49,10 +49,10 @@ GenericPage { }, QQC2.Button { id: disableThirdParty - text: "Disable Third Party Repositories" + text: i18nd("plasma-welcome-fedora", "Disable Third Party Repositories") onClicked: { Controller.runCommand("pkexec fedora-third-party disable"); - showPassiveNotification(i18n("Third-Party Repositories are now being disabled in the background.")); + showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being disabled in the background.")); disableThirdParty.visible = false; enableThirdParty.visible = true; } From 1d4ef629443b1bf45c1752fb3a89b4df08a45455 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 03:45:22 +0000 Subject: [PATCH 2/15] Add manage_l10n.sh script --- diff --git a/manage_l10n.sh b/manage_l10n.sh new file mode 100755 index 0000000..83469e2 --- /dev/null +++ b/manage_l10n.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# Handle localization of distro's custom page for Plasma Welcome Center +# Run 'manage_l10n update_po' to generate POT and update PO files. +# Run 'manage_l10n pot' to simply generate a new POT file. + +domain=plasma-welcome-fedora +bugs_address=https://pagure.io/fedora-kde/plasma-welcome-fedora/issues +source=usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml + +po_dir=po +pot_file=$po_dir/$domain.pot + +pot() { + # Generate POT file + xgettext \ + -C --from-code=UTF-8 \ + --keyword=xi18ndc:2c,3 \ + --keyword=i18ndc:2c,3 \ + --keyword=i18nd:2 \ + --msgid-bugs-address=$bugs_address \ + $source \ + -o $pot_file + # Patch POT file for better defaults + sed -i $pot_file \ + -e "/# Copyright/s/PACKAGE/$domain/" \ + -e "/# This file/s/PACKAGE/$domain/" \ + -e "/\"Project-Id-Version:/s/PACKAGE VERSION/$domain/" \ + -e "/\"Content-Type:/s/CHARSET/UTF-8/" +} + +update_po() { + # Regenerate POT file + pot + # Update all PO files against the POT file + po_files=$(find $po_dir/ -name '*.po') + for po in $po_files; do + msgmerge --update --previous $po $pot_file + done +} + +if [ ! -d $po_dir ]; then + echo "Unable to find PO files' directory '$po_dir'" + exit 1 +fi + +if [ $# -ne 1 ]; then + echo "This script takes one argument: 'pot' or 'update_po'" + exit 1 +else + called_funtion=$1 + case $called_funtion in + 'pot' ) pot;; + 'update_po' ) update_po;; + * ) echo "Invalid option '$called_funtion'. Valid: 'pot' or 'update_po'" + exit 1;; + esac +fi From 176e33f320230b14feed1af3dfb128524571375f Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 03:47:25 +0000 Subject: [PATCH 3/15] Add template file and pt_BR translation --- diff --git a/po/plasma-welcome-fedora.pot b/po/plasma-welcome-fedora.pot new file mode 100644 index 0000000..650b47b --- /dev/null +++ b/po/plasma-welcome-fedora.pot @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 00:43-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100644 index 0000000..292bf60 --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,69 @@ +# Brazilian Portuguese translations for plasma-welcome-fedora package +# Traduções em português brasileiro para o pacote plasma-welcome-fedora. +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Rafael Fontenelle , 2025. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 00:34-0300\n" +"PO-Revision-Date: 2025-02-27 00:34-0300\n" +"Last-Translator: Rafael Fontenelle \n" +"Language-Team: Brazilian Portuguese\n" +"Language: pt_BR\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" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "Habilitar repositórios de terceiros" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" +"O Fedora acredita fortemente e promove software livre e de código aberto. " +"No entanto, software proprietário pode ser disponibilizado se desejado." +"Clique neste botão para tornar possível instalar uma série de " +"jogos, aplicativos e drivers gráficos proprietários usando o aplicativo " +"Discover ou o gerenciador de pacotes DNF." + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "Veja quais repositórios serão adicionados" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "Saiba mais sobre a política de repositórios de terceiros do Fedora" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "Saiba mais sobre os padrões de aprovação de licença do Fedora" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" +"Repositórios de terceiros estão agora sendo habilitados em segundo planos." + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "Desabilitar repositórios de terceiros" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" +"Repositórios de terceiros estão agora sendo desabilitados em segundo plano." From 5d51ec9cc5c0f75a9e656e5e4b71f33b64b14ac0 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 04:01:16 +0000 Subject: [PATCH 4/15] Add compile to mangage_l10n.sh --- diff --git a/manage_l10n.sh b/manage_l10n.sh index 83469e2..b7798a5 100755 --- a/manage_l10n.sh +++ b/manage_l10n.sh @@ -10,6 +10,7 @@ source=usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml po_dir=po pot_file=$po_dir/$domain.pot + pot() { # Generate POT file xgettext \ @@ -28,30 +29,46 @@ pot() { -e "/\"Content-Type:/s/CHARSET/UTF-8/" } + +# Update all PO files against a newly generated POT file update_po() { - # Regenerate POT file pot - # Update all PO files against the POT file po_files=$(find $po_dir/ -name '*.po') for po in $po_files; do msgmerge --update --previous $po $pot_file done } + +# Compile PO files into MO files, to be used by the software +compile() { + po_files=$(find $po_dir/ -name '*.po') + mo=$domain.mo + DESTDIR=${DESTDIR:-.} + for po in $po_files; do + lang_code=$(echo $po | sed "s|$po_dir/||;s|\.po||") + locale_path="$DESTDIR/usr/share/locale/$lang_code/LC_MESSAGES" + mkdir -p $locale_path + msgfmt -c $po -o "$locale_path/$mo" + done +} + + if [ ! -d $po_dir ]; then echo "Unable to find PO files' directory '$po_dir'" exit 1 fi if [ $# -ne 1 ]; then - echo "This script takes one argument: 'pot' or 'update_po'" + echo "This script takes one argument: 'pot', 'update_po', 'compile'" exit 1 else - called_funtion=$1 - case $called_funtion in + called_function=$1 + case $called_function in 'pot' ) pot;; 'update_po' ) update_po;; - * ) echo "Invalid option '$called_funtion'. Valid: 'pot' or 'update_po'" + 'compile' ) compile;; + * ) echo "Invalid option '$called_funtion'. Valid: 'pot', 'update_po', 'compile'" exit 1;; esac fi From 554c54c2f2164f0fca62d9aefedbfc7ab55e6b4c Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 11:38:25 +0000 Subject: [PATCH 5/15] Fix typo in manage_l10n.sh --- diff --git a/manage_l10n.sh b/manage_l10n.sh index b7798a5..3e80447 100755 --- a/manage_l10n.sh +++ b/manage_l10n.sh @@ -68,7 +68,7 @@ else 'pot' ) pot;; 'update_po' ) update_po;; 'compile' ) compile;; - * ) echo "Invalid option '$called_funtion'. Valid: 'pot', 'update_po', 'compile'" + * ) echo "Invalid option '$called_function'. Valid: 'pot', 'update_po', 'compile'" exit 1;; esac fi From 9fc277e131e97bacd0d227e256f657b85ea6119b Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 27 2025 13:38:11 +0000 Subject: [PATCH 6/15] Add .gitignore to ignore locale files --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2568e1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +usr/share/locale/ From 8fe9fb5cd7bf461f63b4c951b7893fa5f5726fc3 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 02:16:00 +0000 Subject: [PATCH 7/15] Move desktop file into a desktop template file --- diff --git a/data/intro-customization.desktop.in b/data/intro-customization.desktop.in new file mode 100644 index 0000000..b9bc19a --- /dev/null +++ b/data/intro-customization.desktop.in @@ -0,0 +1,18 @@ +[Desktop Entry] +# Required since this is a Desktop file; ignored +Type=Application + +# Required; becomes the first paragraph on the Welcome page +# Don't forget to offer translations of the text! +Name=Welcome to Fedora! + +# Optional; replaces the default image on the Welcome page +# can be an icon name or an absolute path to an image on disk beginning with file:/ +Icon=fedora-loves-kde + +# Optional; replaces the default image caption on the Welcome page +# Don't forget to offer translations of the text! +Comment=Fedora loves KDE, and KDE loves Fedora! + +# Optional; replaces the default URL opened when clicking on the Welcome page's image or icon +URL=https://fedoraloveskde.org/ diff --git a/usr/share/plasma/plasma-welcome/intro-customization.desktop b/usr/share/plasma/plasma-welcome/intro-customization.desktop deleted file mode 100644 index 920aa55..0000000 --- a/usr/share/plasma/plasma-welcome/intro-customization.desktop +++ /dev/null @@ -1,30 +0,0 @@ -[Desktop Entry] -# Required since this is a Desktop file; ignored -Type=Application - -# Required; becomes the first paragraph on the Welcome page -# Don't forget to offer translations of the text! -Name=Welcome to Fedora! -Name[fr]=Bienvenue sur Fedora! -Name[pt]=Bem-vindo ao Fedora! -Name[de]=Willkommen bei Fedora! -Name[es]=¡Bienvenido a Fedora! -Name[it]=Benvenuti in Fedora! -Name[tr]=Fedora’ya hoş geldiniz! - -# Optional; replaces the default image on the Welcome page -# can be an icon name or an absolute path to an image on disk beginning with file:/ -Icon=fedora-loves-kde - -# Optional; replaces the default image caption on the Welcome page -# Don't forget to offer translations of the text! -Comment=Fedora loves KDE, and KDE loves Fedora! -Comment[fr]=Fedora aime KDE, et KDE aime Fedora! -Comment[pt]=Fedora ama KDE, kde ama Fedora! -Comment[de]=Fedora liebt KDE und KDE liebt Fedora! -Comment[es]=¡Fedora ama KDE y KDE ama Fedora! -Comment[it]=Fedora ama KDE e KDE ama Fedora! -Comment[tr]=Fedora KDE’yi, KDE de Fedora’yı çok seviyor! - -# Optional; replaces the default URL opened when clicking on the Welcome page's image or icon -URL=https://fedoraloveskde.org/ From 38722898a9628426c8d93d39490d2d2c1ef26a33 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 02:17:07 +0000 Subject: [PATCH 8/15] manage_l10n improvements Add desktop file to string extraction Use LINGUAS files to enable languages Add usage() function for -h --help Add install() function Loop through languages instead of po or mo files --- diff --git a/manage_l10n.sh b/manage_l10n.sh index 3e80447..99acc45 100755 --- a/manage_l10n.sh +++ b/manage_l10n.sh @@ -1,74 +1,123 @@ #!/bin/sh # Handle localization of distro's custom page for Plasma Welcome Center -# Run 'manage_l10n update_po' to generate POT and update PO files. -# Run 'manage_l10n pot' to simply generate a new POT file. + +set -e domain=plasma-welcome-fedora -bugs_address=https://pagure.io/fedora-kde/plasma-welcome-fedora/issues -source=usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml +msgid_bugs_address=https://pagure.io/fedora-kde/plasma-welcome-fedora/issues +# Path to source files to extract strings from +custom_page='usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml' +desktop_in_file='data/intro-customization.desktop.in' po_dir=po pot_file=$po_dir/$domain.pot +languages=$(cat po/LINGUAS | sed '/^#/d') + +usage() { + cat < Date: Feb 28 2025 02:19:19 +0000 Subject: [PATCH 9/15] Update pot and po files --- diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000..8281b8d --- /dev/null +++ b/po/de.po @@ -0,0 +1,69 @@ +# German translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Geraldo S. Simião Kutz , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-08-17 14:48-0000\n" +"Last-Translator: Geraldo S. Simião Kutz \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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Willkommen bei Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora liebt KDE und KDE liebt Fedora!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/es.po b/po/es.po new file mode 100644 index 0000000..625d966 --- /dev/null +++ b/po/es.po @@ -0,0 +1,69 @@ +# Spanish translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Geraldo S. Simião Kutz , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-08-17 14:48-0000\n" +"Last-Translator: Geraldo S. Simião Kutz \n" +"Language-Team: Spanish\n" +"Language: es\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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "¡Bienvenido a Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "¡Fedora ama KDE y KDE ama Fedora!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 0000000..cf1f491 --- /dev/null +++ b/po/fr.po @@ -0,0 +1,69 @@ +# French translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Steve Cossette , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-07-02 19:04-0000\n" +"Last-Translator: Steve Cossette \n" +"Language-Team: French\n" +"Language: pt_BR\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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Bienvenue sur Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora aime KDE, et KDE aime Fedora!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..6afedc9 --- /dev/null +++ b/po/it.po @@ -0,0 +1,69 @@ +# Italian translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Geraldo S. Simião Kutz , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-08-17 14:48-0000\n" +"Last-Translator: Geraldo S. Simião Kutz \n" +"Language-Team: Italian\n" +"Language: it\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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Benvenuti in Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora ama KDE e KDE ama Fedora!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/plasma-welcome-fedora.pot b/po/plasma-welcome-fedora.pot index 650b47b..4f3dd7d 100644 --- a/po/plasma-welcome-fedora.pot +++ b/po/plasma-welcome-fedora.pot @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 00:43-0300\n" +"POT-Creation-Date: 2025-02-27 23:02-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "" + #: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" diff --git a/po/pt.po b/po/pt.po new file mode 100644 index 0000000..4510782 --- /dev/null +++ b/po/pt.po @@ -0,0 +1,69 @@ +# Portuguese translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# José Relvas, 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-07-02 19:35-0000\n" +"Last-Translator: José Relvas\n" +"Language-Team: Portuguese\n" +"Language: pt\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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Bem-vindo ao Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora ama KDE, kde ama Fedora!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 292bf60..a0225d8 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 00:34-0300\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" "PO-Revision-Date: 2025-02-27 00:34-0300\n" "Last-Translator: Rafael Fontenelle \n" "Language-Team: Brazilian Portuguese\n" @@ -19,6 +19,14 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Bem-vindo ao Fedora!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora ama KDE e KDE ama Fedora!" + #: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" @@ -33,11 +41,11 @@ msgid "" "games, applications, and graphics drivers using the Discover application or " "the DNF package manager." msgstr "" -"O Fedora acredita fortemente e promove software livre e de código aberto. " -"No entanto, software proprietário pode ser disponibilizado se desejado." -"Clique neste botão para tornar possível instalar uma série de " -"jogos, aplicativos e drivers gráficos proprietários usando o aplicativo " -"Discover ou o gerenciador de pacotes DNF." +"O Fedora acredita fortemente e promove software livre e de código aberto. No " +"entanto, software proprietário pode ser disponibilizado se desejado.Clique neste botão para tornar possível instalar uma série de jogos, " +"aplicativos e drivers gráficos proprietários usando o aplicativo Discover ou " +"o gerenciador de pacotes DNF." #: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 msgctxt "@action:button" diff --git a/po/tr.po b/po/tr.po new file mode 100644 index 0000000..c1ff97f --- /dev/null +++ b/po/tr.po @@ -0,0 +1,69 @@ +# Turkish translations for plasma-welcome-fedora package +# Copyright (C) 2025 THE plasma-welcome-fedora'S COPYRIGHT HOLDER +# This file is distributed under the same license as the plasma-welcome-fedora package. +# Emir SARI , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: plasma-welcome-fedora\n" +"Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" +"issues\n" +"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"PO-Revision-Date: 2024-12-19 19:58-0000\n" +"Last-Translator: Emir SARI \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" + +#: data/intro-customization.desktop.in:7 +msgid "Welcome to Fedora!" +msgstr "Fedora’ya hoş geldiniz!" + +#: data/intro-customization.desktop.in:15 +msgid "Fedora loves KDE, and KDE loves Fedora!" +msgstr "Fedora KDE’yi, KDE de Fedora’yı çok seviyor!" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +msgctxt "@info:window" +msgid "Enable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +msgctxt "@info:usagetip" +msgid "" +"Fedora strongly believes in and promotes free and open source software. " +"However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary " +"games, applications, and graphics drivers using the Discover application or " +"the DNF package manager." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +msgctxt "@action:button" +msgid "See which repositories will get added" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +msgctxt "@action:button" +msgid "Learn more about Fedora's Third Party Repository Policy" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +msgctxt "@action:button" +msgid "Learn more about Fedora's license approval standards" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +msgid "Third-Party Repositories are now being enabled in the background." +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +msgid "Disable Third Party Repositories" +msgstr "" + +#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +msgid "Third-Party Repositories are now being disabled in the background." +msgstr "" From 474ddd0e07b49903e8b7c64824ca4ead076433d0 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 02:19:32 +0000 Subject: [PATCH 10/15] Update .gitignore --- diff --git a/.gitignore b/.gitignore index 2568e1f..725c0f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ +# Generated files +po/*.mo +po/*.po~ usr/share/locale/ +intro-customization.desktop From eb20ce60831944dbe43650c5f115a1f5bb690012 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 19:34:39 +0000 Subject: [PATCH 11/15] Move 01-EnableExtraRepos.qml to rootdir --- diff --git a/01-EnableExtraRepos.qml b/01-EnableExtraRepos.qml new file mode 100644 index 0000000..6da1d39 --- /dev/null +++ b/01-EnableExtraRepos.qml @@ -0,0 +1,91 @@ +/* + * SPDX-FileCopyrightText: 2021 Felipe Kinoshita + * SPDX-FileCopyrightText: 2022 Nate Graham + * + * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL + */ + +import QtQuick +import QtQuick.Controls as QQC2 +import QtQuick.Layouts +import org.kde.kirigami as Kirigami +import Qt5Compat.GraphicalEffects + +import org.kde.plasma.welcome + +GenericPage { + heading: i18ndc("plasma-welcome-fedora", "@info:window", "Enable Third Party Repositories") + description: xi18ndc("plasma-welcome-fedora", "@info:usagetip", "Fedora strongly believes in and promotes free and open source software. However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary games, applications, and graphics drivers using the Discover application or the DNF package manager.") + id: root + topContent: [ + Kirigami.UrlButton { + id: thirdPartyInfoLink + Layout.topMargin: Kirigami.Units.largeSpacing + text: i18ndc("plasma-welcome-fedora", "@action:button", "See which repositories will get added") + url: "https://docs.fedoraproject.org/en-US/workstation-working-group/third-party-repos/#_included_software" + }, + Kirigami.UrlButton { + id: thirdPartyPolicyLink + Layout.topMargin: Kirigami.Units.largeSpacing + text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's Third Party Repository Policy") + url: "https://docs.fedoraproject.org/en-US/fesco/Third_Party_Repository_Policy/" + }, + Kirigami.UrlButton { + id: fedoraLicenseLink + Layout.topMargin: Kirigami.Units.largeSpacing + text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's license approval standards") + url: "https://docs.fedoraproject.org/en-US/legal/license-approval/" + }, + QQC2.Button { + id: enableThirdParty + text: "Enable Third Party Repositories" + onClicked: { + Controller.runCommand("pkexec fedora-third-party enable"); + showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being enabled in the background.")); + disableThirdParty.visible = true; + enableThirdParty.visible = false; + } + Layout.topMargin: Kirigami.Units.largeSpacing + }, + QQC2.Button { + id: disableThirdParty + text: i18nd("plasma-welcome-fedora", "Disable Third Party Repositories") + onClicked: { + Controller.runCommand("pkexec fedora-third-party disable"); + showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being disabled in the background.")); + disableThirdParty.visible = false; + enableThirdParty.visible = true; + } + Layout.topMargin: Kirigami.Units.largeSpacing + } + ] + ColumnLayout { + anchors.fill: parent + spacing: root.padding + id: pandaImage + Image { + Layout.alignment: Qt.AlignCenter + Layout.fillWidth: true + Layout.fillHeight: true + Layout.maximumWidth: Kirigami.Units.gridUnit * 25 + + fillMode: Image.PreserveAspectFit + mipmap: true + source: "/usr/share/icons/hicolor/scalable/apps/mascot_konqi_3rdparty.svg" + } + } + Component.onCompleted: { + Controller.runCommand("fedora-third-party query --quiet", callback); + } + property var callback: (returnStatus, outputText) => { + if (returnStatus == 0) { + enableThirdParty.visible = false; + disableThirdParty.visible = true; + console.log('Third Party Repositories are enabled'); + } else { + enableThirdParty.visible = true; + disableThirdParty.visible = false; + console.log('Third Party Repositories are not enabled'); + } + } +} diff --git a/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml b/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml deleted file mode 100644 index 6da1d39..0000000 --- a/usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml +++ /dev/null @@ -1,91 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2021 Felipe Kinoshita - * SPDX-FileCopyrightText: 2022 Nate Graham - * - * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL - */ - -import QtQuick -import QtQuick.Controls as QQC2 -import QtQuick.Layouts -import org.kde.kirigami as Kirigami -import Qt5Compat.GraphicalEffects - -import org.kde.plasma.welcome - -GenericPage { - heading: i18ndc("plasma-welcome-fedora", "@info:window", "Enable Third Party Repositories") - description: xi18ndc("plasma-welcome-fedora", "@info:usagetip", "Fedora strongly believes in and promotes free and open source software. However, proprietary software can be made available if desired.Click this button to make it possible to install a number of proprietary games, applications, and graphics drivers using the Discover application or the DNF package manager.") - id: root - topContent: [ - Kirigami.UrlButton { - id: thirdPartyInfoLink - Layout.topMargin: Kirigami.Units.largeSpacing - text: i18ndc("plasma-welcome-fedora", "@action:button", "See which repositories will get added") - url: "https://docs.fedoraproject.org/en-US/workstation-working-group/third-party-repos/#_included_software" - }, - Kirigami.UrlButton { - id: thirdPartyPolicyLink - Layout.topMargin: Kirigami.Units.largeSpacing - text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's Third Party Repository Policy") - url: "https://docs.fedoraproject.org/en-US/fesco/Third_Party_Repository_Policy/" - }, - Kirigami.UrlButton { - id: fedoraLicenseLink - Layout.topMargin: Kirigami.Units.largeSpacing - text: i18ndc("plasma-welcome-fedora", "@action:button", "Learn more about Fedora's license approval standards") - url: "https://docs.fedoraproject.org/en-US/legal/license-approval/" - }, - QQC2.Button { - id: enableThirdParty - text: "Enable Third Party Repositories" - onClicked: { - Controller.runCommand("pkexec fedora-third-party enable"); - showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being enabled in the background.")); - disableThirdParty.visible = true; - enableThirdParty.visible = false; - } - Layout.topMargin: Kirigami.Units.largeSpacing - }, - QQC2.Button { - id: disableThirdParty - text: i18nd("plasma-welcome-fedora", "Disable Third Party Repositories") - onClicked: { - Controller.runCommand("pkexec fedora-third-party disable"); - showPassiveNotification(i18nd("plasma-welcome-fedora", "Third-Party Repositories are now being disabled in the background.")); - disableThirdParty.visible = false; - enableThirdParty.visible = true; - } - Layout.topMargin: Kirigami.Units.largeSpacing - } - ] - ColumnLayout { - anchors.fill: parent - spacing: root.padding - id: pandaImage - Image { - Layout.alignment: Qt.AlignCenter - Layout.fillWidth: true - Layout.fillHeight: true - Layout.maximumWidth: Kirigami.Units.gridUnit * 25 - - fillMode: Image.PreserveAspectFit - mipmap: true - source: "/usr/share/icons/hicolor/scalable/apps/mascot_konqi_3rdparty.svg" - } - } - Component.onCompleted: { - Controller.runCommand("fedora-third-party query --quiet", callback); - } - property var callback: (returnStatus, outputText) => { - if (returnStatus == 0) { - enableThirdParty.visible = false; - disableThirdParty.visible = true; - console.log('Third Party Repositories are enabled'); - } else { - enableThirdParty.visible = true; - disableThirdParty.visible = false; - console.log('Third Party Repositories are not enabled'); - } - } -} From cff0f08285783ce893e6404885d664fb727f4550 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 19:35:18 +0000 Subject: [PATCH 12/15] Move svg files to data/ --- diff --git a/data/fedora-loves-kde.svg b/data/fedora-loves-kde.svg new file mode 100644 index 0000000..da07912 --- /dev/null +++ b/data/fedora-loves-kde.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/mascot_konqi_3rdparty.svg b/data/mascot_konqi_3rdparty.svg new file mode 100644 index 0000000..c5948c0 --- /dev/null +++ b/data/mascot_konqi_3rdparty.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/usr/share/icons/hicolor/scalable/apps/fedora-loves-kde.svg b/usr/share/icons/hicolor/scalable/apps/fedora-loves-kde.svg deleted file mode 100644 index da07912..0000000 --- a/usr/share/icons/hicolor/scalable/apps/fedora-loves-kde.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/usr/share/icons/hicolor/scalable/apps/mascot_konqi_3rdparty.svg b/usr/share/icons/hicolor/scalable/apps/mascot_konqi_3rdparty.svg deleted file mode 100644 index c5948c0..0000000 --- a/usr/share/icons/hicolor/scalable/apps/mascot_konqi_3rdparty.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 18ef502366dc57dcbc65d339e5e4cd22a1e843d3 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 19:39:10 +0000 Subject: [PATCH 13/15] Update POT and PO files with new source path --- diff --git a/po/de.po b/po/de.po index 8281b8d..ada4a16 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-08-17 14:48-0000\n" "Last-Translator: Geraldo S. Simião Kutz \n" "Language-Team: German\n" @@ -26,12 +26,12 @@ msgstr "Willkommen bei Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora liebt KDE und KDE liebt Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/es.po b/po/es.po index 625d966..ed8c6cc 100644 --- a/po/es.po +++ b/po/es.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-08-17 14:48-0000\n" "Last-Translator: Geraldo S. Simião Kutz \n" "Language-Team: Spanish\n" @@ -26,12 +26,12 @@ msgstr "¡Bienvenido a Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "¡Fedora ama KDE y KDE ama Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/fr.po b/po/fr.po index cf1f491..f56f09e 100644 --- a/po/fr.po +++ b/po/fr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-07-02 19:04-0000\n" "Last-Translator: Steve Cossette \n" "Language-Team: French\n" @@ -26,12 +26,12 @@ msgstr "Bienvenue sur Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora aime KDE, et KDE aime Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/it.po b/po/it.po index 6afedc9..cfcf6e2 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-08-17 14:48-0000\n" "Last-Translator: Geraldo S. Simião Kutz \n" "Language-Team: Italian\n" @@ -26,12 +26,12 @@ msgstr "Benvenuti in Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora ama KDE e KDE ama Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/plasma-welcome-fedora.pot b/po/plasma-welcome-fedora.pot index 4f3dd7d..3c5b640 100644 --- a/po/plasma-welcome-fedora.pot +++ b/po/plasma-welcome-fedora.pot @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 23:02-0300\n" +"POT-Creation-Date: 2025-02-28 16:38-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,12 +26,12 @@ msgstr "" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/pt.po b/po/pt.po index 4510782..220cddb 100644 --- a/po/pt.po +++ b/po/pt.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-07-02 19:35-0000\n" "Last-Translator: José Relvas\n" "Language-Team: Portuguese\n" @@ -26,12 +26,12 @@ msgstr "Bem-vindo ao Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora ama KDE, kde ama Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index a0225d8..5efd753 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2025-02-27 00:34-0300\n" "Last-Translator: Rafael Fontenelle \n" "Language-Team: Brazilian Portuguese\n" @@ -27,12 +27,12 @@ msgstr "Bem-vindo ao Fedora!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora ama KDE e KDE ama Fedora!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "Habilitar repositórios de terceiros" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -47,31 +47,31 @@ msgstr "" "aplicativos e drivers gráficos proprietários usando o aplicativo Discover ou " "o gerenciador de pacotes DNF." -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "Veja quais repositórios serão adicionados" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "Saiba mais sobre a política de repositórios de terceiros do Fedora" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "Saiba mais sobre os padrões de aprovação de licença do Fedora" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" "Repositórios de terceiros estão agora sendo habilitados em segundo planos." -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "Desabilitar repositórios de terceiros" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" "Repositórios de terceiros estão agora sendo desabilitados em segundo plano." diff --git a/po/tr.po b/po/tr.po index c1ff97f..6323b08 100644 --- a/po/tr.po +++ b/po/tr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: plasma-welcome-fedora\n" "Report-Msgid-Bugs-To: https://pagure.io/fedora-kde/plasma-welcome-fedora/" "issues\n" -"POT-Creation-Date: 2025-02-27 22:47-0300\n" +"POT-Creation-Date: 2025-02-28 14:56-0300\n" "PO-Revision-Date: 2024-12-19 19:58-0000\n" "Last-Translator: Emir SARI \n" "Language-Team: Turkish\n" @@ -26,12 +26,12 @@ msgstr "Fedora’ya hoş geldiniz!" msgid "Fedora loves KDE, and KDE loves Fedora!" msgstr "Fedora KDE’yi, KDE de Fedora’yı çok seviyor!" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:17 +#: 01-EnableExtraRepos.qml:17 msgctxt "@info:window" msgid "Enable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:18 +#: 01-EnableExtraRepos.qml:18 msgctxt "@info:usagetip" msgid "" "Fedora strongly believes in and promotes free and open source software. " @@ -41,29 +41,29 @@ msgid "" "the DNF package manager." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:24 +#: 01-EnableExtraRepos.qml:24 msgctxt "@action:button" msgid "See which repositories will get added" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:30 +#: 01-EnableExtraRepos.qml:30 msgctxt "@action:button" msgid "Learn more about Fedora's Third Party Repository Policy" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:36 +#: 01-EnableExtraRepos.qml:36 msgctxt "@action:button" msgid "Learn more about Fedora's license approval standards" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:44 +#: 01-EnableExtraRepos.qml:44 msgid "Third-Party Repositories are now being enabled in the background." msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:52 +#: 01-EnableExtraRepos.qml:52 msgid "Disable Third Party Repositories" msgstr "" -#: usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml:55 +#: 01-EnableExtraRepos.qml:55 msgid "Third-Party Repositories are now being disabled in the background." msgstr "" From 669a69d4170835cbc509514d6e0fa771e4d5023e Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Feb 28 2025 19:39:37 +0000 Subject: [PATCH 14/15] Add Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1637853 --- /dev/null +++ b/Makefile @@ -0,0 +1,84 @@ +# Makefile for processing custom pages for Plasma Welcome Center + +# Configuration used in translation files +DOMAIN = plasma-welcome-fedora +MSGID_BUGS_ADDRESS = https://pagure.io/fedora-kde/plasma-welcome-fedora/issues + +# Source files used processed below +QML_FILE = 01-EnableExtraRepos.qml +SVG_FILES = data/fedora-loves-kde.svg data/mascot_konqi_3rdparty.svg +DESKTOP_IN = data/intro-customization.desktop.in + +# Overridable installation paths +DESTDIR = +PREFIX = $(DESTDIR)/usr +DATADIR = $(PREFIX)/share + +# Files generated or updated during the operations below +POT_FILE = po/${DOMAIN}.pot +LANGUAGES = $(shell cat po/LINGUAS | sed '/^#/d') +PO_FILES = $(foreach lang, $(LANGUAGES), po/$(lang).po) +MO_FILES = $(subst .po,.mo,$(PO_FILES)) +DESKTOP_FILE = $(subst .desktop.in,.desktop,$(DESKTOP_IN)) + +INSTALL = $(shell which install) + +# placed first to be called when no target is specified +build_all: clean pot update_po compile + +pot: + xgettext $(DESKTOP_IN) --output=$(POT_FILE) + xgettext \ + --join-existing \ + --keyword=xi18ndc:2c,3 \ + --keyword=i18ndc:2c,3 \ + --keyword=i18nd:2 \ + --language=C++ \ + --msgid-bugs-address=$(MSGID_BUGS_ADDRESS) \ + $(QML_FILE) \ + --output=$(POT_FILE) + sed -i $(POT_FILE) \ + -e "/# Copyright/s/PACKAGE/$(DOMAIN)/" \ + -e "/# This file/s/PACKAGE/$(DOMAIN)/" \ + -e "/\"Project-Id-Version:/s/PACKAGE VERSION/$(DOMAIN)/" \ + -e "/\"Content-Type:/s/CHARSET/UTF-8/" + echo "Generated $(POT_FILE)" + +update_po: + for po in $(PO_FILES); do \ + echo -n "$$po "; \ + msgmerge --update --previous $$po $(POT_FILE); \ + done + +compile: $(DESKTOP_FILE) $(MO_FILES) + +%.desktop: + msgfmt --desktop --template=$(DESKTOP_IN) -d po/ -o $@ + +%.mo: %.po + msgfmt -c $< -o $@ + +install: $(DOMAIN).mo install-desktop install-icons install-qml + +$(DOMAIN).mo: $(MO_FILES) + for mo in $?; do \ + lang=`echo $$mo | sed 's|po/||;s|\.mo||'`; \ + $(INSTALL) -D -m644 $$mo $(DATADIR)/locale/$$lang/LC_MESSAGES/$@; \ + done + +install-desktop: $(DESKTOP_FILE) + $(INSTALL) -D -m644 $< $(DATADIR)/plasma/plasma-welcome/$( Date: Feb 28 2025 19:39:56 +0000 Subject: [PATCH 15/15] Remove deprecated manage_l10n.sh --- diff --git a/manage_l10n.sh b/manage_l10n.sh deleted file mode 100755 index 99acc45..0000000 --- a/manage_l10n.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/sh -# Handle localization of distro's custom page for Plasma Welcome Center - -set -e - -domain=plasma-welcome-fedora -msgid_bugs_address=https://pagure.io/fedora-kde/plasma-welcome-fedora/issues -# Path to source files to extract strings from -custom_page='usr/share/plasma/plasma-welcome/extra-pages/01-EnableExtraRepos.qml' -desktop_in_file='data/intro-customization.desktop.in' - -po_dir=po -pot_file=$po_dir/$domain.pot - -languages=$(cat po/LINGUAS | sed '/^#/d') - -usage() { - cat <