summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-05-13 19:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-05-13 19:38:31 +0900
commit17a1833c0f9fdd5034c5d7a649f6bf4f79cf41e5 (patch)
treee90fff406b1bbaeb086393b90538eca572c8494c
parent5b09473c522cff464d27ed567ff977d633820775 (diff)
downloadtdeio-appinfo-17a1833c0f9fdd5034c5d7a649f6bf4f79cf41e5.tar.gz
tdeio-appinfo-17a1833c0f9fdd5034c5d7a649f6bf4f79cf41e5.zip
Added translation of messages and desktop files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeL10n.txt22
-rw-r--r--CMakeLists.txt10
-rw-r--r--src/CMakeL10n.txt8
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/appinfo.protocol2
-rw-r--r--translations/desktop_files/tdeio-appinfo-desktops.pot24
-rw-r--r--translations/messages/tdeio-appinfo.pot73
7 files changed, 136 insertions, 8 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 0000000..a91bd2a
--- /dev/null
+++ b/CMakeL10n.txt
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2018 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 3.1 )
+
+
+##### include our cmake modules #################
+
+include( TDEL10n )
+
+
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abc676e..ba11107 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,9 +46,8 @@ option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden"
##### user requested modules
-option( BUILD_ALL "Build all" ON )
-#option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
-#option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
+option( BUILD_ALL "Build all" ON )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
@@ -56,7 +55,7 @@ option( BUILD_ALL "Build all" ON )
include( ConfigureChecks.cmake )
-###### global compiler settings
+###### global compiler settings
add_definitions( -DHAVE_CONFIG_H )
@@ -72,8 +71,7 @@ add_subdirectory( src )
##### other data ################################
-#tde_conditional_add_project_docs( BUILD_DOC )
-#tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
+tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
new file mode 100644
index 0000000..6b25bf3
--- /dev/null
+++ b/src/CMakeL10n.txt
@@ -0,0 +1,8 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "messages/tdeio-appinfo" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdeio-appinfo-desktops"
+ SOURCES *.protocol
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ff123d5..9b847b4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,7 +24,10 @@ link_directories(
##### other data ################################
-install( FILES appinfo.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE appinfo.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
##### tdeio_appinfo (module) #######################
diff --git a/src/appinfo.protocol b/src/appinfo.protocol
index ba02b44..dceedff 100644
--- a/src/appinfo.protocol
+++ b/src/appinfo.protocol
@@ -12,7 +12,7 @@ linking=true
moving=true
Icon=computer
maxInstances=4
-#TODO DocPath=tdeioslave/file.html
Class=:local
+Description=A TDEIO slave that combines an application's configuration, data, manual and temp files and folders into a single view.
deleteRecursive=true
fileNameUsedForCopying=Name
diff --git a/translations/desktop_files/tdeio-appinfo-desktops.pot b/translations/desktop_files/tdeio-appinfo-desktops.pot
new file mode 100644
index 0000000..6458fc0
--- /dev/null
+++ b/translations/desktop_files/tdeio-appinfo-desktops.pot
@@ -0,0 +1,24 @@
+# SOME DESCRIPTIVE TITLE.
+# This file is put in the public domain.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-05-13 19:24+0900\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Description
+#: appinfo.protocol:16
+msgid ""
+"A TDEIO slave that combines an application's configuration, data, manual and "
+"temp files and folders into a single view."
+msgstr ""
diff --git a/translations/messages/tdeio-appinfo.pot b/translations/messages/tdeio-appinfo.pot
new file mode 100644
index 0000000..3b1f071
--- /dev/null
+++ b/translations/messages/tdeio-appinfo.pot
@@ -0,0 +1,73 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2022-05-13 19:21+0900\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\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 ""
+
+#: appimpl.cpp:192 appimpl.cpp:201
+msgid "Application (%1)"
+msgstr ""
+
+#: appimpl.cpp:213
+#, c-format
+msgid "Manual for %1"
+msgstr ""
+
+#: appimpl.cpp:239
+msgid "User Data (%1)"
+msgstr ""
+
+#: appimpl.cpp:267 appimpl.cpp:297
+msgid "App Data (%1)"
+msgstr ""
+
+#: appimpl.cpp:325 appimpl.cpp:343
+msgid "Config File (%1)"
+msgstr ""
+
+#: appimpl.cpp:386
+msgid "Config Data(%1)"
+msgstr ""
+
+#: appimpl.cpp:393
+msgid "Config File(%1)"
+msgstr ""
+
+#: appimpl.cpp:433
+msgid "Tmp Data (%1)"
+msgstr ""
+
+#: appimpl.cpp:440
+msgid "Tmp File (%1)"
+msgstr ""
+
+#: appimpl.cpp:476
+msgid "XDG Config Data (%1)"
+msgstr ""
+
+#: appimpl.cpp:483
+msgid "XDG Cconfig File (%1)"
+msgstr ""