Handle also the parameter "variableunsafe" in lib/encodings to retrieve a translatable string.

This commit is contained in:
Kornel Benko 2013-01-31 11:54:32 +01:00
parent b8eb4bb99b
commit 572c81e185

View File

@ -572,7 +572,7 @@ def encodings_l10n(input_files, output, base):
output = open(output, 'w')
# assuming only one encodings file
# Encoding utf8 utf8 "Unicode (utf8)" UTF-8 variable inputenc
reg = re.compile('Encoding [\w-]+\s+[\w-]+\s+"([\w \-\(\)]+)"\s+[\w-]+\s+(fixed|variable)\s+\w+.*')
reg = re.compile('Encoding [\w-]+\s+[\w-]+\s+"([\w \-\(\)]+)"\s+[\w-]+\s+(fixed|variable|variableunsafe)\s+\w+.*')
input = open(input_files[0])
for lineno, line in enumerate(input.readlines()):
if not line.startswith('Encoding'):