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>
(cherry picked from commit f35662989b)
r14.0.x
Slávek Banko 5 years ago
parent 88bb800e94
commit d4196fd507
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/knights" ) tde_l10n_create_template( "messages/knights" )
tde_l10n_create_template(
CATALOG "desktop_files/knights.desktop/"
SOURCES knights.desktop
)
tde_l10n_create_template(
CATALOG "desktop_files/pgn-mimetype/"
SOURCES pgn.desktop
)

@ -44,12 +44,10 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
##### other data ##### other data
install( tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
FILES pgn.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
)
install( tde_create_translated_desktop(
FILES ${PROJECT_NAME}.desktop SOURCE pgn.desktop
DESTINATION ${APPS_INSTALL_DIR}/Games/Board DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/pgn-mimetype
) )

@ -4,14 +4,10 @@ Exec=knights
Icon=knights Icon=knights
MiniIcon=knights MiniIcon=knights
Name=Knights Name=Knights
Name[de]=Knights
GenericName=Chess Game GenericName=Chess Game
Comment=A graphical chess interface Comment=A graphical chess interface
Comment[de]=A graphical chess interface
X-TDE-InitialPreference=1 X-TDE-InitialPreference=1
MimeType=application/x-chess-pgn,Application MimeType=application/x-chess-pgn,Application
X-TDE-ServiceTypes= X-TDE-ServiceTypes=
X-DocPath=knights/index.html X-DocPath=knights/index.html
Terminal=false Terminal=false

@ -6,6 +6,3 @@ Comment=Portable Game Notation
X-TDE-AutoEmbed=false X-TDE-AutoEmbed=false
Patterns=*.pgn *.PGN Patterns=*.pgn *.PGN
Name=Chess Match Name=Chess Match

@ -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-04-29 23:29+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
#: knights.desktop:6
msgid "Knights"
msgstr "Knights"
#. GenericName
#: knights.desktop:7
msgid "Chess Game"
msgstr ""
#. Comment
#: knights.desktop:8
msgid "A graphical chess interface"
msgstr "A graphical chess interface"

@ -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-04-29 23:29+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
#: knights.desktop:6
msgid "Knights"
msgstr ""
#. GenericName
#: knights.desktop:7
msgid "Chess Game"
msgstr ""
#. Comment
#: knights.desktop:8
msgid "A graphical chess interface"
msgstr ""

@ -0,0 +1,27 @@
# 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-04-29 23:32+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
#: pgn.desktop:5
msgid "Portable Game Notation"
msgstr ""
#. Name
#: pgn.desktop:8
msgid "Chess Match"
msgstr ""
Loading…
Cancel
Save