summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeL10n.txt23
-rw-r--r--CMakeLists.txt2
-rw-r--r--ConfigureChecks.cmake15
-rw-r--r--po/CMakeLists.txt6
-rw-r--r--po/tdeio-ftps.pot90
-rw-r--r--tdeio_ftps/CMakeL10n.txt3
6 files changed, 139 insertions, 0 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 0000000..a525b71
--- /dev/null
+++ b/CMakeL10n.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2018 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 76252d4..c1cf089 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden"
##### user requested modules
option( BUILD_ALL "Build all" ON )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
@@ -67,6 +68,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### directories
tde_conditional_add_subdirectory( BUILD_ALL tdeio_ftps )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### write configure files
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 4b2708e..4d71bba 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -29,6 +29,21 @@ if( WITH_GCC_VISIBILITY )
endif( WITH_GCC_VISIBILITY )
+##### gettext
+
+if( BUILD_TRANSLATIONS )
+ include( FindGettext )
+ if( GETTEXT_FOUND )
+ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
+ CACHE FILEPATH "path to msgfmt executable" )
+ endif( GETTEXT_FOUND )
+
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt is required but was not found on your system." )
+ endif( NOT MSGFMT_EXECUTABLE )
+endif( BUILD_TRANSLATIONS )
+
+
#### check for headers
check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..46fba83
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,6 @@
+# build translations if some are already available
+
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
+if( _srcs )
+ tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+endif( )
diff --git a/po/tdeio-ftps.pot b/po/tdeio-ftps.pot
new file mode 100644
index 0000000..b0b2c56
--- /dev/null
+++ b/po/tdeio-ftps.pot
@@ -0,0 +1,90 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2018-12-26 02:07+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"
+"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 ""
+
+#: ftp.cc:462
+#, c-format
+msgid "Opening connection to host %1"
+msgstr ""
+
+#: ftp.cc:480
+#, c-format
+msgid "Connected to host %1"
+msgstr ""
+
+#: ftp.cc:529
+msgid ""
+"%1.\n"
+"\n"
+"Reason: %2"
+msgstr ""
+
+#: ftp.cc:541
+msgid "The FTP-server does not seem to support ftps-encryption."
+msgstr ""
+
+#: ftp.cc:549
+msgid "SSL-connecting error occured"
+msgstr ""
+
+#: ftp.cc:580
+msgid "Sending login information"
+msgstr ""
+
+#: ftp.cc:627
+msgid ""
+"Message sent:\n"
+"Login using username=%1 and password=[hidden]\n"
+"\n"
+"Server replied:\n"
+"%2\n"
+"\n"
+msgstr ""
+
+#: ftp.cc:635
+msgid "You need to supply a username and a password to access this site."
+msgstr ""
+
+#: ftp.cc:637
+msgid "Site:"
+msgstr ""
+
+#: ftp.cc:638
+msgid "<b>%1</b>"
+msgstr ""
+
+#: ftp.cc:701
+msgid "Login OK"
+msgstr ""
+
+#: ftp.cc:730
+#, c-format
+msgid "Could not login to %1."
+msgstr ""
+
+#: ftp.cc:1242
+msgid "SSL connection failed on data channel."
+msgstr ""
diff --git a/tdeio_ftps/CMakeL10n.txt b/tdeio_ftps/CMakeL10n.txt
new file mode 100644
index 0000000..5623319
--- /dev/null
+++ b/tdeio_ftps/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdeio-ftps" )