diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-08-07 13:20:48 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-08-07 13:23:21 +0200 |
commit | 879b8a1c054f8dee6f7672c56b7bcac4f8b548aa (patch) | |
tree | a6fecb99253c30a0e92f74394b0e6719552197ce /CMakeL10n.txt | |
parent | 4da21068f8654d2dc57cc89417b489fe7b9a8c1a (diff) | |
download | tdelibs-879b8a1c054f8dee6f7672c56b7bcac4f8b548aa.tar.gz tdelibs-879b8a1c054f8dee6f7672c56b7bcac4f8b548aa.zip |
Allow extraction of strings for rotations in tderandr
so that strings can be translated.
This resolves issue #96.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 99ddb86155eff1e7f5d90e63fd432cc6571317aa)
Diffstat (limited to 'CMakeL10n.txt')
-rw-r--r-- | CMakeL10n.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt index 1606387a8..c7670275d 100644 --- a/CMakeL10n.txt +++ b/CMakeL10n.txt @@ -40,6 +40,14 @@ if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/tqt3/src/xml/qxml.cpp ) endif( ) +##### prepare tderandr/libtderandr.h ############# + +# hide "#define" to allow strings to be extracted using xgettext +file( READ ${CMAKE_CURRENT_SOURCE_DIR}/tderandr/libtderandr.h _tderandr_h ) +string( REGEX REPLACE "\n(#define[^\n]*)(I18N_NOOP)" "\n/*\\1*/\\2" _tderandr_h ${_tderandr_h} ) +file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/tderandr/libtderandr.h.tde_l10n "${_tderandr_h}" ) + + ##### prepare tdeabc/addressee strings ########## # read file @@ -104,6 +112,7 @@ tde_l10n_create_template( "." "tdeabc/scripts/entrylist.tde_l10n" "tdecore/tde-config.cpp.cmake" + "tderandr/libtderandr.h.tde_l10n" "../dependencies/tqt3/src" "../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n" EXCLUDES @@ -121,8 +130,9 @@ tde_l10n_create_template( "^tdeio/" "^tdeioslave/" "^tdeprint/" - "^tdeui/colors/" + "^tderandr/libtderandr.h$" "^tdestyles/.*/config/" + "^tdeui/colors/" "/dependencies/tqt3/src/xml/qxml.cpp$" KEYWORDS tr tr:1,2 |