1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2025-03-11 04:58:21 +03:00

fixed toUDS.py

This commit is contained in:
Adolfo Gómez García 2020-02-28 09:27:22 +01:00
parent 8d46b7cdc9
commit a47dff8ff4

View File

@ -119,7 +119,7 @@ def extractTranslations():
getTranslations(locateTypeScriptFiles, typeScriptTranslationPattern, output, strip=False)
# Now extract translations from html
htmlTranslationPattern = re.compile(r'<uds-translate>(?P<data>.*?)</uds-translate>', re.MULTILINE | re.IGNORECASE | re.DOTALL)
htmlTranslationPattern = re.compile(r'<uds-translate[^>]*>(?P<data>.*?)</uds-translate>', re.MULTILINE | re.IGNORECASE | re.DOTALL)
print('// HTML', file=output)
getTranslations(locateHtmlFiles, htmlTranslationPattern, output)