summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-17 04:17:48 +0100
committerSlávek Banko <[email protected]>2018-12-17 23:28:57 +0100
commitfda0f460a95e6b4cf641681e8bcdce976fca4258 (patch)
treea46c3e6a271a30f6e9a6024fd0c6bab9da92b26b
parentea224b458d0035e622a982b400327d1eca12f6ba (diff)
downloadtdemultimedia-fda0f460a95e6b4cf641681e8bcdce976fca4258.tar.gz
tdemultimedia-fda0f460a95e6b4cf641681e8bcdce976fca4258.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 9f81d5707244152ad95e141a43bbbb52b9edbc85)
-rw-r--r--CMakeL10n.txt28
-rw-r--r--arts/CMakeL10n.txt10
-rw-r--r--arts/builder/CMakeL10n.txt3
-rw-r--r--arts/tools/CMakeL10n.txt3
-rw-r--r--juk/CMakeL10n.txt3
-rw-r--r--kaboodle/CMakeL10n.txt3
-rw-r--r--kaudiocreator/CMakeL10n.txt3
-rw-r--r--kmix/CMakeL10n.txt3
-rw-r--r--krec/CMakeL10n.txt6
-rw-r--r--kscd/CMakeL10n.txt3
-rw-r--r--libkcddb/CMakeL10n.txt8
-rw-r--r--libkcddb/kcmcddb/CMakeL10n.txt3
-rw-r--r--noatun/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/au/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/avi/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/flac/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/m3u/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/mp3/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/mpc/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/mpeg/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/ogg/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/sid/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/theora/CMakeL10n.txt3
-rw-r--r--tdefile-plugins/wav/CMakeL10n.txt3
-rw-r--r--tdeioslave/CMakeL10n.txt3
-rw-r--r--tdeioslave/audiocd/CMakeL10n.txt8
-rw-r--r--tdeioslave/audiocd/kcmaudiocd/CMakeL10n.txt3
-rw-r--r--tdeioslave/audiocd/plugins/CMakeL10n.txt3
-rw-r--r--tdeioslave/audiocd/plugins/lame/CMakeL10n.txt3
-rw-r--r--tdeioslave/audiocd/plugins/vorbis/CMakeL10n.txt3
-rw-r--r--tdemid/CMakeL10n.txt31
32 files changed, 169 insertions, 0 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 00000000..c9758900
--- /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/tdemultimedia" )
+
+
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories()
diff --git a/arts/CMakeL10n.txt b/arts/CMakeL10n.txt
new file mode 100644
index 00000000..ac2ff704
--- /dev/null
+++ b/arts/CMakeL10n.txt
@@ -0,0 +1,10 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "artsmodules"
+ EXCLUDES
+ "^builder/"
+ "^tools/"
+)
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/arts/builder/CMakeL10n.txt b/arts/builder/CMakeL10n.txt
new file mode 100644
index 00000000..26be0947
--- /dev/null
+++ b/arts/builder/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "artsbuilder" )
diff --git a/arts/tools/CMakeL10n.txt b/arts/tools/CMakeL10n.txt
new file mode 100644
index 00000000..5ad88910
--- /dev/null
+++ b/arts/tools/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "artscontrol" )
diff --git a/juk/CMakeL10n.txt b/juk/CMakeL10n.txt
new file mode 100644
index 00000000..07471e7d
--- /dev/null
+++ b/juk/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "juk" )
diff --git a/kaboodle/CMakeL10n.txt b/kaboodle/CMakeL10n.txt
new file mode 100644
index 00000000..2db93c1e
--- /dev/null
+++ b/kaboodle/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kaboodle" )
diff --git a/kaudiocreator/CMakeL10n.txt b/kaudiocreator/CMakeL10n.txt
new file mode 100644
index 00000000..e2c2661e
--- /dev/null
+++ b/kaudiocreator/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kaudiocreator" )
diff --git a/kmix/CMakeL10n.txt b/kmix/CMakeL10n.txt
new file mode 100644
index 00000000..eae68bc2
--- /dev/null
+++ b/kmix/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kmix" )
diff --git a/krec/CMakeL10n.txt b/krec/CMakeL10n.txt
new file mode 100644
index 00000000..652cd8d3
--- /dev/null
+++ b/krec/CMakeL10n.txt
@@ -0,0 +1,6 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "krec"
+ SOURCES "." "tips"
+)
diff --git a/kscd/CMakeL10n.txt b/kscd/CMakeL10n.txt
new file mode 100644
index 00000000..b877e6ae
--- /dev/null
+++ b/kscd/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kscd" )
diff --git a/libkcddb/CMakeL10n.txt b/libkcddb/CMakeL10n.txt
new file mode 100644
index 00000000..624ff885
--- /dev/null
+++ b/libkcddb/CMakeL10n.txt
@@ -0,0 +1,8 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "libkcddb"
+ EXCLUDES "^kcmcddb/"
+)
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/libkcddb/kcmcddb/CMakeL10n.txt b/libkcddb/kcmcddb/CMakeL10n.txt
new file mode 100644
index 00000000..0115c0a4
--- /dev/null
+++ b/libkcddb/kcmcddb/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kcmcddb" )
diff --git a/noatun/CMakeL10n.txt b/noatun/CMakeL10n.txt
new file mode 100644
index 00000000..9c56f4a6
--- /dev/null
+++ b/noatun/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "noatun" )
diff --git a/tdefile-plugins/CMakeL10n.txt b/tdefile-plugins/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/tdefile-plugins/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tdefile-plugins/au/CMakeL10n.txt b/tdefile-plugins/au/CMakeL10n.txt
new file mode 100644
index 00000000..39f02e1d
--- /dev/null
+++ b/tdefile-plugins/au/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_au" )
diff --git a/tdefile-plugins/avi/CMakeL10n.txt b/tdefile-plugins/avi/CMakeL10n.txt
new file mode 100644
index 00000000..e6a5604b
--- /dev/null
+++ b/tdefile-plugins/avi/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_avi" )
diff --git a/tdefile-plugins/flac/CMakeL10n.txt b/tdefile-plugins/flac/CMakeL10n.txt
new file mode 100644
index 00000000..edc2a525
--- /dev/null
+++ b/tdefile-plugins/flac/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_flac" )
diff --git a/tdefile-plugins/m3u/CMakeL10n.txt b/tdefile-plugins/m3u/CMakeL10n.txt
new file mode 100644
index 00000000..edfe5471
--- /dev/null
+++ b/tdefile-plugins/m3u/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_m3u" )
diff --git a/tdefile-plugins/mp3/CMakeL10n.txt b/tdefile-plugins/mp3/CMakeL10n.txt
new file mode 100644
index 00000000..b149f172
--- /dev/null
+++ b/tdefile-plugins/mp3/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_mp3" )
diff --git a/tdefile-plugins/mpc/CMakeL10n.txt b/tdefile-plugins/mpc/CMakeL10n.txt
new file mode 100644
index 00000000..1220767f
--- /dev/null
+++ b/tdefile-plugins/mpc/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_mpc" )
diff --git a/tdefile-plugins/mpeg/CMakeL10n.txt b/tdefile-plugins/mpeg/CMakeL10n.txt
new file mode 100644
index 00000000..2099a1af
--- /dev/null
+++ b/tdefile-plugins/mpeg/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_mpeg" )
diff --git a/tdefile-plugins/ogg/CMakeL10n.txt b/tdefile-plugins/ogg/CMakeL10n.txt
new file mode 100644
index 00000000..2fdb5fd2
--- /dev/null
+++ b/tdefile-plugins/ogg/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_ogg" )
diff --git a/tdefile-plugins/sid/CMakeL10n.txt b/tdefile-plugins/sid/CMakeL10n.txt
new file mode 100644
index 00000000..5d51554d
--- /dev/null
+++ b/tdefile-plugins/sid/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_sid" )
diff --git a/tdefile-plugins/theora/CMakeL10n.txt b/tdefile-plugins/theora/CMakeL10n.txt
new file mode 100644
index 00000000..f917082d
--- /dev/null
+++ b/tdefile-plugins/theora/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_theora" )
diff --git a/tdefile-plugins/wav/CMakeL10n.txt b/tdefile-plugins/wav/CMakeL10n.txt
new file mode 100644
index 00000000..e187cbd9
--- /dev/null
+++ b/tdefile-plugins/wav/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "tdefile_wav" )
diff --git a/tdeioslave/CMakeL10n.txt b/tdeioslave/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/tdeioslave/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tdeioslave/audiocd/CMakeL10n.txt b/tdeioslave/audiocd/CMakeL10n.txt
new file mode 100644
index 00000000..312c0d8c
--- /dev/null
+++ b/tdeioslave/audiocd/CMakeL10n.txt
@@ -0,0 +1,8 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "tdeio_audiocd"
+ EXCLUDES "/"
+)
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tdeioslave/audiocd/kcmaudiocd/CMakeL10n.txt b/tdeioslave/audiocd/kcmaudiocd/CMakeL10n.txt
new file mode 100644
index 00000000..2c3678d6
--- /dev/null
+++ b/tdeioslave/audiocd/kcmaudiocd/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kcmaudiocd" )
diff --git a/tdeioslave/audiocd/plugins/CMakeL10n.txt b/tdeioslave/audiocd/plugins/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/tdeioslave/audiocd/plugins/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tdeioslave/audiocd/plugins/lame/CMakeL10n.txt b/tdeioslave/audiocd/plugins/lame/CMakeL10n.txt
new file mode 100644
index 00000000..5f5907f2
--- /dev/null
+++ b/tdeioslave/audiocd/plugins/lame/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "audiocd_encoder_lame" )
diff --git a/tdeioslave/audiocd/plugins/vorbis/CMakeL10n.txt b/tdeioslave/audiocd/plugins/vorbis/CMakeL10n.txt
new file mode 100644
index 00000000..d3e8072f
--- /dev/null
+++ b/tdeioslave/audiocd/plugins/vorbis/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "audiocd_encoder_vorbis" )
diff --git a/tdemid/CMakeL10n.txt b/tdemid/CMakeL10n.txt
new file mode 100644
index 00000000..c511041f
--- /dev/null
+++ b/tdemid/CMakeL10n.txt
@@ -0,0 +1,31 @@
+##### prepare instrname.cpp #####################
+
+file( READ "${CMAKE_CURRENT_SOURCE_DIR}/instrname.cpp" _instrname_data )
+string( REGEX REPLACE "[^\n]" "" _instrname_len "${_instrname_data}" )
+string( LENGTH "+${_instrname_len}" _instrname_len )
+set( _instrname_pos 0 )
+set( _instrname_l10n "" )
+while( _instrname_pos LESS ${_instrname_len} )
+ # pick line
+ string( REGEX REPLACE "^([^\n]*)\n(.*)" "\\1" _line "${_instrname_data}" )
+ string( REGEX REPLACE "^([^\n]*)\n(.*)" "\\2" _instrname_data "${_instrname_data}" )
+ math( EXPR _instrname_pos "${_instrname_pos}+1" )
+
+ # write instrument name
+ if( "${_line}" MATCHES "\".+\"" )
+ string( REGEX MATCH "\".+\"" _line "${_line}" )
+ set( _line "i18n(${_line});" )
+ else( )
+ set( _line "" )
+ endif( )
+ set( _instrname_l10n "${_instrname_l10n}${_line}\n" )
+endwhile( )
+file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/instrname.cpp.tde_l10n" "${_instrname_l10n}" )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "tdemid"
+ SOURCES "." "instrname.cpp.tde_l10n"
+)