summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeL10n.txt23
-rw-r--r--CMakeLists.txt11
-rw-r--r--src/CMakeL10n.txt10
-rw-r--r--src/twin/CMakeL10n.txt7
-rw-r--r--src/twin/iaora.desktop3
-rw-r--r--src/widget/ia_ora.themerc2
-rw-r--r--translations/desktop_files/tde-style-ia-ora-desktops.pot32
-rw-r--r--translations/messages/twin_iaora/twin_iaora.pot32
8 files changed, 117 insertions, 3 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 0000000..9730a56
--- /dev/null
+++ b/CMakeL10n.txt
@@ -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( )
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c71865..145feb1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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} )
+##### user requested modules
+
+option( BUILD_ALL "Build all" ON )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
+
+
##### configure checks
include( ConfigureChecks.cmake )
@@ -64,6 +70,11 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
add_subdirectory( src )
+##### other data ################################
+
+tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
+
+
##### write configure files
configure_file( config.h.cmake config.h @ONLY )
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
new file mode 100644
index 0000000..28ef48c
--- /dev/null
+++ b/src/CMakeL10n.txt
@@ -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
+)
diff --git a/src/twin/CMakeL10n.txt b/src/twin/CMakeL10n.txt
new file mode 100644
index 0000000..231818a
--- /dev/null
+++ b/src/twin/CMakeL10n.txt
@@ -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
+)
diff --git a/src/twin/iaora.desktop b/src/twin/iaora.desktop
index 3283e19..254ae74 100644
--- a/src/twin/iaora.desktop
+++ b/src/twin/iaora.desktop
@@ -1,5 +1,4 @@
[Desktop Entry]
-Encoding=UTF-8
-Icon=
Name=Ia ora
+Encoding=UTF-8
X-TDE-Library=twin3_iaora
diff --git a/src/widget/ia_ora.themerc b/src/widget/ia_ora.themerc
index e85be6c..8780a5d 100644
--- a/src/widget/ia_ora.themerc
+++ b/src/widget/ia_ora.themerc
@@ -1,6 +1,6 @@
[Misc]
Name=Ia Ora
Comment=Mandriva Widget Style
+
[KDE]
WidgetStyle=ia_ora
-
diff --git a/translations/desktop_files/tde-style-ia-ora-desktops.pot b/translations/desktop_files/tde-style-ia-ora-desktops.pot
new file mode 100644
index 0000000..7c9056b
--- /dev/null
+++ b/translations/desktop_files/tde-style-ia-ora-desktops.pot
@@ -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 ""
diff --git a/translations/messages/twin_iaora/twin_iaora.pot b/translations/messages/twin_iaora/twin_iaora.pot
new file mode 100644
index 0000000..1e8b12b
--- /dev/null
+++ b/translations/messages/twin_iaora/twin_iaora.pot
@@ -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 ""