Imported Upstream version 15.16.0
[platform/upstream/libzypp.git] / po / CMakeLists.txt
index 98696cd..977fdc0 100644 (file)
@@ -1,10 +1,18 @@
-
-FILE( GLOB LIBZYPP_PO_FILES ${LIBZYPP_SOURCE_DIR}/po/*.po )
-GETTEXT_CREATE_TRANSLATIONS( "zypp" ${LIBZYPP_PO_FILES} )
-
+#
+# 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" )
+