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
f799de52
Commit
f799de52
authored
Aug 04, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add generic documentation to hook scripts
Issue #790 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
0cedd67b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
docs/admin/config.rst
docs/admin/config.rst
+6
-0
docs/admin/continuous.rst
docs/admin/continuous.rst
+21
-1
No files found.
docs/admin/config.rst
View file @
f799de52
...
...
@@ -425,6 +425,8 @@ POST_UPDATE_SCRIPTS
List of scripts which are allowed as post update scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: PRE_COMMIT_SCRIPTS
PRE_COMMIT_SCRIPTS
...
...
@@ -468,6 +470,8 @@ POST_COMMIT_SCRIPTS
List of scripts which are allowed as post commit scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: POST_PUSH_SCRIPTS
POST_PUSH_SCRIPTS
...
...
@@ -478,6 +482,8 @@ POST_PUSH_SCRIPTS
List of scripts which are allowed as post push scripts. The script needs to be
later enabled in the :ref:`component`.
.. seealso:: :ref:`processing`
.. setting:: REGISTRATION_CAPTCHA
REGISTRATION_CAPTCHA
...
...
docs/admin/continuous.rst
View file @
f799de52
...
...
@@ -212,8 +212,28 @@ delay, see :djadmin:`commit_pending`.
.. _processing:
Processing repository with scripts
----------------------------------
You can customize way how Weblate manipulates with repository by set of
scripts. These include :guilabel:`Post-update script`, :guilabel:`Pre-commit
script`, :guilabel:`Post-commit script` and :guilabel:`Post-push script` and
are briefly described in :ref:`component`.
Their naming quite clearly tells when given script is executed. The commit
related scripts always get one parameter with full path to the translation file
which has been changed.
.. seealso::
:setting:`POST_UPDATE_SCRIPTS`,
:setting:`PRE_COMMIT_SCRIPTS`,
:setting:`POST_COMMIT_SCRIPTS`,
:setting:`POST_PUSH_SCRIPTS`,
:ref:`component`
Pre commit processing of translations
-------------------------------------
+++++++++++++++++++++++++++++++++++++
In many cases you might want to automatically do some changes to translation
before it is committed to the repository. The pre commit script is exactly the
...
...
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