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
9e71a13c
Commit
9e71a13c
authored
Apr 17, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
71e146a9
7c91925c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
25 deletions
+12
-25
trans/models/translation.py
trans/models/translation.py
+7
-0
trans/views/basic.py
trans/views/basic.py
+2
-12
trans/views/changes.py
trans/views/changes.py
+1
-0
trans/views/charts.py
trans/views/charts.py
+0
-1
trans/views/edit.py
trans/views/edit.py
+2
-12
No files found.
trans/models/translation.py
View file @
9e71a13c
...
...
@@ -1203,3 +1203,10 @@ class Translation(models.Model, URLMixin):
for
rqtype
in
keys
:
cache_key
=
'counts-%s-%s-%s'
%
(
slug
,
code
,
rqtype
)
cache
.
delete
(
cache_key
)
def
get_gwargs
(
self
):
return
{
'lang'
:
self
.
language
.
code
,
'subproject'
:
self
.
subproject
.
slug
,
'project'
:
self
.
subproject
.
project
.
slug
}
trans/views/basic.py
View file @
9e71a13c
...
...
@@ -313,21 +313,11 @@ def show_translation(request, project, subproject, lang):
'search_form'
:
search_form
,
'review_form'
:
review_form
,
'last_changes'
:
last_changes
,
'last_changes_url'
:
urlencode
(
{
'lang'
:
obj
.
language
.
code
,
'subproject'
:
obj
.
subproject
.
slug
,
'project'
:
obj
.
subproject
.
project
.
slug
}
),
'last_changes_rss'
:
reverse
(
'rss-translation'
,
kwargs
=
{
'lang'
:
obj
.
language
.
code
,
'subproject'
:
obj
.
subproject
.
slug
,
'project'
:
obj
.
subproject
.
project
.
slug
}
kwargs
=
obj
.
get_kwargs
(),
),
'last_changes_url'
:
urlencode
(
obj
.
get_kwargs
()),
}))
...
...
trans/views/changes.py
View file @
9e71a13c
...
...
@@ -22,6 +22,7 @@ from django.views.generic.list import ListView
from
django.http
import
Http404
from
django.contrib
import
messages
from
django.contrib.auth.models
import
User
from
django.utils.translation
import
ugettext
as
_
from
trans.models.changes
import
Change
from
trans.views.helper
import
get_project_translation
from
lang.models
import
Language
...
...
trans/views/charts.py
View file @
9e71a13c
...
...
@@ -25,7 +25,6 @@ from trans.models import Change
from
lang.models
import
Language
from
trans.views.helper
import
get_project_translation
from
django.shortcuts
import
render_to_response
,
get_object_or_404
from
django.utils.translation
import
ugettext
as
_
from
django.template
import
RequestContext
from
django.http
import
HttpResponse
from
django.contrib.auth.models
import
User
...
...
trans/views/edit.py
View file @
9e71a13c
...
...
@@ -480,19 +480,9 @@ def translate(request, project, subproject, lang):
'last_changes'
:
unit
.
change_set
.
all
()[:
10
],
'last_changes_rss'
:
reverse
(
'rss-translation'
,
kwargs
=
{
'lang'
:
obj
.
language
.
code
,
'subproject'
:
obj
.
subproject
.
slug
,
'project'
:
obj
.
subproject
.
project
.
slug
}
),
'last_changes_url'
:
urlencode
(
{
'lang'
:
obj
.
language
.
code
,
'subproject'
:
obj
.
subproject
.
slug
,
'project'
:
obj
.
subproject
.
project
.
slug
}
kwargs
=
obj
.
get_kwargs
(),
),
'last_changes_url'
:
urlencode
(
obj
.
get_kwargs
()),
'total'
:
obj
.
unit_set
.
all
().
count
(),
'search_id'
:
search_result
[
'search_id'
],
'offset'
:
offset
,
...
...
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