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
fbe1b6b4
Commit
fbe1b6b4
authored
Jan 17, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Choose better variable names
parent
7d849ed8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
weblate/trans/management/commands/checkgit.py
weblate/trans/management/commands/checkgit.py
+4
-4
weblate/trans/management/commands/commitgit.py
weblate/trans/management/commands/commitgit.py
+2
-2
weblate/trans/models.py
weblate/trans/models.py
+11
-3
No files found.
weblate/trans/management/commands/checkgit.py
View file @
fbe1b6b4
...
...
@@ -28,7 +28,7 @@ class Command(WeblateCommand):
'''
Shows status of git repository in given projects.
'''
for
s
in
self
.
get_subprojects
(
*
args
,
**
options
):
r
=
s
.
get_repo
()
print
'%s:'
%
s
print
r
.
git
.
status
()
for
s
ubproject
in
self
.
get_subprojects
(
*
args
,
**
options
):
r
epo
=
subproject
.
get_repo
()
print
'%s:'
%
s
ubproject
print
r
epo
.
git
.
status
()
weblate/trans/management/commands/commitgit.py
View file @
fbe1b6b4
...
...
@@ -28,5 +28,5 @@ class Command(WeblateCommand):
'''
Commits pending translations in given projects.
'''
for
s
in
self
.
get_subprojects
(
*
args
,
**
options
):
s
.
commit_pending
()
for
s
ubproject
in
self
.
get_subprojects
(
*
args
,
**
options
):
s
ubproject
.
commit_pending
()
weblate/trans/models.py
View file @
fbe1b6b4
...
...
@@ -2328,13 +2328,21 @@ class Translation(models.Model):
subproject__project
=
self
.
subproject
.
project
)
# Filter out those who don't want automatic update, but keep ourselves
translations
=
translations
.
filter
(
Q
(
pk
=
self
.
pk
)
|
Q
(
subproject__allow_translation_propagation
=
True
))
translations
=
translations
.
filter
(
Q
(
pk
=
self
.
pk
)
|
Q
(
subproject__allow_translation_propagation
=
True
)
)
ret
=
False
# Do actual merge
for
s
in
translations
:
ret
|=
s
.
merge_store
(
author
,
store
,
overwrite
,
mergefuzzy
,
merge_header
)
for
translation
in
translations
:
ret
|=
translation
.
merge_store
(
author
,
store
,
overwrite
,
mergefuzzy
,
merge_header
)
return
ret
...
...
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