Commit 43c6c89d authored by Michal Čihař's avatar Michal Čihař

Zero width space is valid for Khmer

parent f4e81c82
......@@ -43,6 +43,8 @@ class RemoveZeroSpace(AutoFix):
name = _('Zero-width space')
def fix_single_target(self, target, source, unit):
if unit.translation.language.code.split('_')[0] == 'km':
return target, False
if u'\u200b' not in source and u'\u200b' in target:
return target.replace(u'\u200b', ''), True
return target, False
......@@ -307,4 +307,6 @@ class ZeroWidthSpaceCheck(TargetCheck):
description = _('Translation contains extra zero-width space character')
def check_single(self, source, target, unit, cache_slot):
if self.is_language(unit, ('km', )):
return False
return (u'\u200b' in target) != (u'\u200b' in source)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment