summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeL10n.txt28
-rw-r--r--styles/CMakeL10n.txt3
-rw-r--r--styles/phase/CMakeL10n.txt3
-rw-r--r--styles/phase/config/CMakeL10n.txt3
-rw-r--r--tdescreensaver/CMakeL10n.txt10
-rw-r--r--tdescreensaver/kxsconfig/CMakeL10n.txt75
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/companioncube.desktop24
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/fireflies.desktop24
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/hilbert.desktop24
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/rubikblocks.desktop24
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/surfaces.desktop24
-rw-r--r--tdescreensaver/kxsconfig/ScreenSavers/tronbit.desktop24
-rw-r--r--tdescreensaver/tdepartsaver/CMakeL10n.txt3
-rw-r--r--twin-styles/CMakeL10n.txt3
14 files changed, 272 insertions, 0 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 00000000..391b6be4
--- /dev/null
+++ b/CMakeL10n.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (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 )
+
+
+##### set directory for POT files ###############
+
+set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tde-i18n/template/messages/tdeartwork" )
+
+
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/styles/CMakeL10n.txt b/styles/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/styles/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/styles/phase/CMakeL10n.txt b/styles/phase/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/styles/phase/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/styles/phase/config/CMakeL10n.txt b/styles/phase/config/CMakeL10n.txt
new file mode 100644
index 00000000..514740a4
--- /dev/null
+++ b/styles/phase/config/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdestyle_phase_config" )
diff --git a/tdescreensaver/CMakeL10n.txt b/tdescreensaver/CMakeL10n.txt
new file mode 100644
index 00000000..d3023fc2
--- /dev/null
+++ b/tdescreensaver/CMakeL10n.txt
@@ -0,0 +1,10 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "klock"
+ SOURCES
+ "kdesavers"
+ "xsavers"
+)
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tdescreensaver/kxsconfig/CMakeL10n.txt b/tdescreensaver/kxsconfig/CMakeL10n.txt
new file mode 100644
index 00000000..653dae08
--- /dev/null
+++ b/tdescreensaver/kxsconfig/CMakeL10n.txt
@@ -0,0 +1,75 @@
+##### verify required programs ##################
+
+if( NOT DEFINED INTLTOOL_EXTRACT_EXECUTABLE )
+ find_program( INTLTOOL_EXTRACT_EXECUTABLE
+ NAMES intltool-extract
+ HINTS "${TDE_PREFIX}/bin"
+ )
+ if( NOT INTLTOOL_EXTRACT_EXECUTABLE )
+ tde_message_fatal( "intltool-extract is required but not found" )
+ endif( )
+endif( )
+
+
+##### prepare xscreensavers data files ##########
+
+message( STATUS "Prepare to extract strings from xscreensaver data files..." )
+
+include( ../../FindXscreensaver )
+
+unset( _xsavers_l10n )
+file( GLOB _xsaver_files
+ RELATIVE "${XSCREENSAVER_CONFIG_DIR}"
+ ${XSCREENSAVER_CONFIG_DIR}*.xml )
+list( SORT _xsaver_files )
+foreach( _xsaver_file ${_xsaver_files} )
+ string( REGEX REPLACE "\\.xml\$" "" _xsaver_name "${_xsaver_file}" )
+ if( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers/${_xsaver_name}.desktop" )
+ file( READ "${XSCREENSAVER_CONFIG_DIR}${_xsaver_file}" _xsaver_xml )
+ string( REGEX REPLACE
+ ".*<screensaver[^>]*_label=\"([^\"]*)\".*" "\\1"
+ _xsaver_label "${_xsaver_xml}" )
+ message( STATUS "Create desktop file for ${_xsaver_label} (${_xsaver_name})" )
+ execute_process(
+ COMMAND ldd "${XSCREENSAVER_DIR}/${_xsaver_name}"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT_VARIABLE _xsaver_libs
+ )
+ set( NAME "${_xsaver_name}" )
+ set( LABEL "${_xsaver_label}" )
+ if( "${_xsaver_libs}" MATCHES "libGL" )
+ set( GL1 "X-TDE-Category=OpenGL Screen Savers" )
+ set( GL2 "X-TDE-Type=OpenGL" )
+ else( )
+ set( GL1 "" )
+ set( GL2 "" )
+ endif( )
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers/xscreensaver.template
+ ${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers/${_xsaver_name}.desktop
+ @ONLY )
+ endif( )
+
+ execute_process(
+ COMMAND ${INTLTOOL_EXTRACT_EXECUTABLE}
+ --type=gettext/xml --srcdir ${XSCREENSAVER_CONFIG_DIR} ${_xsaver_file}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers
+ OUTPUT_VARIABLE _xsaver_output
+ )
+ file( RENAME
+ "${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers/${_xsaver_file}.h"
+ "${CMAKE_CURRENT_SOURCE_DIR}/ScreenSavers/${_xsaver_file}.h.tde_l10n" )
+ list( APPEND _xsavers_l10n "ScreenSavers/${_xsaver_file}.h.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "kxsconfig"
+ SOURCES
+ "."
+ ${_xsavers_l10n}
+ KEYWORDS
+ N_
+)
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/companioncube.desktop b/tdescreensaver/kxsconfig/ScreenSavers/companioncube.desktop
new file mode 100644
index 00000000..e532570e
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/companioncube.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=companioncube
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=CompanionCube
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig companioncube
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun companioncube -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun companioncube -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/fireflies.desktop b/tdescreensaver/kxsconfig/ScreenSavers/fireflies.desktop
new file mode 100644
index 00000000..6ae01f42
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/fireflies.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=fireflies
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=Fireflies
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig fireflies
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun fireflies -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun fireflies -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/hilbert.desktop b/tdescreensaver/kxsconfig/ScreenSavers/hilbert.desktop
new file mode 100644
index 00000000..07a16d7e
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/hilbert.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=hilbert
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=Hilbert
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig hilbert
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun hilbert -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun hilbert -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/rubikblocks.desktop b/tdescreensaver/kxsconfig/ScreenSavers/rubikblocks.desktop
new file mode 100644
index 00000000..aa97ee6e
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/rubikblocks.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=rubikblocks
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=RubikBlocks
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig rubikblocks
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun rubikblocks -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun rubikblocks -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/surfaces.desktop b/tdescreensaver/kxsconfig/ScreenSavers/surfaces.desktop
new file mode 100644
index 00000000..30bdbd2f
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/surfaces.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=surfaces
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=Surfaces
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig surfaces
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun surfaces -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun surfaces -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/kxsconfig/ScreenSavers/tronbit.desktop b/tdescreensaver/kxsconfig/ScreenSavers/tronbit.desktop
new file mode 100644
index 00000000..f2e512f9
--- /dev/null
+++ b/tdescreensaver/kxsconfig/ScreenSavers/tronbit.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=tronbit
+Icon=tdescreensaver
+Type=Application
+Actions=InWindow,Root,Setup
+Name=TronBit
+X-TDE-Category=OpenGL Screen Savers
+X-TDE-Type=OpenGL
+
+[Desktop Action Setup]
+Exec=kxsconfig tronbit
+Name=Setup...
+
+[Desktop Action InWindow]
+Exec=kxsrun tronbit -- -window-id %w
+Name=Display in Specified Window
+NoDisplay=true
+
+[Desktop Action Root]
+Exec=kxsrun tronbit -- -root
+Name=Display in Root Window
+NoDisplay=true
+
diff --git a/tdescreensaver/tdepartsaver/CMakeL10n.txt b/tdescreensaver/tdepartsaver/CMakeL10n.txt
new file mode 100644
index 00000000..cfba98ec
--- /dev/null
+++ b/tdescreensaver/tdepartsaver/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdepartsaver" )
diff --git a/twin-styles/CMakeL10n.txt b/twin-styles/CMakeL10n.txt
new file mode 100644
index 00000000..a2340e21
--- /dev/null
+++ b/twin-styles/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "twin_art_clients" )