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
c4db9048
Commit
c4db9048
authored
Jan 15, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved suggestion notifications
parent
9a362daa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
weblate/accounts/models.py
weblate/accounts/models.py
+2
-1
weblate/html/mail/new_suggestion.txt
weblate/html/mail/new_suggestion.txt
+2
-2
weblate/trans/views.py
weblate/trans/views.py
+1
-1
No files found.
weblate/accounts/models.py
View file @
c4db9048
...
...
@@ -234,7 +234,7 @@ class Profile(models.Model):
translation
,
)
def
notify_new_suggestion
(
self
,
translation
,
suggestion
):
def
notify_new_suggestion
(
self
,
translation
,
suggestion
,
unit
):
'''
Sends notification on new suggestion.
'''
...
...
@@ -243,6 +243,7 @@ class Profile(models.Model):
translation
,
{
'suggestion'
:
suggestion
,
'unit'
:
unit
,
}
)
...
...
weblate/html/mail/new_suggestion.txt
View file @
c4db9048
...
...
@@ -5,9 +5,9 @@ there is new suggestion evaluate on {{ translation }} at {{ site_title }}.
{% trans "Source string:" %}
{{
suggestion.get_
source }}
{{
unit.
source }}
{% trans "
Transla
tion:" %}
{% trans "
Sugges
tion:" %}
{{ suggestion.target }}
...
...
weblate/trans/views.py
View file @
c4db9048
...
...
@@ -1263,7 +1263,7 @@ def translate(request, project, subproject, lang):
# Notify subscribed users
subscriptions
=
Profile
.
objects
.
subscribed_new_suggestion
(
obj
.
subproject
.
project
,
obj
.
language
,
request
.
user
)
for
subscription
in
subscriptions
:
subscription
.
notify_new_suggestion
(
obj
,
sug
)
subscription
.
notify_new_suggestion
(
obj
,
sug
,
unit
)
# Update suggestion stats
if
profile
is
not
None
:
profile
.
suggested
+=
1
...
...
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