Skip to content

Commit 945e711

Browse files
committed
Remove reverence translation stub overriding, as we do not use reverence translation engine anymore
1 parent 9f89329 commit 945e711

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

util/translator.py

-7
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,6 @@ def _translate_map(self, obj, language, spec, stats):
8989
self.__increment_stats(stats, text_fname, 0)
9090
orig_text = obj.get(text_fname, '')
9191
msgid = obj[msgid_fname]
92-
# I didn't find a way to disable reverence localization engine
93-
# altogether, thus 'original' text isn't always 'raw' value
94-
# fetched from client - it might be translation. When reverence
95-
# fails to translate message - it writes some dumb-looking stub
96-
# there, and here we get rid of it
97-
if orig_text is not None and re.match('<NO TEXT, messageID=[0-9]+, param={.*}>', orig_text):
98-
orig_text = ''
9992
# Following are priorities when translating:
10093
# 1) Translation to target language
10194
# 2) Translation to english

0 commit comments

Comments
 (0)