pology.lang.sr.checks

Package pology :: Package lang :: Package sr :: Module checks |

# Module checks

Various checks for translations into Serbian.

Author: Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>

License: GPLv3

Functions
naked_latin(msgstr, msg, cat) Report spans of Latin letters outside of sanctioned contexts [type V3C hook]. |
naked_latin_origui(msgstr, msg, cat) Like `naked_latin`, but allowing original UI references which are supposed to be automatically resolved [type V3C hook]. |
naked_latin_se(msgstr, msg, cat) Side-effect version of `naked_latin`, issuing warnings to stderr [type S3C hook]. |
naked_latin_origui_se(msgstr, msg, cat) Side-effect version of `naked_latin_origui`, issuing warnings to stderr [type S3C hook]. |

Variables
| __package__ = ``'``pology.lang.sr``'``

Function Details

### naked_latin(msgstr, msg, cat) |
Report spans of Latin letters outside of sanctioned contexts [type V3C hook]. Latin segments are allowed within: some XML-like tags, e.g. `tt`, `code`, `email`, `envar`, etc. XML-like entities, e.g. `&foo;` or `&#x00a0;` format directives starting with %-character command line options, e.g. `-o` or `--foo-bar` hexadecimal number starting with `0x` extension filters, e.g. `"*.png|ПНГ слике"` alternative directives {~@/.../.../}, e.g. `~@/Делфин/Dolphin/` links in wiki markup, e.g. `"...на [http://foo.org страни Фуа]"` templates in wiki markup, e.g. `"{{note|Обавезно проверите...}}"` explicit wrapping `~!/.../`, e.g. `"...наредбом ~!/grep/..."` Returns: annotated spans

### naked_latin_origui(msgstr, msg, cat) |
Like `naked_latin`, but allowing original UI references which are supposed to be automatically resolved [type V3C hook]. Original UI references are given: within XML-like tags: `gui*` (`guilabel`, `guimenu`, etc.), `interface`; e.g. `"...кликните на <guibutton>Scramble Reactor</guibutton> да..."` manually wrapped by `~%/.../`, e.g. `"...кликните на ~%/Scramble Reactor/ да..."` Returns: annotated spans

### naked_latin_se(msgstr, msg, cat) |
Side-effect version of `naked_latin`, issuing warnings to stderr [type S3C hook]. Returns: number of errors

### naked_latin_origui_se(msgstr, msg, cat) |
Side-effect version of `naked_latin_origui`, issuing warnings to stderr [type S3C hook]. Returns: number of errors