Improve the db-seed-i18n.py -script to actually grab all strings.
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Thu, 21 Mar 2013 10:01:24 +0000 (12:01 +0200)
committerDan Scott <dscott@laurentian.ca>
Thu, 6 Jun 2013 17:43:35 +0000 (13:43 -0400)
commitf5727683ea8cabd74bb2ccf8e6e41429ef1b9889
tree7b153179e621753858740abce452f8e251bf2e0b
parentd51fa3aa9886981ab7f6c5d10bc18e17f425aa5f
Improve the db-seed-i18n.py -script to actually grab all strings.

Previously the script could only handle oils_i18n_gettext -markers
if the marker and it's parameters were all on one line.

Now it also correctly parses the postgres E'' escaped strings, and
removes sql string concatenations.

Also adds test cases.

Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
build/i18n/scripts/db-seed-i18n.py
build/i18n/tests/data/sql2pot.pot
build/i18n/tests/data/sqlsource.sql