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 <slavek.banko@axis.cz>
pull/6/head
Slávek Banko 5 years ago
parent 6238cf3f31
commit 306fdc7694
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,3 +1,13 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "messages/krename" ) 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
)

@ -69,18 +69,15 @@ tde_install_icons( ${PROJECT_NAME} )
##### other data ##### other data
install( tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
FILES ${PROJECT_NAME}.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
install( foreach( _service krename_dir.desktop krenameservicemenu.desktop )
FILES tde_create_translated_desktop(
krenameservicemenu.desktop SOURCE ${_service}
krename_dir.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
) PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/servicemenus
)
endforeach( )
install( install(
FILES FILES

@ -5,7 +5,6 @@ Icon=krename
MiniIcon=krename MiniIcon=krename
X-DocPath=krename/index.html X-DocPath=krename/index.html
Comment=A batch renamer Comment=A batch renamer
Comment[de]=Ein Batch Umbenenner
Terminal=false Terminal=false
Name=KRename Name=KRename
GenericName=Batch File Renamer GenericName=Batch File Renamer

@ -6,7 +6,4 @@ X-TDE-ServiceTypes=inode/directory
[Desktop Action Rename] [Desktop Action Rename]
Exec=krename -r %U Exec=krename -r %U
Name=Rename with KRename Name=Rename with KRename
Name[de]=Mit KRename umbenennen
Name[es]=Renombrar con KRename
Name[fr]=Renommer avec KRename
Icon=krename Icon=krename

@ -7,10 +7,6 @@ X-TDE-ExcludeServiceTypes=kdedevice/*
[Desktop Action Rename] [Desktop Action Rename]
Name=Rename with KRename 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 Exec=krename %F
Icon=krename Icon=krename

@ -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 <LL@li.org>\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"

@ -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 <LL@li.org>\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 ""

@ -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 <LL@li.org>\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"

@ -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 <LL@li.org>\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"

@ -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 <LL@li.org>\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 "

@ -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 <LL@li.org>\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"

@ -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 <LL@li.org>\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 ""
Loading…
Cancel
Save