diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-08-24 19:40:32 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-08-24 19:40:32 +0000 |
commit | eb3b97ad63abcc1be8c8dfd9b5f98e7e2eeb3cdf (patch) | |
tree | 5d22effa37b5faefd71f446e2f3820ffd3311c8c /po/CMakeLists.txt | |
parent | 28382e2155b417594b0d3f874a33492a58a481cb (diff) | |
download | navit-eb3b97ad63abcc1be8c8dfd9b5f98e7e2eeb3cdf.tar.gz |
Add:core:Update gettext db with translations pulled from Android string resources.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5598 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 66e507b37..c5b5f92bf 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -23,6 +23,7 @@ set(POTFILES ${PROJECT_SOURCE_DIR}/navit/gui/internal/gui_internal_widget.c ${PROJECT_SOURCE_DIR}/navit/osd/core/osd_core.c ${CMAKE_CURRENT_BINARY_DIR}/navit_shipped.c + ${CMAKE_CURRENT_BINARY_DIR}/strings_xml.c ) if (XGETTEXT_GLADE) list(APPEND POTFILES ${CMAKE_CURRENT_BINARY_DIR}/navit_shipped.glade) @@ -44,6 +45,16 @@ ADD_CUSTOM_COMMAND( -P ${PROJECT_SOURCE_DIR}/cmake/navit_xml_parser_glade.cmake ) +# Trick gettext to get translateable strings out of android strings.xml + +ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/strings_xml.c + DEPENDS ${PROJECT_SOURCE_DIR}/navit/android/res/values/strings.xml + COMMAND ${CMAKE_COMMAND} -D SRC=${PROJECT_SOURCE_DIR}/navit/android/res/values/strings.xml -D DST=${CMAKE_CURRENT_BINARY_DIR}/strings_xml.c + -P ${PROJECT_SOURCE_DIR}/cmake/strings_xml_parser.cmake +) + + ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/navit.pot DEPENDS ${POTFILES} |