Improve the db-seed-i18n.py -script to actually grab all strings. user/paxed/db-seed-i18n-py
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Thu, 21 Mar 2013 10:01:24 +0000 (12:01 +0200)
committerPasi Kallinen <pasi.kallinen@pttk.fi>
Thu, 6 Jun 2013 17:26:49 +0000 (20:26 +0300)
commit6f3bdd1818affd179b8a1ccd05cb541e2cfcce4e
tree4bcb50b3bdfa5dad0d5cf4bccb30a725ac0f6cdb
parent3b828afbe3dab8f764a7378b65ade1e190be5d56
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>
build/i18n/scripts/db-seed-i18n.py
build/i18n/tests/data/sql2pot.pot
build/i18n/tests/data/sqlsource.sql