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
2596b95d
Commit
2596b95d
authored
Mar 27, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d64031cb
4ff6a0d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
trans/models.py
trans/models.py
+3
-1
No files found.
trans/models.py
View file @
2596b95d
...
...
@@ -579,7 +579,8 @@ class Unit(models.Model):
fuzzy
=
unit
.
isfuzzy
()
translated
=
unit
.
istranslated
()
comment
=
unit
.
getnotes
()
same_content
=
(
target
==
self
.
target
)
# Update checks on fuzzy update or on content change
same_content
=
(
target
==
self
.
target
and
fuzzy
==
self
.
fuzzy
)
if
not
force
and
location
==
self
.
location
and
flags
==
self
.
flags
and
same_content
and
fuzzy
==
self
.
fuzzy
and
translated
==
self
.
translated
and
comment
==
self
.
comment
and
pos
==
self
.
position
:
return
self
.
position
=
pos
...
...
@@ -692,6 +693,7 @@ class Unit(models.Model):
def
check
(
self
):
if
self
.
fuzzy
:
self
.
checks
().
delete
()
return
src
=
self
.
get_source_plurals
()
tgt
=
self
.
get_target_plurals
()
...
...
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