From e532d9345d1568c348ad45ffd7beb8e8a79361b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 2 Dec 2018 16:47:00 +0100 Subject: Add CMakeL10n rules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdeui/colors/CMakeL10n.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tdeui/colors/CMakeL10n.txt (limited to 'tdeui/colors/CMakeL10n.txt') diff --git a/tdeui/colors/CMakeL10n.txt b/tdeui/colors/CMakeL10n.txt new file mode 100644 index 000000000..cc3505603 --- /dev/null +++ b/tdeui/colors/CMakeL10n.txt @@ -0,0 +1,22 @@ +##### prepare rgb.txt as C source ############### + +file( READ "${CMAKE_CURRENT_SOURCE_DIR}/rgb.txt" _colorsRC ) +string( REGEX REPLACE + "([ \t]*([0-9]+[ \t]+)([0-9]+[ \t]+)([0-9]+[ \t]+))([^ \t\n]+)(\n|$)" + "\\1/* xgettext: no-c-format */i18n(\"color\", \"\\5\");\\6" + _colorsRC ${_colorsRC} +) +string( REGEX REPLACE + "[^\n]*gr[ae]y[^\n]*(\n|$)" + "\\1" + _colorsRC ${_colorsRC} +) +file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/rgb.txt.tde_l10n" "${_colorsRC}" ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "tdelibs_colors" + SOURCES rgb.txt.tde_l10n +) -- cgit v1.2.3