Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
e184d708
Commit
e184d708
authored
Jul 14, 2015
by
Philipp Wolfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AngularJS interpolation check must be explicitly enabled.
parent
870bc48f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
weblate/appsettings.py
weblate/appsettings.py
+1
-0
weblate/trans/checks/angularjs.py
weblate/trans/checks/angularjs.py
+7
-2
No files found.
weblate/appsettings.py
View file @
e184d708
...
...
@@ -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'
,
...
...
weblate/trans/checks/angularjs.py
View file @
e184d708
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment