diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index d2fec1ffca..aeb84a4ce3 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -31,7 +31,7 @@ endforeach (lingua) add_custom_target(po-gmo ALL DEPENDS ${CATALOGS}) set_local_dist(po_DIST_local ${po_SOURCES} CMakeLists.txt - POTFILES.in POTFILES.skip README gnucash-pot.cmake) + POTFILES.in POTFILES.ignore POTFILES.skip README gnucash-pot.cmake) set(po_DIST ${po_DIST_local} ${po_glossary_DIST} PARENT_SCOPE) function(read_file_removing_comments OUTPUT PATH) @@ -77,6 +77,12 @@ function(make_gnucash_potfiles) list(REMOVE_ITEM GOOD_FILES ${path}) endforeach () + # Remove the paths that we have marked as explicitly ignore + read_file_removing_comments(SKIP_LINES POTFILES.ignore) + foreach (path ${SKIP_LINES}) + list(REMOVE_ITEM GOOD_FILES ${path}) + endforeach () + # CMake sorting is different from UNIX sorting. Use perl to # sort POTFILES.in universally. This may no longer be needed diff --git a/po/POTFILES.ignore b/po/POTFILES.ignore new file mode 100644 index 0000000000..7ffc6081d1 --- /dev/null +++ b/po/POTFILES.ignore @@ -0,0 +1,4 @@ +# These are files that we don't want to translate, because they are +# in experimental status. +gnucash/gnome/assistant-stock-transaction.cpp +gnucash/gtkbuilder/assistant-stock-transaction.glade diff --git a/po/POTFILES.in b/po/POTFILES.in index 1fe34570f5..6c9be8e2c2 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -52,7 +52,6 @@ gnucash/gnome/assistant-acct-period.c gnucash/gnome/assistant-hierarchy.c gnucash/gnome/assistant-loan.cpp gnucash/gnome/assistant-stock-split.c -gnucash/gnome/assistant-stock-transaction.cpp gnucash/gnome/business-gnome-utils.c gnucash/gnome/business-options-gnome.c gnucash/gnome/business-urls.c @@ -244,7 +243,6 @@ gnucash/gtkbuilder/assistant-hierarchy.glade gnucash/gtkbuilder/assistant-loan.glade gnucash/gtkbuilder/assistant-qif-import.glade gnucash/gtkbuilder/assistant-stock-split.glade -gnucash/gtkbuilder/assistant-stock-transaction.glade gnucash/gtkbuilder/assistant-xml-encoding.glade gnucash/gtkbuilder/business-options-gnome.glade gnucash/gtkbuilder/business-prefs.glade