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
86dcfb04
Commit
86dcfb04
authored
Apr 25, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Foce all checks when unit goes untranslated
parent
30e8b839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
trans/models/unit.py
trans/models/unit.py
+3
-3
No files found.
trans/models/unit.py
View file @
86dcfb04
...
...
@@ -729,7 +729,7 @@ class Unit(models.Model):
# Update checks if content or fuzzy flag has changed
if
not
same_content
or
not
same_state
:
self
.
check
()
self
.
check
(
same_state
)
# Update fulltext index if content has changed or this is a new unit
if
force_insert
:
...
...
@@ -865,7 +865,7 @@ class Unit(models.Model):
language
=
None
,
)
def
check
(
self
):
def
check
(
self
,
same_state
=
True
):
'''
Updates checks for this unit.
'''
...
...
@@ -874,7 +874,7 @@ class Unit(models.Model):
checks_to_run
=
CHECKS
cleanup_checks
=
True
if
s
elf
.
fuzzy
or
not
self
.
translated
:
if
s
ame_state
and
(
self
.
fuzzy
or
not
self
.
translated
)
:
# Check whether there is any message with same source
project
=
self
.
translation
.
subproject
.
project
same_source
=
Unit
.
objects
.
filter
(
...
...
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