From 54f78b635828029b8375b5d549344f923dcf76f5 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 3 Oct 2012 12:33:32 +0000 Subject: [PATCH] update_po allow comment in the list of files to translate svn: r20502 --- po/gramps | 2 ++ po/update_po.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/po/gramps b/po/gramps index 689ad5eb5..5dc601e6f 100644 --- a/po/gramps +++ b/po/gramps @@ -1,3 +1,4 @@ +#list of all files with to translate strings ../gramps/grampsapp.py ../gramps/cli/arghandler.py ../gramps/cli/argparser.py @@ -659,6 +660,7 @@ ../gramps/plugins/tool/leak.glade ../gramps/plugins/tool/finddupes.glade ../gramps/plugins/tool/mergecitations.glade +# TEST ../gramps/plugins/tool/ownereditor.glade ../gramps/plugins/tool/patchnames.glade ../gramps/plugins/tool/phpgedview.glade diff --git a/po/update_po.py b/po/update_po.py index ab45314de..b2dfec5d3 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -284,7 +284,7 @@ def listing(name, extensionlist): """ f = open('gramps') - files = [file.strip() for file in f] + files = [file.strip() for file in f if file and not file[0]=='#'] f.close() temp = open(name, 'w')