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.
|
# Write out the final list.
|
||||||
# intltool-update insists that this file be in the source directory. :-(
|
# 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.
|
FILE(WRITE ${POTFILES_IN_PATH} "# This is a list of files which contain translatable strings.
|
||||||
# This file was generated by ../make-gnucash-potfiles.
|
# This file was generated by ../make-gnucash-potfiles.
|
||||||
")
|
")
|
||||||
|
|
||||||
FOREACH(path ${POTFILES})
|
FOREACH(path ${POTFILES})
|
||||||
STRING(REGEX MATCH gschema.xml.in.in IS_GSCHEMA ${path})
|
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
|
# Force parse type for gsettings files
|
||||||
SET(path "[type: gettext/gsettings]${path}")
|
SET(path "[type: gettext/gsettings]${path}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
@ -136,7 +136,7 @@ gnucash/gnome/gnucash.desktop.in.in
|
|||||||
libgnucash/engine/qofbookslots.h
|
libgnucash/engine/qofbookslots.h
|
||||||
doc/tip_of_the_day.list.in
|
doc/tip_of_the_day.list.in
|
||||||
")
|
")
|
||||||
|
CONFIGURE_FILE(${POTFILES_IN_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/POTFILES.in NEWLINE_STYLE LF)
|
||||||
ENDFUNCTION()
|
ENDFUNCTION()
|
||||||
|
|
||||||
find_program(INTLTOOL_UPDATE NAMES intltool-update)
|
find_program(INTLTOOL_UPDATE NAMES intltool-update)
|
||||||
@ -146,7 +146,7 @@ ENDIF ()
|
|||||||
|
|
||||||
IF(BUILDING_FROM_VCS)
|
IF(BUILDING_FROM_VCS)
|
||||||
|
|
||||||
# MAKE_GNUCASH_POTFILES()
|
MAKE_GNUCASH_POTFILES()
|
||||||
|
|
||||||
find_program(INTLTOOL_EXTRACT NAMES intltool-extract)
|
find_program(INTLTOOL_EXTRACT NAMES intltool-extract)
|
||||||
find_program(XGETTEXT xgettext)
|
find_program(XGETTEXT xgettext)
|
||||||
|
Loading…
Reference in New Issue
Block a user