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/3/head
Slávek Banko 3 years ago
parent 9ab5d68717
commit 4a14670c00
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -75,7 +75,7 @@ add_subdirectory( src )
add_subdirectory( icons ) add_subdirectory( icons )
add_subdirectory( microbe ) add_subdirectory( microbe )
tde_conditional_add_project_docs( BUILD_DOC ) tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files ##### write configure files

@ -1,14 +0,0 @@
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} NAME_WE )
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
if( "${_po}" MATCHES "^([^/]*)/.*" )
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
else( )
set( _component "${PROJECT_NAME}" )
endif( )
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
endif( )
endforeach( )

@ -1,3 +1,8 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "ktechlab" ) tde_l10n_create_template( "messages/ktechlab" )
tde_l10n_create_template(
CATALOG desktop_files/ktechlab-desktops
SOURCES *.desktop
)

@ -1,12 +1,15 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8
Name=KTechlab Name=KTechlab
GenericName=Microcontroller and Electronics Simulator GenericName=Microcontroller and Electronics Simulator
Comment=An IDE for microcontrollers and electronics
Encoding=UTF-8
Type=Application
Exec=ktechlab %i %m -caption "%c" Exec=ktechlab %i %m -caption "%c"
Icon=ktechlab Icon=ktechlab
Type=Application
X-DocPath=ktechlab/index.html
Comment=An IDE for microcontrollers and electronics
Terminal=0 Terminal=0
MimeType=application/x-ktechlab;application/x-flowcode;application/x-circuit;application/x-microbe; MimeType=application/x-ktechlab;application/x-flowcode;application/x-circuit;application/x-microbe;
Categories=Qt;TDE;Education;Science;Electronics Categories=Qt;TDE;Education;Science;Electronics
X-DocPath=ktechlab/index.html

@ -1,7 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=KTechlab Circuit
Encoding=UTF-8 Encoding=UTF-8
Type=MimeType Type=MimeType
MimeType=application/x-circuit MimeType=application/x-circuit
Icon=ktechlab_circuit Icon=ktechlab_circuit
Patterns=*.circuit Patterns=*.circuit
Comment=KTechlab Circuit

@ -1,7 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=KTechlab FlowCode
Encoding=UTF-8 Encoding=UTF-8
Type=MimeType Type=MimeType
MimeType=application/x-flowcode MimeType=application/x-flowcode
Icon=ktechlab_flowcode Icon=ktechlab_flowcode
Patterns=*.flowcode Patterns=*.flowcode
Comment=KTechlab FlowCode

@ -1,7 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=KTechlab Project
Encoding=UTF-8 Encoding=UTF-8
Type=MimeType Type=MimeType
MimeType=application/x-ktechlab MimeType=application/x-ktechlab
Icon=ktechlab Icon=ktechlab
Patterns=*.ktechlab Patterns=*.ktechlab
Comment=KTechlab Project

@ -1,7 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=KTechlab Microbe
Encoding=UTF-8 Encoding=UTF-8
Type=MimeType Type=MimeType
MimeType=application/x-microbe MimeType=application/x-microbe
Icon=ktechlab_microbe Icon=ktechlab_microbe
Patterns=*.microbe;*.basic Patterns=*.microbe;*.basic
Comment=KTechlab Microbe

@ -0,0 +1,52 @@
# 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-01-30 16:15+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
#: ktechlab.desktop:2
msgid "KTechlab"
msgstr ""
#. GenericName
#: ktechlab.desktop:4
msgid "Microcontroller and Electronics Simulator"
msgstr ""
#. Comment
#: ktechlab.desktop:6
msgid "An IDE for microcontrollers and electronics"
msgstr ""
#. Comment
#: x-circuit.desktop:2
msgid "KTechlab Circuit"
msgstr ""
#. Comment
#: x-flowcode.desktop:2
msgid "KTechlab FlowCode"
msgstr ""
#. Comment
#: x-ktechlab.desktop:2
msgid "KTechlab Project"
msgstr ""
#. Comment
#: x-microbe.desktop:2
msgid "KTechlab Microbe"
msgstr ""

File diff suppressed because it is too large Load Diff

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