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
27929da1
Commit
27929da1
authored
Aug 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documet checks customization (issue #303).
parent
650a66e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
docs/admin.rst
docs/admin.rst
+20
-2
No files found.
docs/admin.rst
View file @
27929da1
...
...
@@ -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.
...
...
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