Imported Upstream version 15.16.0
[platform/upstream/libzypp.git] / po / CMakeLists.txt
index 7fdc197..977fdc0 100644 (file)
@@ -1,4 +1,18 @@
+#
+# Creating the .pot file to be translated.
+#
+ADD_CUSTOM_TARGET( zypp.pot
+       COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/createPot ${LIBZYPP_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/zypp.pot
+)
+SET_DIRECTORY_PROPERTIES( PROPERTIES
+       ADDITIONAL_MAKE_CLEAN_FILES zypp.pot
+)
+
+#
+# Provides the 'translations' target that creates the .gmo files
+# out of the pofiles provided by zypp-po.tar.bz2.
+# Use USE_TRANSLATION_SET to use an alternate set provided by
+# ${USE_TRANSLATION_SET}-po.tar.bz2
+#
+GETTEXT_CREATE_TARBALL_TRANSLATIONS( "zypp" )
 
-FILE( GLOB LIBZYPP_PO_FILES ${CMAKE_SOURCE_DIR}/po/*.po )
-GETTEXT_CREATE_TRANSLATIONS( "${CMAKE_SOURCE_DIR}/po/zypp.pot" ${LIBZYPP_PO_FILES} )
-UPDATE_TRANSLATIONS()
\ No newline at end of file