You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
746 B
31 lines
746 B
set (ENABLE_NLS ON PARENT_SCOPE) |
|
|
|
include (Gettext) |
|
|
|
if (XGETTEXT_FOUND) |
|
|
|
set (potfile "${PROJECT_PACKAGE}.pot") |
|
|
|
gettext_create_pot ("${potfile}" |
|
PACKAGE ${PROJECT_PACKAGE} |
|
VERSION ${PROJECT_VERSION} |
|
OPTIONS --language=C++ -s --from-code=UTF-8 |
|
--keyword=_ --keyword=_F --keyword=N_ |
|
--keyword=C_:1c,2 --keyword=C_F:1c,2 --keyword=NC_:1c,2 |
|
|
|
SRCFILES |
|
"${PROJECT_SOURCE_DIR}/src/*.cpp" |
|
|
|
GLADEFILES |
|
"${PROJECT_SOURCE_DIR}/ui/*.glade" |
|
) |
|
|
|
gettext_create_translations ("${potfile}") |
|
|
|
else (XGETTEXT_FOUND) |
|
message (ERROR "Gettext not found!") |
|
endif (XGETTEXT_FOUND) |
|
|
|
set (GETTEXT_PACKAGE ${PROJECT_PACKAGE} PARENT_SCOPE) |
|
set (PACKAGE_LOCALE_DIR ${PACKAGE_DATA_DIR}/locale PARENT_SCOPE) |
|
|
|
|