Commit e184d708 authored by Philipp Wolfer's avatar Philipp Wolfer

AngularJS interpolation check must be explicitly enabled.

parent 870bc48f
......@@ -130,6 +130,7 @@ CHECK_LIST = getvalue('CHECK_LIST', (
'weblate.trans.checks.format.PHPFormatCheck',
'weblate.trans.checks.format.CFormatCheck',
'weblate.trans.checks.format.JavascriptFormatCheck',
'weblate.trans.checks.angularjs.AngularJSInterpolationCheck',
'weblate.trans.checks.consistency.PluralsCheck',
'weblate.trans.checks.consistency.ConsistencyCheck',
'weblate.trans.checks.chars.NewlineCountingCheck',
......
......@@ -41,12 +41,17 @@ class AngularJSInterpolationCheck(TargetCheck):
'''
Check for AngularJS interpolation string
'''
check_id = 'angularjs'
name = _('Mismatched AngularJS interpolation strings')
check_id = 'angularjs_interpolate'
name = _('AngularJS interpolation string')
description = _('AngularJS interpolation strings do not match source')
severity = 'danger'
flag = 'angularjs-interpolate'
def check_single(self, source, target, unit, cache_slot):
# Verify unit is properly flagged
if self.flag not in unit.all_flags:
return False
# Try geting source parsing from cache
src_match = self.get_cache(unit, cache_slot)
......
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