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
parent
9ab5d68717
commit
4a14670c00
@ -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
|
||||||
|
@ -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…
Reference in new issue