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
3dbe4303
Commit
3dbe4303
authored
Nov 01, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter change objects by translation to get translation wide changes as well
parent
cf2bf2f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
weblate/trans/views.py
weblate/trans/views.py
+3
-3
No files found.
weblate/trans/views.py
View file @
3dbe4303
...
...
@@ -377,7 +377,7 @@ def show_engage(request, project):
def
show_project
(
request
,
project
):
obj
=
get_object_or_404
(
Project
,
slug
=
project
)
dicts
=
Dictionary
.
objects
.
filter
(
project
=
obj
).
values_list
(
'language'
,
flat
=
True
).
distinct
()
last_changes
=
Change
.
objects
.
filter
(
unit__
translation__subproject__project
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
last_changes
=
Change
.
objects
.
filter
(
translation__subproject__project
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
return
render_to_response
(
'project.html'
,
RequestContext
(
request
,
{
'object'
:
obj
,
...
...
@@ -387,7 +387,7 @@ def show_project(request, project):
def
show_subproject
(
request
,
project
,
subproject
):
obj
=
get_object_or_404
(
SubProject
,
slug
=
subproject
,
project__slug
=
project
)
last_changes
=
Change
.
objects
.
filter
(
unit__
translation__subproject
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
last_changes
=
Change
.
objects
.
filter
(
translation__subproject
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
if
obj
.
locked
:
messages
.
error
(
request
,
_
(
'This translation is currently locked for updates!'
))
...
...
@@ -505,7 +505,7 @@ def show_source(request, project, subproject):
def
show_translation
(
request
,
project
,
subproject
,
lang
):
obj
=
get_object_or_404
(
Translation
,
language__code
=
lang
,
subproject__slug
=
subproject
,
subproject__project__slug
=
project
,
enabled
=
True
)
last_changes
=
Change
.
objects
.
filter
(
unit__
translation
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
last_changes
=
Change
.
objects
.
filter
(
translation
=
obj
).
order_by
(
'-timestamp'
)[:
10
]
# Check locks
obj
.
is_locked
(
request
)
...
...
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