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
595ba279
Commit
595ba279
authored
Mar 27, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checks should ignore not transalated units as well
Fixes #466 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
6228a034
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
weblate/trans/checks/base.py
weblate/trans/checks/base.py
+2
-2
weblate/trans/checks/consistency.py
weblate/trans/checks/consistency.py
+1
-1
No files found.
weblate/trans/checks/base.py
View file @
595ba279
...
...
@@ -31,7 +31,7 @@ class Check(object):
description
=
''
target
=
False
source
=
False
ignore_
fuzzy
=
True
ignore_
untranslated
=
True
def
__init__
(
self
):
id_dash
=
self
.
check_id
.
replace
(
'_'
,
'-'
)
...
...
@@ -46,7 +46,7 @@ class Check(object):
if
self
.
ignore_string
in
unit
.
all_flags
:
return
False
# No checking of fuzzy units
if
self
.
ignore_
fuzzy
and
unit
.
fuzzy
:
if
self
.
ignore_
untranslated
and
not
unit
.
translated
:
return
False
# Check singular
if
self
.
check_single
(
sources
[
0
],
targets
[
0
],
unit
,
0
):
...
...
weblate/trans/checks/consistency.py
View file @
595ba279
...
...
@@ -50,7 +50,7 @@ class ConsistencyCheck(TargetCheck):
description
=
_
(
'This message has more than one translation in this project'
)
ignore_
fuzzy
=
False
ignore_
untranslated
=
False
def
check
(
self
,
sources
,
targets
,
unit
):
from
weblate.trans.models
import
Unit
...
...
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