[chrome-gnome-shell/feature/gettext: 2/4] gettext: add cmake generate-pot target



commit 461b296fd63f7f77f8f331ff5c7574cf9fd5b642
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Thu May 5 00:13:14 2016 +0300

    gettext: add cmake generate-pot target

 CMakeLists.txt |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97732ef..76b6325 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,3 +132,14 @@ if(BUILD_SOURCE_PACKAGE)
                        WORKING_DIRECTORY ${DEB_DIR}/${ARCHIVE_NAME})
        endif(BUILD_DEB)
 endif(BUILD_SOURCE_PACKAGE)
+
+if(DEFINED GETTEXT_REPORT_EMAIL)
+       add_custom_target(generate-pot
+               COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/contrib/chrome-messages2po.py
+                               --email ${GETTEXT_REPORT_EMAIL}
+                               --reference-lang en
+                               --write-pot
+                               ${CMAKE_CURRENT_SOURCE_DIR}/contrib/chrome-web-store/
+                               ${CMAKE_CURRENT_SOURCE_DIR}/extension/_locales/
+                               ${CMAKE_CURRENT_SOURCE_DIR}/po/)
+endif(DEFINED GETTEXT_REPORT_EMAIL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]