Commit 27929da1 authored by Michal Čihař's avatar Michal Čihař

Documet checks customization (issue #303).

parent 650a66e4
......@@ -138,6 +138,8 @@ Suggestion voting
Enable voting for suggestions, see :ref:`voting`.
Autoaccept suggestions
Automatically accept voted suggestions, see :ref:`voting`.
Quality checks flags
Additional flags to pass to quality checks, see :ref:`custom-checks`.
.. seealso:: :ref:`faq-vcs`, :ref:`processing`
......@@ -758,6 +760,22 @@ For example following automatic fixup would replace every occurence of string
Customizing checks
------------------
Fine tuning existing checks
+++++++++++++++++++++++++++
In :ref:`subproject` setup, you can fine tune some of the checks, here is
current list of flags accepted:
``rst-text``
Treat text as RST document, affects :ref:`check-same`.
``python-format``, ``c-format``, ``php-format``, ``python-brace-format``
Treats all string like format strings, affects :ref:`check-python-format`,
:ref:`check-c-format`, :ref:`check-php-format`,
:ref:`check-python-brace-format`, :ref:`check-same`.
Writing own checks
++++++++++++++++++
Weblate comes with wide range of quality checks (see :ref:`checks`), though
they might not 100% cover all you want to check. The list of performed checks
can be adjusted using :setting:`CHECK_LIST` and you can also add custom checks.
......@@ -767,7 +785,7 @@ one if you want to deal with plurals in your code, the latter one does this for
you). You will find below some examples.
Checking translation text does not contain "foo"
++++++++++++++++++++++++++++++++++++++++++++++++
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is pretty simple check which just checks whether translation does not
contain string "foo".
......@@ -776,7 +794,7 @@ contain string "foo".
:language: python
Checking Czech translation text plurals differ
++++++++++++++++++++++++++++++++++++++++++++++
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check using language information to verify that two plural forms in Czech
language are not same.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment