summaryrefslogtreecommitdiffstats
path: root/tdeui/colors/CMakeL10n.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/colors/CMakeL10n.txt')
-rw-r--r--tdeui/colors/CMakeL10n.txt22
1 files changed, 22 insertions, 0 deletions
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
+)