From b9af4b55a36473519927389af1abdadd7a498231 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 9 Aug 2024 16:08:31 +0300 Subject: [PATCH] Add translations Signed-off-by: Mavridis Philippe --- CMakeL10n.txt | 11 + src/CMakeL10n.txt | 17 ++ src/tdealternatives.cpp | 1 + .../tdealternatives-desktops.pot | 34 +++ translations/messages/tdealternatives.pot | 211 ++++++++++++++++++ 5 files changed, 274 insertions(+) create mode 100644 CMakeL10n.txt create mode 100644 src/CMakeL10n.txt create mode 100644 translations/desktop_files/tdealternatives-desktops.pot create mode 100644 translations/messages/tdealternatives.pot diff --git a/CMakeL10n.txt b/CMakeL10n.txt new file mode 100644 index 0000000..58d96ae --- /dev/null +++ b/CMakeL10n.txt @@ -0,0 +1,11 @@ +################################################################################ +# TDEAlternatives - alternatives configuration module for TDE # +# # +# Improvements and feedback are welcome! # +# This software is licensed under the terms of the GNU GPL v3 license. # +################################################################################ + +cmake_minimum_required( VERSION 3.1 ) + +include( TDEL10n ) +tde_l10n_auto_add_subdirectories( ) diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt new file mode 100644 index 0000000..9734259 --- /dev/null +++ b/src/CMakeL10n.txt @@ -0,0 +1,17 @@ +################################################################################ +# TDEAlternatives - alternatives configuration module for TDE # +# # +# Improvements and feedback are welcome! # +# This software is licensed under the terms of the GNU GPL v3 license. # +################################################################################ + +tde_l10n_auto_add_subdirectories( ) + +tde_l10n_create_template( "messages/tdealternatives" ) + +tde_l10n_create_template( + CATALOG "desktop_files/tdealternatives-desktops" + SOURCES alternatives.desktop +) + +# kate: replace-tabs true; tab-width 2; \ No newline at end of file diff --git a/src/tdealternatives.cpp b/src/tdealternatives.cpp index 744433a..33cdad5 100644 --- a/src/tdealternatives.cpp +++ b/src/tdealternatives.cpp @@ -53,6 +53,7 @@ extern "C" { TDECModule *create_alternatives(TQWidget *parent, const char *name) { + TDEGlobal::locale()->insertCatalogue("tdealternatives"); return new TDEAlternatives(parent, name); }; } diff --git a/translations/desktop_files/tdealternatives-desktops.pot b/translations/desktop_files/tdealternatives-desktops.pot new file mode 100644 index 0000000..f577b89 --- /dev/null +++ b/translations/desktop_files/tdealternatives-desktops.pot @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-08-09 16:07+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" + +#. Name +#: alternatives.desktop:13 +msgid "Alternatives" +msgstr "" + +#. Comment +#: alternatives.desktop:14 +msgid "TDEAlternatives - DPKG/RPM alternatives manager for TDE" +msgstr "" + +#. Keywords +#: alternatives.desktop:16 +msgid "" +"applications,alternative,alternatives,dpkg,rpm,debian,devuan,ubuntu,redhat," +"fedora,mageia" +msgstr "" diff --git a/translations/messages/tdealternatives.pot b/translations/messages/tdealternatives.pot new file mode 100644 index 0000000..deafd2d --- /dev/null +++ b/translations/messages/tdealternatives.pot @@ -0,0 +1,211 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-08-09 16:07+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: addalternatives.cpp:43 addalternativesui.ui:171 +#, no-c-format +msgid "&Add Slave" +msgstr "" + +#: addalternatives.cpp:45 +msgid "Choose Alternative" +msgstr "" + +#: addalternatives.cpp:46 addslaves.cpp:38 +msgid "*|All Files" +msgstr "" + +#: addalternatives.cpp:116 +msgid "The number of slaves is not good." +msgstr "" + +#: addalternatives.cpp:116 +msgid "Number Of Slaves" +msgstr "" + +#: addslaves.cpp:37 +msgid "Choose Slave" +msgstr "" + +#: altitemelement.cpp:106 +msgid "no description" +msgstr "" + +#: main.cpp:35 +msgid "A KDE Manager for the Debian/Mandrake alternatives system" +msgstr "" + +#: main.cpp:47 +msgid "kalternatives" +msgstr "" + +#: tdealternatives.cpp:85 +msgid "" +"TDEAlternatives only works on systems which use the DPKG or RPM package " +"manager." +msgstr "" + +#: tdealternatives.cpp:86 +msgid "Wrong System Type" +msgstr "" + +#: mainwindow.ui:349 tdealternatives.cpp:120 +#, no-c-format +msgid "&Add" +msgstr "" + +#: mainwindow.ui:360 tdealternatives.cpp:121 +#, no-c-format +msgid "&Properties" +msgstr "" + +#: tdealternatives.cpp:131 +msgid "TDEAlternatives" +msgstr "" + +#: tdealternatives.cpp:132 +msgid "DPKG/RPM alternatives manager for TDE" +msgstr "" + +#: tdealternatives.cpp:133 +msgid "" +"(c) 2004 Juanjo Alvarez Martinez\n" +"(c) 2004 Mario Bensi" +msgstr "" + +#: tdealternatives.cpp:342 +msgid "" +"Description :\n" +"%1\n" +msgstr "" + +#: tdealternatives.cpp:343 +msgid "Path : %1\n" +msgstr "" + +#: tdealternatives.cpp:344 +msgid "Priority : %1\n" +msgstr "" + +#: tdealternatives.cpp:347 +msgid "" +"_n: Slave :\n" +"Slaves :" +msgstr "" + +#: tdealternatives.cpp:454 +msgid "" +"_:

TDEAlternatives

\n" +"\n" +"RPM/DPKG alternatives manager for TDE" +msgstr "" + +#: addalternativesui.ui:24 +#, no-c-format +msgid "Add Alternative" +msgstr "" + +#: addalternativesui.ui:60 addslavesui.ui:60 +#, no-c-format +msgid "Path:" +msgstr "" + +#: addalternativesui.ui:83 +#, no-c-format +msgid "Priority:" +msgstr "" + +#: addslavesui.ui:24 +#, no-c-format +msgid "Add Slave" +msgstr "" + +#: mainwindow.ui:30 +#, no-c-format +msgid "Alternatives Manager" +msgstr "" + +#: mainwindow.ui:54 +#, no-c-format +msgid "Alternatives" +msgstr "" + +#: mainwindow.ui:117 +#, no-c-format +msgid "&Hide useless alternatives" +msgstr "" + +#: mainwindow.ui:166 +#, no-c-format +msgid "status :" +msgstr "" + +#: mainwindow.ui:172 +#, no-c-format +msgid "auto" +msgstr "" + +#: mainwindow.ui:177 +#, no-c-format +msgid "manual" +msgstr "" + +#: mainwindow.ui:230 +#, no-c-format +msgid "Automake" +msgstr "" + +#: mainwindow.ui:258 +#, no-c-format +msgid "Choice" +msgstr "" + +#: mainwindow.ui:269 +#, no-c-format +msgid "Priority" +msgstr "" + +#: mainwindow.ui:280 +#, no-c-format +msgid "Option" +msgstr "" + +#: mainwindow.ui:291 +#, no-c-format +msgid "Description" +msgstr "" + +#: propertieswindow.ui:16 +#, no-c-format +msgid "Alternative Properties" +msgstr "" + +#: tdealternativesui.rc:4 +#, no-c-format +msgid "C&ustom" +msgstr ""