# Seiceálacha agus fixups

<a id="custom-autofix"></a>

## Ceartúcháin uathoibríocha saincheaptha

Is féidir leat do shocrú uathoibríoch féin a chur i bhfeidhm chomh maith leis na cinn caighdeánacha agus iad a chur san áireamh in [`AUTOFIX_LIST`](https://docs.weblate.org/ga/latest/admin/config.md#std-setting-AUTOFIX_LIST).

Tá na réitigh uathoibríoch cumhachtach, ach is féidir damáiste a dhéanamh freisin; bí cúramach agus ceann á scríobh agat.

Mar shampla, chuirfeadh an ceartú uathoibríoch seo a leanas in ionad gach teaghrán `foo` in aistriúchán le `bar`:

```python
from __future__ import annotations

from typing import TYPE_CHECKING

from weblate.trans.autofixes.base import AutoFix

if TYPE_CHECKING:
    from weblate.trans.models import Unit


class ReplaceFooWithBar(AutoFix):
    """Replace foo with bar."""

    # Might be localized using gettext_lazy
    name = "Foobar"

    def fix_single_target(
        self, target: str, source: str, unit: Unit
    ) -> tuple[str, bool]:
        if "foo" in target:
            return target.replace("foo", "bar"), True
        return target, False
```

Chun seiceálacha saincheaptha a shuiteáil, cuir conair láncháilithe ar fáil don rang Python sa [`AUTOFIX_LIST`](https://docs.weblate.org/ga/latest/admin/config.md#std-setting-AUTOFIX_LIST), féach [Custom quality checks, add-ons, translation services and auto-fixes](https://docs.weblate.org/ga/latest/admin/customize.md#custom-check-modules).

<a id="custom-checks"></a>

## Saincheapadh iompar ag baint úsáide as bratacha

Is féidir leat iompar Weblate a mhionchoigeartú trí úsáid a bhaint as bratacha. Tugann na bratacha aiseolas amhairc do na haistritheoirí agus cabhraíonn siad leo a gcuid aistriúcháin a fheabhsú. Déantar na bratacha a chumasc ó na foinsí seo a leanas:

* Bratacha breise teaghrán foinse:
  * Déanann [Eolas breise ar na teaghráin foinse](https://docs.weblate.org/ga/latest/admin/translating.md#additional) cur síos ar eagarthóireacht láimhe.
  * Is féidir [Bulc eagarthóireacht](https://docs.weblate.org/ga/latest/user/translating.md#bulk-edit) a úsáid chun bratacha a chur i bhfeidhm i mbaisc.
  * Is féidir le breiseán [Bulc eagarthóireacht](https://docs.weblate.org/ga/latest/admin/addons.md#addon-weblate-flags-bulk) bratacha a chur i bhfeidhm go huathoibríoch.
* Bratacha in aghaidh an teaghrán a bhaintear as an bhformáid comhaid, féach [Formáidí comhaid logánaithe](https://docs.weblate.org/ga/latest/formats.md#formats).
* Bratacha aistriúcháin (bratach `read-only` amháin faoi láthair le haghaidh teaghrán foinse dátheangach nó nuair a bhíonn eagarthóireacht teimpléid aonteangach múchta).
* Bratacha ar leith formáid comhaid.
* [Cumraíocht na Comhpháirte](https://docs.weblate.org/ga/latest/admin/projects.md#component) ([Bratacha aistriúcháin](https://docs.weblate.org/ga/latest/admin/projects.md#component-check-flags)).
* [Cumraíocht tionscadail](https://docs.weblate.org/ga/latest/admin/projects.md#project) ([Bratacha aistriúcháin](https://docs.weblate.org/ga/latest/admin/projects.md#project-check-flags)).

Tá na bratacha scartha le camóga; má tá paraiméadair acu, tá siad scartha le colon. Is féidir leat comharthaí athfhriotail a úsáid chun spásanna bána nó carachtair speisialta a chur san áireamh sa teaghrán. Mar shampla:

```text
placeholders:"special:value":"other value", regex:.*
```

Glactar le comharthaí athfhriotail singil agus dúbailte, tá carachtair speisialta á n-éalú le cúlslais:

```text
placeholders:"quoted \"string\"":'single \'quoted\''
```

```text
placeholders:r"^#*"
```

Chun a fhíorú nach n-athraíonn aistritheoirí ceannteideal doiciméid Markdown: Cuirfear tús le seiceáil theipthe má aistrítear an teaghrán `### Index` mar `# Indice`.

```text
placeholders:r"\]\([^h].*?\)"
```

Chun a chinntiú nach bhfuil naisc inmheánacha á n-aistriú (i.e. [tástáil](../seiceálacha) ní dhéantar [tástáil](../seiceanna).

The flags defined on a higher level can be discarded using the
`discard:NAME` syntax. For example, if a component is configured to
`safe-html`, you can add `discard:safe-html` to the string flags to skip it
for this particular string. Translation flags cannot discard an explicit
`read-only` flag set on the source string.

Seo liosta de na bratacha a nglactar leo faoi láthair:

`read-only`
: Tá an teaghrán léite amháin agus níor cheart é a chur in eagar i Weblate, féach [Teaghráin inléite amháin](https://docs.weblate.org/ga/latest/formats.md#read-only-strings).

`terminology`
: Úsáidtear in [Gluais](https://docs.weblate.org/ga/latest/user/glossary.md#glossary). Cóipeálann sé an sreang isteach i ngach teanga gloiseach ionas gur féidir é a úsáid go comhsheasmhach i ngach aistriúchán Úsáideach freisin i dteannta le `read-only`, mar shampla in ainmneacha táirgí.

`priority:N`
: Tosaíocht na sreinge. Cuirtear teaghráin ardtosaíochta i láthair ar dtús le haistriú. Is é 100 an tosaíocht réamhshocraithe, dá airde tosaíocht atá ag teaghrán, is ea is luaithe a thairgtear í le haistriú.

`xml-text`
: Déileáil le téacs mar dhoiciméad XML, bíonn tionchar aige [Comhréir XML](https://docs.weblate.org/ga/latest/user/checks.md#check-xml-invalid) agus [XML marcáil](https://docs.weblate.org/ga/latest/user/checks.md#check-xml-tags).

`font-family:NAME`
: Sainmhínigh cló-teaghlach le haghaidh seiceálacha rindreála, féach [Clónna a bhainistiú](#fonts).

`font-weight:WEIGHT`
: Sainmhínigh meáchan cló le haghaidh seiceálacha rindreála, féach [Clónna a bhainistiú](#fonts).

`font-size:SIZE`
: Sainmhínigh clómhéid le haghaidh seiceálacha rindreála, féach [Clónna a bhainistiú](#fonts).

`font-spacing:SPACING`
: Sainmhínigh spásáil litreacha le haghaidh seiceálacha rindreála, féach [Clónna a bhainistiú](#fonts).

`font-monospace`
: Display the string in the translation editor using a monospace font.
  Unlike the `font-family`/`font-size`/`font-weight`/`font-spacing`
  flags, this does not affect rendering checks and never loads an uploaded
  font; it only switches the editor to the browser's built-in monospace
  font stack.

`icu-flags:FLAGS`
: Sainmhínigh bratacha chun iompar an seiceála cáilíochta [Formáid Teachtaireacht ICU](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format) a shaincheapadh.

`icu-tag-prefix:PREFIX`
: Socraigh réimír riachtanach le haghaidh clibeanna XML don seiceáil cáilíochta [Formáid Teachtaireacht ICU](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format).

`placeholders:NAME:NAME2:...`
: Táthar ag súil le teaghráin sealbhóirí san aistriúchán, féach [Áitsealbhóirí](https://docs.weblate.org/ga/latest/user/checks.md#check-placeholders).

`replacements:FROM:TO:FROM2:TO2...`
: Athsholáthairtí le déanamh agus paraiméadair an téacs mar thoradh á seiceáil (mar shampla i [Uasmhéid an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-size) nó [Fad uasta an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-length)). Is é an gnáthchás úsáide chuige seo ná cuir in áit a leathnú chun a chinntiú go luíonn an téacs fiú le luachanna fada, mar shampla: `athsholáthair:%s:"John Doe"`.

`variants:SOURCE`
: Marcáil an teaghrán seo mar leagan de shreang le foinse meaitseála. Féach [Leaganacha teaghrán](https://docs.weblate.org/ga/latest/devel/translations.md#variants).

`regex:REGEX`
: Slonn rialta chun an t-aistriúchán a mheaitseáil, féach [Léiriú rialta](https://docs.weblate.org/ga/latest/user/checks.md#check-regex).

`discard:NAME`
: Bratach a chur i leataobh ar leibhéal níos airde.

`forbidden`
: Léiríonn sé aistriúchán toirmiscthe i ngluaiseacht, féach [Aistriúcháin toirmiscthe](https://docs.weblate.org/ga/latest/user/glossary.md#glossary-forbidden).

`strict-same`
: Lig duit [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same) liosta dubh inmheánach a sheachaint.

`strict-format`
: Déan seiceálacha formáide a chur i bhfeidhm ag baint úsáide as formáid fiú i gcás foirmeacha iolra a bhfuil luach amháin acu, féach [Teaghráin formáidithe](https://docs.weblate.org/ga/latest/user/checks.md#check-formats).

`case-insensitive`
: Coigeartaigh iompar seiceálacha le bheith neamh-íogair. Faoi láthair bíonn tionchar ag seiceáil cáilíochta [Áitsealbhóirí](https://docs.weblate.org/ga/latest/user/checks.md#check-placeholders) amháin.

<!-- AUTOGENERATED START: check-flags-enables -->
<!-- This section is automatically generated by `./manage.py list_checks`. Do not edit manually. -->

`accelerator`
: Sonraigh an marcóir luasaire poncaíochta aonair, mar shampla `accelerator:&`, `accelerator:_`, nó `accelerator:~`. Cumasaíonn sé seo an tseiceáil cáilíochta [Eochair luasghéaraithe](https://docs.weblate.org/ga/latest/user/checks.md#check-accelerator).

`asciidoc-text`
: Déan téacs a chóireáil mar dhoiciméad AsciiDoc, bíonn tionchar aige ar [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same). Cumasaíonn sé an tseiceáil cáilíochta [Marcáil AsciiDoc](https://docs.weblate.org/ga/latest/user/checks.md#check-asciidoc-markup).

`bbcode-text`
: Déan téacs a láimhseáil mar dhoiciméad Cód Clár Fógraí (BBCode), bíonn tionchar aige ar [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same). Cumasaíonn sé seiceáil cáilíochta [Marcáil BBCode](https://docs.weblate.org/ga/latest/user/checks.md#check-bbcode).

`check-glossary`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Ní leanann gluais](https://docs.weblate.org/ga/latest/user/checks.md#check-check-glossary).

`fluent-parts`
: Cumasaíonn sé seo an seiceáil cáilíochta [Páirteanna líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-parts).

`fluent-references`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Tagairtí líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-references).

`fluent-target-inner-html`
: Cumasaíonn sé seo an tseiceáil cáilíochta [HTML inmheánach aistriúchán líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-target-inner-html).

`fluent-target-syntax`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Comhréir aistriúcháin líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-target-syntax).

`angularjs-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Teaghrán idirshuíomh AngularJS](https://docs.weblate.org/ga/latest/user/checks.md#check-angularjs-format).

`automattic-components-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáidiú comhpháirteanna uathoibríocha](https://docs.weblate.org/ga/latest/user/checks.md#check-automattic-components-format).

`c-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid C](https://docs.weblate.org/ga/latest/user/checks.md#check-c-format).

`c-sharp-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid C#](https://docs.weblate.org/ga/latest/user/checks.md#check-c-sharp-format).

`csharp-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid C#](https://docs.weblate.org/ga/latest/user/checks.md#check-c-sharp-format).

`es-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Teimpléad ECMAScript litreach](https://docs.weblate.org/ga/latest/user/checks.md#check-es-format).

`i18next-interpolation`
: Cumasaíonn sé seo an tseiceáil cáilíochta [i18 chéad idirshuíomh eile](https://docs.weblate.org/ga/latest/user/checks.md#check-i18next-interpolation).

`icu-message-format`
: Cumasaíonn sé seo na seiceálacha cáilíochta [Formáid Teachtaireacht ICU](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format) agus [Comhréir ICU MessageFormat](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format-syntax).

`java-printf-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-printf-format).

`java-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Teachtaireacht Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-format).

`auto-java-messageformat`
: Déan téacs a láimhseáil mar Java MessageFormat coinníollach, ag cumasú [Formáid Teachtaireacht Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-format) ach amháin nuair a bhíonn áitchoinneálaithe Java MessageFormat sa fhoinse. Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid Teachtaireacht Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-format).

`javascript-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid javascript](https://docs.weblate.org/ga/latest/user/checks.md#check-javascript-format).

`laravel-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid Laravel](https://docs.weblate.org/ga/latest/user/checks.md#check-laravel-format).

`lua-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Lua](https://docs.weblate.org/ga/latest/user/checks.md#check-lua-format).

`object-pascal-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid Pascal saor in aisce,](https://docs.weblate.org/ga/latest/user/checks.md#check-object-pascal-format).

`objc-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Objective-C](https://docs.weblate.org/ga/latest/user/checks.md#check-objc-format).

`percent-placeholders`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Céatadán sealbhóirí áitribh](https://docs.weblate.org/ga/latest/user/checks.md#check-percent-placeholders).

`perl-brace-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid perl brace](https://docs.weblate.org/ga/latest/user/checks.md#check-perl-brace-format).

`perl-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid Perl](https://docs.weblate.org/ga/latest/user/checks.md#check-perl-format).

`php-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid PHP](https://docs.weblate.org/ga/latest/user/checks.md#check-php-format).

`python-brace-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid brace python](https://docs.weblate.org/ga/latest/user/checks.md#check-python-brace-format).

`python-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Python](https://docs.weblate.org/ga/latest/user/checks.md#check-python-format).

`qt-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Qt](https://docs.weblate.org/ga/latest/user/checks.md#check-qt-format).

`qt-plural-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Qt formáid iolra](https://docs.weblate.org/ga/latest/user/checks.md#check-qt-plural-format).

`ruby-format`
: Cumasaíonn sé seo an seiceáil cáilíochta [Formáid Ruby](https://docs.weblate.org/ga/latest/user/checks.md#check-ruby-format).

`scheme-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáid scéime](https://docs.weblate.org/ga/latest/user/checks.md#check-scheme-format).

`vue-format`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Formáidiú Vue I18n](https://docs.weblate.org/ga/latest/user/checks.md#check-vue-format).

`rst-text`
: Déan téacs a láimhseáil mar dhoiciméad reStructuredText, bíonn tionchar aige ar [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same). Cumasaíonn sé na seiceálacha cáilíochta [Téacs Athstruchtúrtha Neamhréireach](https://docs.weblate.org/ga/latest/user/checks.md#check-rst-references) agus [Earráid chomhréire reStructuredText](https://docs.weblate.org/ga/latest/user/checks.md#check-rst-syntax).

`md-text`
: Déan téacs a láimhseáil mar dhoiciméad Markdown, agus cuir aibhsiú comhréir Markdown ar fáil ar an limistéar téacs aistriúcháin. Cumasaíonn sé seo na seiceálacha cáilíochta [naisc Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-link), [Tagairtí Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-reflink) agus [Comhréir Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-syntax).

`max-length`
: Cumasaíonn sé seo an seiceáil cáilíochta [Fad uasta an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-length).

`max-lines`
: Cumasaíonn sé seo an seiceáil cáilíochta [Uasmhéid na línte](https://docs.weblate.org/ga/latest/user/checks.md#check-max-lines).

`max-size`
: Cumasaíonn sé seo an seiceáil cáilíochta [Uasmhéid an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-size).

`placeholders`
: Cumasaíonn sé seo an seiceáil cáilíochta [Áitsealbhóirí](https://docs.weblate.org/ga/latest/user/checks.md#check-placeholders).

`regex`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Léiriú rialta](https://docs.weblate.org/ga/latest/user/checks.md#check-regex).

`safe-mdx`
: Cumasaíonn sé seo an seiceáil cáilíochta [MDX Sábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-mdx).

`safe-html`
: Cumasaíonn sé seo an seiceáil cáilíochta [HTML neamhshábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-html).

`auto-safe-html`
: Déan téacs a láimhseáil mar HTML coinníollach, ag cumasú [HTML neamhshábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-html) ach amháin i gcás téacs simplí nó teaghráin foinse ina bhfuil marcáil HTML caighdeánach nó eilimintí saincheaptha bailí. Tá sé seo úsáideach le haghaidh malairtí Markdown leathnaithe amhail MDX, áit nach mbeadh comhréir lúibíní uillinne HTML. Cumasaíonn sé seo an tseiceáil cáilíochta [HTML neamhshábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-html).

`url`
: Níor cheart go mbeadh ach URL sa teaghrán. Cumasaíonn sé seo an seiceáil cáilíochta [URL](https://docs.weblate.org/ga/latest/user/checks.md#check-url).

`fluent-source-inner-html`
: Cumasaíonn sé seo an tseiceáil cáilíochta [HTML inmheánach foinse líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-source-inner-html).

`fluent-source-syntax`
: Cumasaíonn sé seo an tseiceáil cáilíochta [Comhréir foinse líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-source-syntax).

<!-- AUTOGENERATED END: check-flags-enables -->

`ignore-all-checks`
: Déan neamhaird de gach seiceáil cáilíochta.

<!-- AUTOGENERATED START: check-flags-ignores -->
<!-- This section is automatically generated by `./manage.py list_checks`. Do not edit manually. -->

`ignore-accelerator`
: Seachain an seiceáil cáilíochta [Eochair luasghéaraithe](https://docs.weblate.org/ga/latest/user/checks.md#check-accelerator).

`ignore-ai-accuracy`
: Skip the [AI: Cruinneas](https://docs.weblate.org/ga/latest/user/checks.md#check-ai-accuracy) quality check.

`ignore-ai-fluency`
: Skip the [AI: Líofacht](https://docs.weblate.org/ga/latest/user/checks.md#check-ai-fluency) quality check.

`ignore-ai-formatting`
: Skip the [AI: Formáidiú](https://docs.weblate.org/ga/latest/user/checks.md#check-ai-formatting) quality check.

`ignore-ai-style`
: Skip the [AI: Stíl](https://docs.weblate.org/ga/latest/user/checks.md#check-ai-style) quality check.

`ignore-ai-terminology`
: Skip the [AI: Tearminéolaíocht](https://docs.weblate.org/ga/latest/user/checks.md#check-ai-terminology) quality check.

`ignore-asciidoc-markup`
: Seachain an seiceáil cáilíochta [Marcáil AsciiDoc](https://docs.weblate.org/ga/latest/user/checks.md#check-asciidoc-markup).

`ignore-bbcode`
: Scipeáil an seiceáil cáilíochta [Marcáil BBCode](https://docs.weblate.org/ga/latest/user/checks.md#check-bbcode).

`ignore-xml-chars-around-tags`
: Seachain an seiceáil cáilíochta [Carachtair timpeall clibeanna XML](https://docs.weblate.org/ga/latest/user/checks.md#check-xml-chars-around-tags).

`ignore-duplicate`
: Scipeáil an seiceáil cáilíochta [Focail dúblacha as a chéile](https://docs.weblate.org/ga/latest/user/checks.md#check-duplicate).

`ignore-check-glossary`
: Scipeáil an seiceáil cáilíochta [Ní leanann gluais](https://docs.weblate.org/ga/latest/user/checks.md#check-check-glossary).

`ignore-double-space`
: Scipeáil an seiceáil cáilíochta [Spás dúbailte](https://docs.weblate.org/ga/latest/user/checks.md#check-double-space).

`ignore-fluent-parts`
: Scipeáil an seiceáil cáilíochta [Páirteanna líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-parts).

`ignore-fluent-references`
: Scipeáil an seiceáil cáilíochta [Tagairtí líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-references).

`ignore-fluent-target-inner-html`
: Scipeáil an seiceáil cáilíochta [HTML inmheánach aistriúchán líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-target-inner-html).

`ignore-fluent-target-syntax`
: Scipeáil an seiceáil cáilíochta [Comhréir aistriúcháin líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-target-syntax).

`ignore-angularjs-format`
: Scipeáil ar an seiceáil cáilíochta [Teaghrán idirshuíomh AngularJS](https://docs.weblate.org/ga/latest/user/checks.md#check-angularjs-format).

`ignore-automattic-components-format`
: Seachain an seiceáil cáilíochta [Formáidiú comhpháirteanna uathoibríocha](https://docs.weblate.org/ga/latest/user/checks.md#check-automattic-components-format).

`ignore-c-format`
: Scipeáil an seiceáil cáilíochta [Formáid C](https://docs.weblate.org/ga/latest/user/checks.md#check-c-format).

`ignore-c-sharp-format`
: Scipeáil an seiceáil cáilíochta [Formáid C#](https://docs.weblate.org/ga/latest/user/checks.md#check-c-sharp-format).

`ignore-es-format`
: Scipeáil an seiceáil cáilíochta [Teimpléad ECMAScript litreach](https://docs.weblate.org/ga/latest/user/checks.md#check-es-format).

`ignore-i18next-interpolation`
: Scipeáil an seiceáil cáilíochta [i18 chéad idirshuíomh eile](https://docs.weblate.org/ga/latest/user/checks.md#check-i18next-interpolation).

`ignore-icu-message-format`
: Scipeáil ar an seiceáil cáilíochta [Formáid Teachtaireacht ICU](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format).

`ignore-java-printf-format`
: Scipeáil ar an seiceáil cáilíochta [Formáid Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-printf-format).

`ignore-java-format`
: Scipeáil an seiceáil cáilíochta [Formáid Teachtaireacht Java](https://docs.weblate.org/ga/latest/user/checks.md#check-java-format).

`ignore-javascript-format`
: Scipeáil an seiceáil cáilíochta [Formáid javascript](https://docs.weblate.org/ga/latest/user/checks.md#check-javascript-format).

`ignore-laravel-format`
: Seachain an seiceáil cáilíochta [Formáid Laravel](https://docs.weblate.org/ga/latest/user/checks.md#check-laravel-format).

`ignore-lua-format`
: Scipeáil an seiceáil cáilíochta [Formáid Lua](https://docs.weblate.org/ga/latest/user/checks.md#check-lua-format).

`ignore-object-pascal-format`
: Scipeáil an seiceáil cáilíochta [Formáid Pascal saor in aisce,](https://docs.weblate.org/ga/latest/user/checks.md#check-object-pascal-format).

`ignore-objc-format`
: Seachain an seiceáil cáilíochta [Formáid Objective-C](https://docs.weblate.org/ga/latest/user/checks.md#check-objc-format).

`ignore-percent-placeholders`
: Scipeáil an seiceáil cáilíochta [Céatadán sealbhóirí áitribh](https://docs.weblate.org/ga/latest/user/checks.md#check-percent-placeholders).

`ignore-perl-brace-format`
: Scipeáil ar an seiceáil cáilíochta [Formáid perl brace](https://docs.weblate.org/ga/latest/user/checks.md#check-perl-brace-format).

`ignore-perl-format`
: Scipeáil an seiceáil cáilíochta [Formáid Perl](https://docs.weblate.org/ga/latest/user/checks.md#check-perl-format).

`ignore-php-format`
: Scipeáil ar an [Formáid PHP](https://docs.weblate.org/ga/latest/user/checks.md#check-php-format) seiceáil cáilíochta.

`ignore-python-brace-format`
: Scipeáil an seiceáil cáilíochta [Formáid brace python](https://docs.weblate.org/ga/latest/user/checks.md#check-python-brace-format).

`ignore-python-format`
: Scipeáil an seiceáil cáilíochta [Formáid Python](https://docs.weblate.org/ga/latest/user/checks.md#check-python-format).

`ignore-qt-format`
: Scipeáil an seiceáil cáilíochta [Formáid Qt](https://docs.weblate.org/ga/latest/user/checks.md#check-qt-format).

`ignore-qt-plural-format`
: Scipeáil ar an seiceáil cáilíochta [Qt formáid iolra](https://docs.weblate.org/ga/latest/user/checks.md#check-qt-plural-format).

`ignore-ruby-format`
: Scipeáil an seiceáil cáilíochta [Formáid Ruby](https://docs.weblate.org/ga/latest/user/checks.md#check-ruby-format).

`ignore-scheme-format`
: Scipeáil an seiceáil cáilíochta [Formáid scéime](https://docs.weblate.org/ga/latest/user/checks.md#check-scheme-format).

`ignore-vue-format`
: Scipeáil an seiceáil cáilíochta [Formáidiú Vue I18n](https://docs.weblate.org/ga/latest/user/checks.md#check-vue-format).

`ignore-translated`
: Scipeáil an seiceáil cáilíochta [Aistríodh](https://docs.weblate.org/ga/latest/user/checks.md#check-translated).

`ignore-inconsistent`
: Scipeáil ar an [Neamh-chomhsheasmhach](https://docs.weblate.org/ga/latest/user/checks.md#check-inconsistent) seiceáil cáilíochta.

`ignore-rst-references`
: Scipeáil an seiceáil cáilíochta [Téacs Athstruchtúrtha Neamhréireach](https://docs.weblate.org/ga/latest/user/checks.md#check-rst-references).

`ignore-kashida`
: Scipeáil an seiceáil cáilíochta [Litir Kashida a úsáideadh](https://docs.weblate.org/ga/latest/user/checks.md#check-kashida).

`ignore-md-link`
: Scipeáil ar an [naisc Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-link) seiceáil cáilíochta.

`ignore-md-reflink`
: Scipeáil ar an [Tagairtí Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-reflink) seiceáil cáilíochta.

`ignore-md-syntax`
: Scipeáil ar an [Comhréir Markdown](https://docs.weblate.org/ga/latest/user/checks.md#check-md-syntax) seiceáil cáilíochta.

`ignore-max-length`
: Scipeáil an seiceáil cáilíochta [Fad uasta an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-length).

`ignore-max-lines`
: Seachain an seiceáil cáilíochta [Uasmhéid na línte](https://docs.weblate.org/ga/latest/user/checks.md#check-max-lines).

`ignore-max-size`
: Scipeáil an seiceáil cáilíochta [Uasmhéid an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-size).

`ignore-escaped-newline`
: Scipeáil an seiceáil cáilíochta [Mímheaitseáilte \\n](https://docs.weblate.org/ga/latest/user/checks.md#check-escaped-newline).

`ignore-end-colon`
: Scipeáil an seiceáil cáilíochta [colon mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-end-colon).

`ignore-end-ellipsis`
: Scipeáil an seiceáil cáilíochta [Éipideas mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-end-ellipsis).

`ignore-end-exclamation`
: Scipeáil an seiceáil cáilíochta [Comhartha exclamation mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-end-exclamation).

`ignore-end-stop`
: Scipeáil an seiceáil cáilíochta [lánstad mí-oiriúnach](https://docs.weblate.org/ga/latest/user/checks.md#check-end-stop).

`ignore-end-interrobang`
: Scipeáil ar an [Interrobang mícheart](https://docs.weblate.org/ga/latest/user/checks.md#check-end-interrobang) seiceáil cáilíochta.

`ignore-end-question`
: Scipeáil ar an [Comhartha ceiste mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-end-question) seiceáil cáilíochta.

`ignore-end-semicolon`
: Scipeáil an seiceáil cáilíochta [Leathstad mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-end-semicolon).

`ignore-newline-count`
: Scipeáil an seiceáil cáilíochta [Briseadh líne mímheaitseála](https://docs.weblate.org/ga/latest/user/checks.md#check-newline-count).

`ignore-plurals`
: Scipeáil an seiceáil cáilíochta [Iolra ar iarraidh](https://docs.weblate.org/ga/latest/user/checks.md#check-plurals).

`ignore-multiple-capital`
: Seachain an seiceáil cáilíochta [Il-chathracha](https://docs.weblate.org/ga/latest/user/checks.md#check-multiple-capital).

`ignore-kabyle-characters`
: Seachain an seiceáil cáilíochta [Carachtair neamhchaighdeánacha i gCabile](https://docs.weblate.org/ga/latest/user/checks.md#check-kabyle-characters).

`ignore-placeholders`
: Scipeáil an seiceáil cáilíochta [Áitsealbhóirí](https://docs.weblate.org/ga/latest/user/checks.md#check-placeholders).

`ignore-prohibited-initial-character`
: Scipeáil an seiceáil cáilíochta [Toirmiscthe carachtar tosaigh](https://docs.weblate.org/ga/latest/user/checks.md#check-prohibited-initial-character).

`ignore-punctuation-spacing`
: Scipeáil an seiceáil cáilíochta [Spásáil poncaíochta](https://docs.weblate.org/ga/latest/user/checks.md#check-punctuation-spacing).

`ignore-regex`
: Scipeáil an seiceáil cáilíochta [Léiriú rialta](https://docs.weblate.org/ga/latest/user/checks.md#check-regex).

`ignore-rst-syntax`
: Scipeáil ar an [Earráid chomhréire reStructuredText](https://docs.weblate.org/ga/latest/user/checks.md#check-rst-syntax) seiceáil cáilíochta.

`ignore-reused`
: Scipeáil an seiceáil cáilíochta [Aistriúchán athúsáidte](https://docs.weblate.org/ga/latest/user/checks.md#check-reused).

`ignore-safe-mdx`
: Seachain an seiceáil cáilíochta [MDX Sábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-mdx).

`ignore-same-plurals`
: Scipeáil an seiceáil cáilíochta [Na foirmeacha iolra céanna](https://docs.weblate.org/ga/latest/user/checks.md#check-same-plurals).

`ignore-begin-newline`
: Scipeáil an seiceáil cáilíochta [Líne nua a thosú](https://docs.weblate.org/ga/latest/user/checks.md#check-begin-newline).

`ignore-begin-space`
: Scipeáil an seiceáil cáilíochta [Spásanna tosaithe](https://docs.weblate.org/ga/latest/user/checks.md#check-begin-space).

`ignore-end-newline`
: Scipeáil an seiceáil cáilíochta [Líne nua á lorg](https://docs.weblate.org/ga/latest/user/checks.md#check-end-newline).

`ignore-end-space`
: Scipeáil an seiceáil cáilíochta [Spás leantóir](https://docs.weblate.org/ga/latest/user/checks.md#check-end-space).

`ignore-same`
: Scipeáil an seiceáil cáilíochta [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same).

`ignore-safe-html`
: Léim ar an [HTML neamhshábháilte](https://docs.weblate.org/ga/latest/user/checks.md#check-safe-html) seiceáil cáilíochta.

`ignore-url`
: Scipeáil an seiceáil cáilíochta [URL](https://docs.weblate.org/ga/latest/user/checks.md#check-url).

`ignore-xml-tags`
: Scipeáil an seiceáil cáilíochta [XML marcáil](https://docs.weblate.org/ga/latest/user/checks.md#check-xml-tags).

`ignore-xml-invalid`
: Scipeáil an seiceáil cáilíochta [Comhréir XML](https://docs.weblate.org/ga/latest/user/checks.md#check-xml-invalid).

`ignore-zero-width-space`
: Scipeáil an seiceáil cáilíochta [Spás nialasach](https://docs.weblate.org/ga/latest/user/checks.md#check-zero-width-space).

`ignore-ellipsis`
: Scipeáil an seiceáil cáilíochta [Éilips](https://docs.weblate.org/ga/latest/user/checks.md#check-ellipsis).

`ignore-fluent-source-inner-html`
: Scipeáil an seiceáil cáilíochta [HTML inmheánach foinse líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-source-inner-html).

`ignore-fluent-source-syntax`
: Scipeáil an seiceáil cáilíochta [Comhréir foinse líofa](https://docs.weblate.org/ga/latest/user/checks.md#check-fluent-source-syntax).

`ignore-icu-message-format`
: Scipeáil ar an [Comhréir ICU MessageFormat](https://docs.weblate.org/ga/latest/user/checks.md#check-icu-message-format-syntax) seiceáil cáilíochta.

`ignore-long-untranslated`
: Scipeáil an seiceáil cáilíochta [Fada gan aistriúchán](https://docs.weblate.org/ga/latest/user/checks.md#check-long-untranslated).

`ignore-multiple-failures`
: Scaipeáil an seiceáil cáilíochta [Seiceálacha teip iolracha](https://docs.weblate.org/ga/latest/user/checks.md#check-multiple-failures).

`ignore-unnamed-format`
: Scipeáil an seiceáil cáilíochta [Athróga iolracha gan ainm](https://docs.weblate.org/ga/latest/user/checks.md#check-unnamed-format).

`ignore-source-max-length`
: Seachain an seiceáil cáilíochta [Fad teaghrán foinse](https://docs.weblate.org/ga/latest/user/checks.md#check-source-max-length).

`ignore-optional-plural`
: Scipeáil an seiceáil cáilíochta [Neamhiolra](https://docs.weblate.org/ga/latest/user/checks.md#check-optional-plural).

<!-- AUTOGENERATED END: check-flags-ignores -->

#### NOTE
De ghnáth ainmnítear an riail `ignore-*` d'aon seiceáil, ag baint úsáide as a aitheantóir, ionas gur féidir leat é seo a úsáid fiú le haghaidh do sheiceálacha saincheaptha.

Tuigtear na bratacha seo i socruithe [Cumraíocht na Comhpháirte](https://docs.weblate.org/ga/latest/admin/projects.md#component), de réir socruithe teaghrán foinse agus sa chomhad aistriúcháin féin (mar shampla i gettext GNU).

<a id="location-based-flags"></a>

## Bratacha bunaithe ar shuíomh

Cuirtear roinnt bratacha le teaghráin de réir réamhshocraithe, bunaithe ar a suíomhanna. Ciallaíonn sé seo go gcuirfear seiceálacha áirithe ar siúl go huathoibríoch ag brath ar an áit a n-úsáidtear an teaghrán.

* `rst-text`: Cuirtear an bhratach seo go huathoibríoch le teaghráin i gcomhaid reStructuredText, más é `.rst` an síneadh suímh.
* `md-text`: Cuirtear an bhratach seo go huathoibríoch le teaghráin i gcomhaid Markdown agus MDX, más é `.md`, `.markdown`, nó `.mdx` an síneadh suímh.

<a id="enforcing-checks"></a>

## Seiceálacha a fhorfheidhmiú

Ní féidir na seiceálacha forfheidhmithe a dhíbhe agus an teaghrán a mharcáil mar Needs editing (féach [Stáit aistriúcháin](https://docs.weblate.org/ga/latest/workflows.md#states)). Cuireann sé seo cosc ar aistritheoirí seiceálacha den sórt sin a cheilt.

#### HINT
Ní chuireann forfheidhmiú seiceála ar siúl é ar siúl go huathoibríoch. Caithfear roinnt seiceálacha a chasadh air tríd an mbratach chomhfhreagrach a chur leis na bratacha teaghráin nó comhpháirte.

Is fearr é seo a úsáid le seiceálacha a d’fhéadfadh fadhbanna tromchúiseacha a chruthú nuair a úsáidtear iad cosúil le seiceálacha le haghaidh [Teaghráin formáidithe](https://docs.weblate.org/ga/latest/user/checks.md#check-formats). Ní mholtar seiceálacha stíl cosúil le [Aistriúchán gan athrú](https://docs.weblate.org/ga/latest/user/checks.md#check-same) a úsáid mar is cur chuige réasúnta é a dhíbhe uaireanta sna seiceálacha seo.

Is féidir an [Scagaire cáilíochta aistriúcháin](https://docs.weblate.org/ga/latest/admin/projects.md#project-commit-policy) a úsáid ansin chun teaghráin a bhfuil eagarthóireacht le déanamh orthu a eisiamh ó bheith á gcur i bhfeidhm sa rialú leagain.

#### SEE ALSO
* [Stáit aistriúcháin](https://docs.weblate.org/ga/latest/workflows.md#states)
* [Seiceálacha forfheidhmithe](https://docs.weblate.org/ga/latest/admin/projects.md#component-enforced-checks)
* [Scagaire cáilíochta aistriúcháin](https://docs.weblate.org/ga/latest/admin/projects.md#project-commit-policy)
* [Eolas breise ar na teaghráin foinse](https://docs.weblate.org/ga/latest/admin/translating.md#additional)
* [Bratacha aistriúcháin](https://docs.weblate.org/ga/latest/admin/projects.md#component-check-flags)

<a id="fonts"></a>

## Clónna a bhainistiú

#### HINT
Úsáidtear clónna a uaslódáiltear chuig Weblate chun críocha an tseiceáil [Uasmhéid an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-size) amháin, níl aon éifeacht acu i gcomhéadan úsáideora Weblate.

Ní mór an seice [Uasmhéid an aistriúcháin](https://docs.weblate.org/ga/latest/user/checks.md#check-max-size) a úsáidtear chun toisí an téacs rindreáilte a ríomh cló a luchtú isteach sa Weblate agus a roghnú ag baint úsáide as bratach aistriúcháin (féach [Saincheapadh iompar ag baint úsáide as bratacha](#custom-checks)).

Cuireann uirlis bainistíochta clónna Weblate i Fonts faoin roghchlár Operations de do thionscadal aistriúcháin comhéadan ar fáil chun clónna a uaslódáil agus a bhainistiú. Is féidir clónna TrueType nó OpenType a uaslódáil, grúpaí clónna a bhunú agus iad sin a úsáid sa tseiceáil.

Uploads must contain a single TrueType or OpenType font with a `.ttf` or
`.otf` extension. WOFF, WOFF2, font collections, and legacy font formats are
not supported, even when renamed to use one of these extensions.

Ligeann na grúpaí cló duit clónna éagsúla a shainiú do theangacha éagsúla, rud a bhíonn ag teastáil go hiondúil do theangacha nach teangacha Laidineacha iad:

![image](screenshots/font-group-edit.webp)

Aithnítear na grúpaí cló de réir ainm, nach féidir spás bán nó carachtair speisialta a bheith iontu, ionas gur féidir é a úsáid go héasca sa sainmhíniú seiceála:

![image](screenshots/font-group-list.webp)

Aithnítear an teaghlach cló agus an stíl go huathoibríoch tar éis iad a uaslódáil:

![image](screenshots/font-edit.webp)

Is féidir leat roinnt clónna a lódáil isteach i Weblate:

![image](screenshots/font-list.webp)

Chun na clónna a úsáid chun fad an sreangáin a sheiceáil, cuir na bratacha cuí air (féach [Saincheapadh iompar ag baint úsáide as bratacha](#custom-checks)). Is dócha go mbeidh na cinn seo a leanas de dhíth ort:

`uasmhéid: 500` / `uasmhéid:300:5`
: Sainmhíníonn sé an leithead uasta i bpicteilíní agus, roghnach, an líon uasta línte. Cuirtear timfhilleadh focal i bhfeidhm nuair a chumraítear níos mó ná líne amháin.

`font-family:ubuntu`
: Sainmhíníonn grúpa cló le húsáid trína aitheantóir a shonrú.

`font-size:22`
: Sainmhíníonn clómhéid i bpicteilíní.

Font checks accept widths up to 2,048 pixels, font sizes up to 256 pixels,
and at most 64 explicit or wrapped lines and 16,000 characters after
replacements. Configurations or text exceeding these budgets fail the check
with a rendering-limit message instead of being measured at a different
threshold. New previews are clipped to 2,048 × 2,048 pixels. Existing cached
previews can still be served.

<a id="own-checks"></a>

## Ag scríobh seiceanna féin

Tá raon leathan seiceálacha cáilíochta ionsuite, (féach [Seiceálacha cáilíochta](https://docs.weblate.org/ga/latest/user/checks.md#checks)), cé go bhféadfadh nach gclúdaíonn siad gach rud is mian leat a sheiceáil. Is féidir liosta na seiceálacha a dhéantar a choigeartú ag baint úsáide as [`CHECK_LIST`](https://docs.weblate.org/ga/latest/admin/config.md#std-setting-CHECK_LIST), agus is féidir leat seiceálacha saincheaptha a chur leis freisin.

1. Fo-aicme an weblate.checks.Check
2. Socraigh cúpla tréithe.
3. Cuir an `seiceáil` i bhfeidhm (má tá tú ag iarraidh déileáil leis na hiolra i do chód) nó an modh `check_single` (a dhéanann sé duit).

Roinnt samplaí:

Chun seiceálacha saincheaptha a shuiteáil, cuir conair láncháilithe ar fáil don rang Python sa [`CHECK_LIST`](https://docs.weblate.org/ga/latest/admin/config.md#std-setting-CHECK_LIST), féach [Custom quality checks, add-ons, translation services and auto-fixes](https://docs.weblate.org/ga/latest/admin/customize.md#custom-check-modules).

Checks declaring `propagates = "source"` or `propagates = "target"` update
related strings in the background after a save. They can override
`evaluate_propagated(units)` to evaluate a matching group in bulk. Yield a
`(unit, failed)` pair for every string, including passing strings so stale
warnings can be removed. Without this override, Weblate evaluates the check
on each matching string in chunks.

### Níl "foo" i dtéacs an aistriúcháin

Is seiceáil simplí go leor é seo a dhéanann seiceáil an bhfuil an teaghrán "foo" in easnamh ar an aistriúchán.

```python
"""Simple quality check example."""

from __future__ import annotations

from typing import TYPE_CHECKING

from django.utils.translation import gettext_lazy

from weblate.checks.base import TargetCheck

if TYPE_CHECKING:
    from weblate.trans.models import Unit


class FooCheck(TargetCheck):
    # Used as identifier for check, should be unique
    # Has to be shorter than 50 characters
    check_id = "foo"

    # Short name used to display failing check
    # Might be localized using gettext_lazy
    name = "Foo check"

    # Description for failing check
    description = gettext_lazy("Your translation is foo")

    # Real check code
    def check_single(self, source: str, target: str, unit: Unit) -> bool:
        return "foo" in target
```

### Seiceáil go bhfuil difríocht idir iolraí téacs aistriúcháin na Seice

Seiceáil ag baint úsáide as faisnéis teanga chun a fhíorú nach bhfuil an dá fhoirm iolra sa teanga Seicis mar an gcéanna.

```python
"""Quality check example for Czech plurals."""

from __future__ import annotations

from django.utils.translation import gettext_lazy

from weblate.checks.base import TargetCheck


class PluralCzechCheck(TargetCheck):
    # Used as identifier for check, should be unique
    # Has to be shorter than 50 characters
    check_id = "foo"

    # Short name used to display failing check
    # Might be localized using gettext_lazy
    name = "Foo check"

    # Description for failing check
    description = gettext_lazy("Your translation is foo")

    # Real check code
    def check_target_unit(self, sources, targets, unit) -> bool:
        if unit.translation.language.is_base({"cs"}):
            return targets[1] == targets[2]
        return False

    def check_single(self, source, target, unit) -> bool:
        """We don't check target strings here."""
        return False
```
