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
d66ac441
Commit
d66ac441
authored
Jan 21, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid passing request to auto translation
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
0e8a9fca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
weblate/trans/autotranslate.py
weblate/trans/autotranslate.py
+4
-4
weblate/trans/views/edit.py
weblate/trans/views/edit.py
+1
-1
No files found.
weblate/trans/autotranslate.py
View file @
d66ac441
...
...
@@ -22,7 +22,7 @@ from weblate.trans.models import Unit, Change, SubProject
from
django.core.exceptions
import
PermissionDenied
def
auto_translate
(
request
,
translation
,
source
,
inconsistent
,
overwrite
):
def
auto_translate
(
user
,
translation
,
source
,
inconsistent
,
overwrite
):
change
=
None
updated
=
0
...
...
@@ -69,11 +69,11 @@ def auto_translate(request, translation, source, inconsistent, overwrite):
change
=
Change
.
objects
.
create
(
action
=
Change
.
ACTION_AUTO
,
translation
=
unit
.
translation
,
user
=
request
.
user
,
author
=
request
.
user
user
=
user
,
author
=
user
)
# Save unit to backend
unit
.
save_backend
(
request
,
False
,
False
)
unit
.
save_backend
(
None
,
False
,
False
,
user
=
user
)
updated
+=
1
return
updated
weblate/trans/views/edit.py
View file @
d66ac441
...
...
@@ -615,7 +615,7 @@ def auto_translation(request, project, subproject, lang):
return
redirect
(
translation
)
updated
=
auto_translate
(
request
,
request
.
user
,
translation
,
autoform
.
cleaned_data
[
'subproject'
],
autoform
.
cleaned_data
[
'inconsistent'
],
...
...
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