diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-02 16:47:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-09 16:42:46 +0100 |
commit | a07b08c92d7a3ae296aa6c20ef3c19aeb6020fb3 (patch) | |
tree | 253e9aa525c0179a9739afc036f619d25cf6f023 /tdeui | |
parent | 9a06da7515ae1a6b3975e2ff001f2d5de6e04762 (diff) | |
download | tdelibs-a07b08c92d7a3ae296aa6c20ef3c19aeb6020fb3.tar.gz tdelibs-a07b08c92d7a3ae296aa6c20ef3c19aeb6020fb3.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 707d60c602a5bed23be354ea362ea7c24a87fb0b)
Diffstat (limited to 'tdeui')
-rw-r--r-- | tdeui/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | tdeui/colors/CMakeL10n.txt | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tdeui/CMakeL10n.txt b/tdeui/CMakeL10n.txt new file mode 100644 index 000000000..b585ce4af --- /dev/null +++ b/tdeui/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) 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 +) |