Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9f81d57072
)
pull/20/head
parent
ea224b458d
commit
fda0f460a9
@ -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()
|
@ -0,0 +1,10 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "artsmodules"
|
||||
EXCLUDES
|
||||
"^builder/"
|
||||
"^tools/"
|
||||
)
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "artsbuilder" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "artscontrol" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "juk" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kaboodle" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kaudiocreator" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kmix" )
|
@ -0,0 +1,6 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "krec"
|
||||
SOURCES "." "tips"
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kscd" )
|
@ -0,0 +1,8 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "libkcddb"
|
||||
EXCLUDES "^kcmcddb/"
|
||||
)
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kcmcddb" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "noatun" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_au" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_avi" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_flac" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_m3u" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_mp3" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_mpc" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_mpeg" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_ogg" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_sid" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_theora" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "tdefile_wav" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,8 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template(
|
||||
CATALOG "tdeio_audiocd"
|
||||
EXCLUDES "/"
|
||||
)
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "kcmaudiocd" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "audiocd_encoder_lame" )
|
@ -0,0 +1,3 @@
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_create_template( "audiocd_encoder_vorbis" )
|
@ -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"
|
||||
)
|
Loading…
Reference in new issue