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
9b50d9a1
Commit
9b50d9a1
authored
Dec 17, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to define default value for translation propagation
Fixes #940 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1cc2f7d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
docs/admin/config.rst
docs/admin/config.rst
+12
-0
weblate/appsettings.py
weblate/appsettings.py
+3
-0
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+2
-1
No files found.
docs/admin/config.rst
View file @
9b50d9a1
...
...
@@ -173,6 +173,18 @@ Default commiter name when creating translation component (see
.. seealso:: :setting:`DEFAULT_COMMITER_EMAIL`, :ref:`component`
.. setting:: DEFAULT_TRANSLATION_PROPAGATION
DEFAULT_TRANSLATION_PROPAGATION
-------------------------------
.. versionadded:: 2.5
Default setting for translation propagation (see :ref:`component`),
defaults to ``True``.
.. seealso:: :ref:`component`
.. setting:: ENABLE_AVATARS
ENABLE_AVATARS
...
...
weblate/appsettings.py
View file @
9b50d9a1
...
...
@@ -232,6 +232,9 @@ DEFAULT_COMMITER_EMAIL = getvalue(
DEFAULT_COMMITER_NAME
=
getvalue
(
'DEFAULT_COMMITER_NAME'
,
'Weblate'
)
DEFAULT_TRANSLATION_PROPAGATION
=
getvalue
(
'DEFAULT_TRANSLATION_PROPAGATION'
,
True
)
# Obsolete configs, needed for data migration
GIT_ROOT
=
getvalue
(
'GIT_ROOT'
,
os
.
path
.
join
(
BASE_DIR
,
'repos'
))
...
...
weblate/trans/models/subproject.py
View file @
9b50d9a1
...
...
@@ -58,6 +58,7 @@ from weblate.appsettings import (
POST_ADD_SCRIPT_CHOICES
,
HIDE_REPO_CREDENTIALS
,
DEFAULT_COMMITER_EMAIL
,
DEFAULT_COMMITER_NAME
,
DEFAULT_TRANSLATION_PROPAGATION
,
)
from
weblate.accounts.models
import
notify_merge_failure
,
get_author_name
from
weblate.trans.models.changes
import
Change
...
...
@@ -290,7 +291,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
)
allow_translation_propagation
=
models
.
BooleanField
(
verbose_name
=
ugettext_lazy
(
'Allow translation propagation'
),
default
=
True
,
default
=
DEFAULT_TRANSLATION_PROPAGATION
,
db_index
=
True
,
help_text
=
ugettext_lazy
(
'Whether translation updates in other components '
...
...
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