Copy translations to a new directory layout.

Use common rules for build and install translations.
Added translation of .desktop files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 3 years ago
parent cb952883c9
commit 1b87ee1195
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,4 +20,9 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_create_template( "kxmleditor" )
tde_l10n_create_template( "messages/kxmleditor" )
tde_l10n_create_template(
CATALOG "desktop_files/kxmleditor-desktops"
SOURCES *.desktop
)

@ -71,7 +71,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
add_subdirectory( part )
add_subdirectory( ${PROJECT_NAME} )
tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files

@ -39,7 +39,4 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
install(
FILES ${PROJECT_NAME}.desktop
DESTINATION ${APPS_INSTALL_DIR}/Applications
)
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )

@ -1,13 +1,15 @@
[Desktop Entry]
Name=KXML Editor
GenericName=XML Text Editor
Comment=XML editor
Encoding=UTF-8
Type=Application
Exec=kxmleditor -caption "%c" %i %m
Exec=kxmleditor -caption "%c" %i %m
Icon=kxmleditor
X-DocPath=kxmleditor/index.html
Comment=XML editor
Comment[fi]=XML-editori
Terminal=false
Name=KXML Editor
GenericName=XML Text Editor
MimeType=text/xml;
Encoding=UTF-8
Categories=Qt;TDE;Development;
X-DocPath=kxmleditor/index.html

@ -68,7 +68,7 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
install(
FILES kxmleditorpart.desktop
tde_create_translated_desktop(
SOURCE kxmleditorpart.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)

@ -1,9 +1,9 @@
[Desktop Entry]
Name=KXMLEditorPart
Name[de]=KXMLEditor-Objekt
MimeType=text/xml;
X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
X-TDE-Library=libkxmleditorpart
Type=Service
Icon=kxmleditor
MiniIcon=kxmleditor
MimeType=text/xml;
X-TDE-Library=libkxmleditorpart
X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart

@ -1,5 +0,0 @@
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
if( _srcs )
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
endif( )

@ -0,0 +1,40 @@
# 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-02-06 18:25+0100\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
#: kxmleditor/kxmleditor.desktop:2
#, fuzzy
msgid "KXML Editor"
msgstr "KXMLEditor-Objekt"
#. GenericName
#: kxmleditor/kxmleditor.desktop:4
#, fuzzy
msgid "XML Text Editor"
msgstr "KXMLEditor-Objekt"
#. Comment
#: kxmleditor/kxmleditor.desktop:6
#, fuzzy
msgid "XML editor"
msgstr "KXMLEditor-Objekt"
#. Name
#: part/kxmleditorpart.desktop:2
msgid "KXMLEditorPart"
msgstr "KXMLEditor-Objekt"

@ -0,0 +1,40 @@
# 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-02-06 18:25+0100\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: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: kxmleditor/kxmleditor.desktop:2
#, fuzzy
msgid "KXML Editor"
msgstr "XML-editori"
#. GenericName
#: kxmleditor/kxmleditor.desktop:4
#, fuzzy
msgid "XML Text Editor"
msgstr "XML-editori"
#. Comment
#: kxmleditor/kxmleditor.desktop:6
msgid "XML editor"
msgstr "XML-editori"
#. Name
#: part/kxmleditorpart.desktop:2
#, fuzzy
msgid "KXMLEditorPart"
msgstr "XML-editori"

@ -0,0 +1,37 @@
# 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-02-06 18:25+0100\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
#: kxmleditor/kxmleditor.desktop:2
msgid "KXML Editor"
msgstr ""
#. GenericName
#: kxmleditor/kxmleditor.desktop:4
msgid "XML Text Editor"
msgstr ""
#. Comment
#: kxmleditor/kxmleditor.desktop:6
msgid "XML editor"
msgstr ""
#. Name
#: part/kxmleditorpart.desktop:2
msgid "KXMLEditorPart"
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save