summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-02 15:03:18 +0200
committerSlávek Banko <[email protected]>2020-05-02 15:03:18 +0200
commit306fdc76941a6531a3ee93f7787bc06053634ff4 (patch)
treec00446817ec7c929d91a32d82c20c2b8d3404d90
parent6238cf3f31f9360228b151ff0359ce677b8c38b4 (diff)
downloadkrename-306fdc76941a6531a3ee93f7787bc06053634ff4.tar.gz
krename-306fdc76941a6531a3ee93f7787bc06053634ff4.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--krename/CMakeL10n.txt10
-rw-r--r--krename/CMakeLists.txt17
-rw-r--r--krename/krename.desktop1
-rw-r--r--krename/krename_dir.desktop3
-rw-r--r--krename/krenameservicemenu.desktop4
-rw-r--r--translations/desktop_files/krename.desktop/de.po33
-rw-r--r--translations/desktop_files/krename.desktop/krename.desktop.pot32
-rw-r--r--translations/desktop_files/servicemenus/de.po22
-rw-r--r--translations/desktop_files/servicemenus/es.po22
-rw-r--r--translations/desktop_files/servicemenus/fr.po22
-rw-r--r--translations/desktop_files/servicemenus/pt_BR.po22
-rw-r--r--translations/desktop_files/servicemenus/servicemenus.pot22
12 files changed, 192 insertions, 18 deletions
diff --git a/krename/CMakeL10n.txt b/krename/CMakeL10n.txt
index d36d730..4d59337 100644
--- a/krename/CMakeL10n.txt
+++ b/krename/CMakeL10n.txt
@@ -1,3 +1,13 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/krename" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/krename.desktop/"
+ SOURCES krename.desktop
+)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/servicemenus/"
+ SOURCES krename_dir.desktop krenameservicemenu.desktop
+)
diff --git a/krename/CMakeLists.txt b/krename/CMakeLists.txt
index 35b015b..9d47678 100644
--- a/krename/CMakeLists.txt
+++ b/krename/CMakeLists.txt
@@ -69,18 +69,15 @@ tde_install_icons( ${PROJECT_NAME} )
##### other data
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
-install(
- FILES
- krenameservicemenu.desktop
- krename_dir.desktop
-
+foreach( _service krename_dir.desktop krenameservicemenu.desktop )
+ tde_create_translated_desktop(
+ SOURCE ${_service}
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
-)
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/servicemenus
+ )
+endforeach( )
install(
FILES
diff --git a/krename/krename.desktop b/krename/krename.desktop
index 87e58e4..4e3b029 100644
--- a/krename/krename.desktop
+++ b/krename/krename.desktop
@@ -5,7 +5,6 @@ Icon=krename
MiniIcon=krename
X-DocPath=krename/index.html
Comment=A batch renamer
-Comment[de]=Ein Batch Umbenenner
Terminal=false
Name=KRename
GenericName=Batch File Renamer
diff --git a/krename/krename_dir.desktop b/krename/krename_dir.desktop
index bc5ff11..25757d4 100644
--- a/krename/krename_dir.desktop
+++ b/krename/krename_dir.desktop
@@ -6,7 +6,4 @@ X-TDE-ServiceTypes=inode/directory
[Desktop Action Rename]
Exec=krename -r %U
Name=Rename with KRename
-Name[de]=Mit KRename umbenennen
-Name[es]=Renombrar con KRename
-Name[fr]=Renommer avec KRename
Icon=krename
diff --git a/krename/krenameservicemenu.desktop b/krename/krenameservicemenu.desktop
index 0677e15..d3a30df 100644
--- a/krename/krenameservicemenu.desktop
+++ b/krename/krenameservicemenu.desktop
@@ -7,10 +7,6 @@ X-TDE-ExcludeServiceTypes=kdedevice/*
[Desktop Action Rename]
Name=Rename with KRename
-Name[de]=Mit KRename umbenennen
-Name[es]=Renombrar con KRename
-Name[fr]=Renommer avec KRename
-Name[pt_BR]=Renomear com KRename
Exec=krename %F
Icon=krename
diff --git a/translations/desktop_files/krename.desktop/de.po b/translations/desktop_files/krename.desktop/de.po
new file mode 100644
index 0000000..3bca1e9
--- /dev/null
+++ b/translations/desktop_files/krename.desktop/de.po
@@ -0,0 +1,33 @@
+# 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: 2020-05-02 14:56+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Comment
+#: krename.desktop:7
+msgid "A batch renamer"
+msgstr "Ein Batch Umbenenner"
+
+#. Name
+#: krename.desktop:9
+msgid "KRename"
+msgstr ""
+
+#. GenericName
+#: krename.desktop:10
+#, fuzzy
+msgid "Batch File Renamer"
+msgstr "Ein Batch Umbenenner"
diff --git a/translations/desktop_files/krename.desktop/krename.desktop.pot b/translations/desktop_files/krename.desktop/krename.desktop.pot
new file mode 100644
index 0000000..0491d7f
--- /dev/null
+++ b/translations/desktop_files/krename.desktop/krename.desktop.pot
@@ -0,0 +1,32 @@
+# 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: 2020-05-02 14:56+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Comment
+#: krename.desktop:7
+msgid "A batch renamer"
+msgstr ""
+
+#. Name
+#: krename.desktop:9
+msgid "KRename"
+msgstr ""
+
+#. GenericName
+#: krename.desktop:10
+msgid "Batch File Renamer"
+msgstr ""
diff --git a/translations/desktop_files/servicemenus/de.po b/translations/desktop_files/servicemenus/de.po
new file mode 100644
index 0000000..9407d2b
--- /dev/null
+++ b/translations/desktop_files/servicemenus/de.po
@@ -0,0 +1,22 @@
+# 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: 2020-05-02 14:58+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: krename_dir.desktop:8 krenameservicemenu.desktop:9
+msgid "Rename with KRename"
+msgstr "Mit KRename umbenennen"
diff --git a/translations/desktop_files/servicemenus/es.po b/translations/desktop_files/servicemenus/es.po
new file mode 100644
index 0000000..d1728cc
--- /dev/null
+++ b/translations/desktop_files/servicemenus/es.po
@@ -0,0 +1,22 @@
+# 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: 2020-05-02 14:58+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: krename_dir.desktop:8 krenameservicemenu.desktop:9
+msgid "Rename with KRename"
+msgstr "Renombrar con KRename"
diff --git a/translations/desktop_files/servicemenus/fr.po b/translations/desktop_files/servicemenus/fr.po
new file mode 100644
index 0000000..c901dbf
--- /dev/null
+++ b/translations/desktop_files/servicemenus/fr.po
@@ -0,0 +1,22 @@
+# 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: 2020-05-02 14:58+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: krename_dir.desktop:8 krenameservicemenu.desktop:9
+msgid "Rename with KRename"
+msgstr "Renommer avec KRename "
diff --git a/translations/desktop_files/servicemenus/pt_BR.po b/translations/desktop_files/servicemenus/pt_BR.po
new file mode 100644
index 0000000..11651d2
--- /dev/null
+++ b/translations/desktop_files/servicemenus/pt_BR.po
@@ -0,0 +1,22 @@
+# 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: 2020-05-02 14:58+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: krename_dir.desktop:8 krenameservicemenu.desktop:9
+msgid "Rename with KRename"
+msgstr "Renomear com KRename"
diff --git a/translations/desktop_files/servicemenus/servicemenus.pot b/translations/desktop_files/servicemenus/servicemenus.pot
new file mode 100644
index 0000000..56f085a
--- /dev/null
+++ b/translations/desktop_files/servicemenus/servicemenus.pot
@@ -0,0 +1,22 @@
+# 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: 2020-05-02 14:58+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: krename_dir.desktop:8 krenameservicemenu.desktop:9
+msgid "Rename with KRename"
+msgstr ""