Add CMakeL10n rules.

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

@ -0,0 +1,23 @@
#################################################
#
# (C) 2019 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( )

@ -45,6 +45,12 @@ option( WITH_ALL_OPTIONS "Enable all optional support" OFF
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks ##### configure checks
include( ConfigureChecks.cmake ) include( ConfigureChecks.cmake )
@ -64,6 +70,11 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
add_subdirectory( src ) add_subdirectory( src )
##### other data ################################
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files ##### write configure files
configure_file( config.h.cmake config.h @ONLY ) configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,10 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
tde_l10n_create_template(
CATALOG "desktop_files/tde-style-ia-ora-desktops"
SOURCES_DESKTOP
widget/ia_ora.themerc
twin/iaora.desktop
)

@ -0,0 +1,7 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "messages/twin_iaora/"
SOURCES .
X-POT ${CMAKE_SOURCE_DIR}/../../../core/tde-i18n/template/messages/tdebase/twin_clients.pot
)

@ -1,5 +1,4 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8
Icon=
Name=Ia ora Name=Ia ora
Encoding=UTF-8
X-TDE-Library=twin3_iaora X-TDE-Library=twin3_iaora

@ -1,6 +1,6 @@
[Misc] [Misc]
Name=Ia Ora Name=Ia Ora
Comment=Mandriva Widget Style Comment=Mandriva Widget Style
[KDE] [KDE]
WidgetStyle=ia_ora WidgetStyle=ia_ora

@ -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: 2021-07-12 12:48+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
#: widget/ia_ora.themerc:2
msgid "Ia Ora"
msgstr ""
#. Comment
#: widget/ia_ora.themerc:3
msgid "Mandriva Widget Style"
msgstr ""
#. Name
#: twin/iaora.desktop:2
msgid "Ia ora"
msgstr ""

@ -0,0 +1,32 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-07-12 12:47+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"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: iaoraclient.cpp:58
msgid "Ia Ora"
msgstr ""
Loading…
Cancel
Save