mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Re-enable generation of POTFILES.in
With a hack to get the right line-endings on Windows.
This commit is contained in:
parent
0cdd776941
commit
1dea835c31
@ -116,14 +116,14 @@ FUNCTION(MAKE_GNUCASH_POTFILES)
|
||||
|
||||
# Write out the final list.
|
||||
# intltool-update insists that this file be in the source directory. :-(
|
||||
SET(POTFILES_IN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/POTFILES.in)
|
||||
SET(POTFILES_IN_PATH ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in)
|
||||
FILE(WRITE ${POTFILES_IN_PATH} "# This is a list of files which contain translatable strings.
|
||||
# This file was generated by ../make-gnucash-potfiles.
|
||||
")
|
||||
|
||||
FOREACH(path ${POTFILES})
|
||||
STRING(REGEX MATCH gschema.xml.in.in IS_GSCHEMA ${path})
|
||||
IF(IS_GSCHEMA AND NOT WIN32)
|
||||
IF(IS_GSCHEMA)
|
||||
# Force parse type for gsettings files
|
||||
SET(path "[type: gettext/gsettings]${path}")
|
||||
ENDIF()
|
||||
@ -136,7 +136,7 @@ gnucash/gnome/gnucash.desktop.in.in
|
||||
libgnucash/engine/qofbookslots.h
|
||||
doc/tip_of_the_day.list.in
|
||||
")
|
||||
|
||||
CONFIGURE_FILE(${POTFILES_IN_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/POTFILES.in NEWLINE_STYLE LF)
|
||||
ENDFUNCTION()
|
||||
|
||||
find_program(INTLTOOL_UPDATE NAMES intltool-update)
|
||||
@ -146,7 +146,7 @@ ENDIF ()
|
||||
|
||||
IF(BUILDING_FROM_VCS)
|
||||
|
||||
# MAKE_GNUCASH_POTFILES()
|
||||
MAKE_GNUCASH_POTFILES()
|
||||
|
||||
find_program(INTLTOOL_EXTRACT NAMES intltool-extract)
|
||||
find_program(XGETTEXT xgettext)
|
||||
|
Loading…
Reference in New Issue
Block a user