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
716e9603
Commit
716e9603
authored
Jul 24, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuration and documentation for translation locking (issue #60)
parent
e4988cc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
docs/admin.rst
docs/admin.rst
+15
-0
docs/config.rst
docs/config.rst
+19
-0
weblate/settings.py
weblate/settings.py
+4
-0
No files found.
docs/admin.rst
View file @
716e9603
...
...
@@ -213,6 +213,21 @@ fulfilled:
* translation for a language is completed
* explicit commit is requested
.. _locking:
Translation locking
-------------------
To improve collaboration, it is good to prevent duplicate effort on
translation. To achieve this, translation can be locked for single translator.
This can be either done manually on translation page or is done automatically
when somebody starts to work on translation. The automatic locking needs to be
enabled using :setting:`AUTO_LOCK`.
The lock is valid for :setting:`LOCK_TIME` seconds and is automatically
extended on every translation made.
.. _custom-checks:
Customizing checks
...
...
docs/config.rst
View file @
716e9603
...
...
@@ -5,6 +5,25 @@ Configuration
All settings are stored in :file:`settings.py` (as usual for Django).
.. setting:: AUTO_LOCK
AUTO_LOCK
---------
Enables automatic locking of translation when somebody is working on it.
.. seealso:: :ref:`locking`
.. setting:: LOCK_TIME
LOCK_TIME
---------
Time in seconds for how long the translation will be locked for single
translator.
.. seealso:: :ref:`locking`
.. setting:: CHECK_LIST
CHECK_LIST
...
...
weblate/settings.py
View file @
716e9603
...
...
@@ -278,6 +278,10 @@ LAZY_COMMITS = True
# Offload indexing
OFFLOAD_INDEXING
=
False
# Translation locking
AUTO_LOCK
=
True
LOCK_TIME
=
15
*
60
# Where to put Whoosh index
WHOOSH_INDEX
=
os
.
path
.
join
(
WEB_ROOT
,
'whoosh-index'
)
...
...
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