You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
895 B
CMake
42 lines
895 B
CMake
# CMakeLists.txt for i18n files
|
|
|
|
# List of files PO files
|
|
set(PO_FILES bs.po
|
|
de.po
|
|
es.po
|
|
fi.po
|
|
fr.po
|
|
gl.po
|
|
ms.po
|
|
pl.po
|
|
pt.po
|
|
ru.po
|
|
sk.po
|
|
sv.po
|
|
ug.po
|
|
uk.po
|
|
vi.po
|
|
)
|
|
|
|
update_translations(exiv2 ${PO_FILES})
|
|
add_translations(exiv2 ${PO_FILES})
|
|
|
|
##
|
|
# execute xgettext on every file
|
|
add_custom_target( pot-update
|
|
COMMAND xgettext -d ${PACKAGE_NAME}
|
|
-s -D ${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
-o ${PACKAGE_NAME}.pot
|
|
-p ${CMAKE_CURRENT_SOURCE_DIR}/
|
|
--from-code=UTF-8 --files-from=POTFILES.in
|
|
-j
|
|
--keyword=_
|
|
--package-name=${PACKAGE_NAME}
|
|
--package-version=${PACKAGE_VERSION}
|
|
--copyright-holder=${PACKAGE_COPYRIGHT}
|
|
--msgid-bugs-address=${PACKAGE_BUGREPORT}
|
|
)
|
|
|
|
# That's all Folks!
|
|
##
|