From 8b0d6be87ecfc982f9c96797e95ca661826064b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 1 May 2020 19:36:39 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/CMakeL10n.txt | 5 ++++ src/CMakeLists.txt | 5 +--- src/kpicosim.desktop | 1 - .../kpicosim.desktop/kpicosim.desktop.pot | 27 ++++++++++++++++++++++ translations/desktop_files/kpicosim.desktop/nl.po | 27 ++++++++++++++++++++++ 5 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 translations/desktop_files/kpicosim.desktop/kpicosim.desktop.pot create mode 100644 translations/desktop_files/kpicosim.desktop/nl.po diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 47f3f48..36d2ec9 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/kpicosim" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kpicosim.desktop/" + SOURCES kpicosim.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 467a30b..13cc9d8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,7 +63,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${APPS_INSTALL_DIR}/Development -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/kpicosim.desktop b/src/kpicosim.desktop index 0547660..d7a56ad 100644 --- a/src/kpicosim.desktop +++ b/src/kpicosim.desktop @@ -5,4 +5,3 @@ Exec=kpicosim Icon=kpicosim Type=Application Comment=PicoBlaze IDE -Comment[nl]=PicoBlaze Ontwikkelomgeving diff --git a/translations/desktop_files/kpicosim.desktop/kpicosim.desktop.pot b/translations/desktop_files/kpicosim.desktop/kpicosim.desktop.pot new file mode 100644 index 0000000..4aece87 --- /dev/null +++ b/translations/desktop_files/kpicosim.desktop/kpicosim.desktop.pot @@ -0,0 +1,27 @@ +# 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: 2020-05-01 19:34+0200\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 +#: kpicosim.desktop:3 +msgid "KPicosim" +msgstr "" + +#. Comment +#: kpicosim.desktop:7 +msgid "PicoBlaze IDE" +msgstr "" diff --git a/translations/desktop_files/kpicosim.desktop/nl.po b/translations/desktop_files/kpicosim.desktop/nl.po new file mode 100644 index 0000000..99e7156 --- /dev/null +++ b/translations/desktop_files/kpicosim.desktop/nl.po @@ -0,0 +1,27 @@ +# 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: 2020-05-01 19:34+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: kpicosim.desktop:3 +msgid "KPicosim" +msgstr "" + +#. Comment +#: kpicosim.desktop:7 +msgid "PicoBlaze IDE" +msgstr "PicoBlaze Ontwikkelomgeving" -- cgit v1.2.1