summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-17 04:17:48 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-17 04:17:48 +0100
commit9f81d5707244152ad95e141a43bbbb52b9edbc85 (patch)
tree2e98a4d3a11e8233d224395ac827ed0837cac3c8
parent097c011f551a12fef9d1c93b57a04a1965bb11c8 (diff)
downloadtdemultimedia-9f81d5707244152ad95e141a43bbbb52b9edbc85.zip
tdemultimedia-9f81d5707244152ad95e141a43bbbb52b9edbc85.tar.gz
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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 0000000..c975890
--- /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 0000000..ac2ff70
--- /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 0000000..26be094
--- /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 0000000..5ad8891
--- /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 0000000..07471e7
--- /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 0000000..2db93c1
--- /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 0000000..e2c2661
--- /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 0000000..eae68bc
--- /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 0000000..652cd8d
--- /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 0000000..b877e6a
--- /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 0000000..624ff88
--- /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 0000000..0115c0a
--- /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 0000000..9c56f4a
--- /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 0000000..b585ce4
--- /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 0000000..39f02e1
--- /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 0000000..e6a5604
--- /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 0000000..edc2a52
--- /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 0000000..edfe547
--- /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 0000000..b149f17
--- /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 0000000..1220767
--- /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 0000000..2099a1a
--- /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 0000000..2fdb5fd
--- /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 0000000..5d51554
--- /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 0000000..f917082
--- /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 0000000..e187cbd
--- /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 0000000..b585ce4
--- /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 0000000..312c0d8
--- /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 0000000..2c3678d
--- /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 0000000..b585ce4
--- /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 0000000..5f5907f
--- /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 0000000..d3e8072
--- /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 0000000..c511041
--- /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"
+)