+ Catalog for strings in the plugin.
+ Desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 460b027377
)
r14.0.x
parent
54c0aa6024
commit
eb2422ab08
@ -0,0 +1,23 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2020 Slávek Banko
|
||||
# slavek.banko (AT) axis.cz
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
##### include our cmake modules #################
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEL10n )
|
||||
|
||||
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,10 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "messages/ksplash-engine-moodin" )
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "desktop_files/ksplashmoodin.desktop/"
|
||||
SOURCES ksplashmoodin.desktop
|
||||
)
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,9 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
file( GLOB_RECURSE _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Theme.rc )
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "desktop_files/themes/"
|
||||
SOURCES_DESKTOP ${_themes}
|
||||
KEYWORDS Label1 Label2 Label3 Label4 Label5
|
||||
)
|
@ -1,6 +1,13 @@
|
||||
file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
|
||||
file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png *.jpg )
|
||||
|
||||
install(
|
||||
FILES ${_pics} Background.jpg Theme.rc
|
||||
FILES ${_pics}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/FingerPrint
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE Theme.rc
|
||||
KEYWORDS Label1 Label2 Label3 Label4 Label5
|
||||
DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/FingerPrint
|
||||
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/themes
|
||||
)
|
||||
|
@ -1,4 +1,13 @@
|
||||
file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png *.jpg )
|
||||
|
||||
install(
|
||||
FILES Background.jpg Preview.png Theme.rc
|
||||
FILES ${_pics}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/MoodinKDE
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE Theme.rc
|
||||
KEYWORDS Label1 Label2 Label3 Label4 Label5
|
||||
DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/MoodinKDE
|
||||
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/themes
|
||||
)
|
||||
|
@ -0,0 +1 @@
|
||||
tde_auto_add_subdirectories()
|
@ -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-05-03 01:02+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
|
||||
#: ksplashmoodin.desktop:2
|
||||
msgid "KSplash Plugin"
|
||||
msgstr ""
|
||||
|
||||
#. Name
|
||||
#: ksplashmoodin.desktop:5
|
||||
msgid "KSplashMoodin"
|
||||
msgstr ""
|
@ -0,0 +1,54 @@
|
||||
# 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-03 00: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
|
||||
#: FingerPrint/Theme.rc:2
|
||||
msgid "FingerPrint"
|
||||
msgstr ""
|
||||
|
||||
#. Description
|
||||
#: FingerPrint/Theme.rc:3
|
||||
msgid ""
|
||||
"Taste your fingers (wallpaper from Dalmases http://www.deviantart.com/"
|
||||
"deviation/11180503/)"
|
||||
msgstr ""
|
||||
|
||||
#. Label1
|
||||
#: FingerPrint/Theme.rc:33
|
||||
msgid "Validating..."
|
||||
msgstr ""
|
||||
|
||||
#. Label2
|
||||
#: FingerPrint/Theme.rc:37
|
||||
msgid "ML:USER:loginname"
|
||||
msgstr ""
|
||||
|
||||
#. Name
|
||||
#: MoodinKDE/Theme.rc:2
|
||||
msgid "MoodinKDE"
|
||||
msgstr ""
|
||||
|
||||
#. Description
|
||||
#: MoodinKDE/Theme.rc:3
|
||||
msgid "Fading splash screen based on the svg wallpaper (Lineart Logo)"
|
||||
msgstr ""
|
||||
|
||||
#. Label1
|
||||
#: MoodinKDE/Theme.rc:24
|
||||
msgid "Welcome"
|
||||
msgstr ""
|
@ -0,0 +1,14 @@
|
||||
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( )
|
@ -0,0 +1,30 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2020-05-03 00:39+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"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: _translatorinfo:1
|
||||
msgid ""
|
||||
"_: NAME OF TRANSLATORS\n"
|
||||
"Your names"
|
||||
msgstr ""
|
||||
|
||||
#: _translatorinfo:2
|
||||
msgid ""
|
||||
"_: EMAIL OF TRANSLATORS\n"
|
||||
"Your emails"
|
||||
msgstr ""
|
||||
|
||||
#: thememoodin.cpp:202
|
||||
msgid "No background. Try to put a Background.jpg in theme folder"
|
||||
msgstr ""
|
Loading…
Reference in new issue