Improve transaltion string regex.

This commit is contained in:
Michael Gorven 2009-11-06 11:29:38 +02:00
parent b6289db8a8
commit f76516f2a0
1 changed files with 1 additions and 1 deletions

2
openlp-get-strings.py Normal file → Executable file
View File

@ -42,7 +42,7 @@ ts_message = u""" <message>
<translation type="unfinished"></translation>
</message>
"""
find_trUtf8 = re.compile(r"trUtf8\(u'([\.:;\\&\w]+)'\)", re.UNICODE)
find_trUtf8 = re.compile(r"trUtf8\(u['\"]([^)]+)['\"]\)", re.UNICODE)
strings = {}
def parse_file(filename):