<a id="xliff"></a>

# XLIFF 1.1 agus 1.2

<a id="index-0"></a>

#### NOTE
Is formáid dhifriúil í [XLIFF 2.0](https://docs.weblate.org/ga/weblate-2026.10.1/formats/xliff2.md) agus níl sí comhoiriúnach siar le XLIFF 1.2.

Cruthaíodh formáid XML-bhunaithe chun comhaid aistriúcháin a chaighdeánú, ach sa deireadh tá sé ar cheann de na [caighdeáin go leor](https://xkcd.com/927/), sa réimse seo.

Úsáidtear Formáid Comhad Idirmhalartaithe Logánú XML (XLIFF) mar dhátheangach de ghnáth, ach tacaíonn Weblate leis mar aonteangach freisin.

Tacaíonn Weblate le XLIFF i roinnt leaganacha:

Comhad aistriúcháin XLIFF 1.2
: Standard XLIFF file. Placeables handling is controlled by the
  `xliff_placeables` [Paraiméadair formáid comhaid](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#file-format-params).

XLIFF 1.2 le síntí gettext
: XLIFF saibhrithe ag [XLIFF 1.2 Representation Guide for Gettext PO](https://docs.oasis-open.org/xliff/v1.2/xliff-profile-po/xliff-profile-po-1.2-cd02.html) chun tacú le hiolra.

XLIFF 1.2 le síntí Apple
: XLIFF saibhrithe ag Apple chun tacú le hiolraí.

#### SEE ALSO
* Sonraíocht [Formáid Comhad Idirmhalartaithe Logánaithe XML (XLIFF)](https://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html)
* Treoir Ionadaíochta [XLIFF 1.2 do Gettext PO](https://docs.oasis-open.org/xliff/v1.2/xliff-profile-po/xliff-profile-po-1.2-cd02.html)
* [XLIFF ar Vicipéid](https://en.wikipedia.org/wiki/XLIFF)
* [XLIFF](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/xliff.html)

## Stáit aistriúcháin

Déantar an tréith `state` sa chomhad a phróiseáil go páirteach agus a mhapáil chuig an stát "Needs edit" i Weblate (úsáidtear na stáit seo a leanas chun an teaghrán a mharcáil mar theagmháil a bhfuil gá le heagrú má tá sprioc ann: `new`, `needs-translation`, `needs-adaptation`, `needs-l10n`). Má tá an tréith `state` ar iarraidh, meastar go bhfuil teaghrán aistrithe a luaithe a bheidh eilimint `<target>` ann.

Má tá `cheadaithe="tá"` ag an teaghrán aistriúcháin, déanfar é a iompórtáil isteach i Weblate mar "Faofa", déanfar aon rud eile a iompórtáil mar "Ag feitheamh ar athbhreithniú" (a mheaitseálann an tsonraíocht XLIFF).

Agus é á shábháil, ní chuireann Weblate na tréithe sin leis mura gá:

* Ní chuirtear an aitreabúid `state` leis ach amháin sa chás go bhfuil teaghrán marcáilte mar rud a bhfuil gá le heagrú.
* Ní chuirtear an tréith `cheadaithe` leis ach amháin i gcás go bhfuil athbhreithniú déanta ar an teaghrán.
* I gcásanna eile ní chuirtear na tréithe leis, ach déantar iad a nuashonrú i gcás go bhfuil siad i láthair.

Ciallaíonn sé sin, agus formáid XLIFF in úsáid, moltar go láidir próiseas athbhreithnithe Weblate a chur ar siúl, chun staid fhormheasta na teaghráin a fheiceáil agus a athrú.

Mar an gcéanna nuair a bhíonn comhaid den sórt sin á n-iompórtáil (san fhoirm uaslódála), ba cheart duit Iompórtáil mar a aistríodh a roghnú faoi Teaghráin a phróiseáil ar gá iad a chur in eagar.

#### SEE ALSO
[Athbhreithneoirí tiomnaithe](https://docs.weblate.org/ga/weblate-2026.10.1/workflows.md#reviews)

## Spás bán agus línte nua in XLIFF

Weblate controls how whitespaces are handled with the `xml_whitespace_handling`
[Paraiméadair formáid comhaid](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#file-format-params) for XLIFF components:

* Follow xml:space — honor `xml:space` attributes in the file
  (and the XLIFF default when the attribute is missing).
* Always preserve — keep all whitespace and set
  `xml:space="preserve"` on units (Weblate's default for new units).
* Always normalize — collapse whitespace even when the file sets
  `xml:space="preserve"`.

To keep newlines or surrounding spaces when following `xml:space`, mark the
string with `xml:space="preserve"`:

```xml
    <trans-unit id="10" approved="yes">
        <source xml:space="preserve">hello</source>
        <target xml:space="preserve">Hello, world!
</target>
    </trans-unit>
```

#### SEE ALSO
[Paraiméadair formáid comhaid](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#file-format-params)

## Placeables in XLIFF

Weblate controls how XML elements inside XLIFF content are handled with the
`xliff_placeables` [Paraiméadair formáid comhaid](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#file-format-params):

* Plain text — escape XML elements in the content.
* Placeables — preserve placeables and other XML elements (the
  default). Tags then appear as placeholders in the editor.

#### SEE ALSO
[Paraiméadair formáid comhaid](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#file-format-params)

<a id="xliff-flags"></a>

## Ag sonrú bratacha aistriúcháin

Is féidir leat bratacha aistriúcháin bhreise a shonrú (féach [Saincheapadh iompar ag baint úsáide as bratacha](https://docs.weblate.org/ga/weblate-2026.10.1/admin/checks.md#custom-checks)) tríd an tréith `weblate-flags` a úsáid. Tuigeann Weblate tréithe `maxwidth` agus `font` ó shonraíocht XLIFF freisin:

```xml
<trans-unit id="10" maxwidth="100" size-unit="pixel" font="ubuntu;22;bold">
   <source>Hello %s</source>
</trans-unit>
<trans-unit id="20" maxwidth="100" size-unit="char" weblate-flags="c-format">
   <source>Hello %s</source>
</trans-unit>
```

Déantar an tréith `font` a pháirseáil do theaghlach cló, méid agus meáchan, léiríonn an sampla thuas sin go léir, cé nach bhfuil ach teaghlaigh cló ag teastáil. Déantar aon spás bán sa teaghlach cló a thiontú go béim, mar sin bíonn `Source Sans Pro` becomes `Source_Sans_Pro`, coinnigh é sin i gcuimhne le do thoil agus an clóghrúpa á ainmniú (féach [Clónna a bhainistiú](https://docs.weblate.org/ga/weblate-2026.10.1/admin/checks.md#fonts)).

#### SEE ALSO
* [tréith cló in XLIFF 1.2](https://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#font)
* [tréith maxwidth in XLIFF 1.2](https://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#maxwidth)

## Eochracha teaghrán

Aithníonn Weblate na haonaid sa chomhad XLIFF tríd an tréith `resname` má tá sé i láthair agus titeann sé ar ais go dtí `id` (mar aon leis an gclib `file` má tá sé i láthair).

Tá an tréith `resname` ceaptha a bheith ina haitheantóir cairdiúil don duine ar an aonad rud a fhágann go bhfuil sé níos oiriúnaí do Weblate é a thaispeáint in ionad `id`. Caithfidh an `resname` a bheith uathúil sa chomhad XLIFF ar fad. Éilíonn Weblate é seo agus níl sé clúdaithe ag an gcaighdeán XLIFF - ní chuireann sé aon srianta uathúlachta ar an tréith seo.

## Comhaid shamplacha

Comhad XLIFF mar shampla:

```xml
<?xml version='1.0' encoding='UTF-8'?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.1">
    <file>
        <body>
            <trans-unit weblate-flags="c-format, max-length:100">
                <source xml:space="preserve">Hello, world!
</source>
            </trans-unit>
            <trans-unit>
                <source xml:space="preserve">Orangutan has %d banana.
</source>
            </trans-unit>
            <trans-unit>
                <source xml:space="preserve">Try Weblate at &lt;https://demo.weblate.org/&gt;!
</source>
            </trans-unit>
            <trans-unit>
                <source>Thank you for using Weblate.</source>
            </trans-unit>
        </body>
    </file>
</xliff>
```

<!-- AUTOGENERATED START: format-features xliff -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Gnéithe tacaithe

| Síneadh comhaid                                                                                                 | `.mxliff`, `.poxliff`, `.sdlxliff`, `.xlf`, `.xliff`   |
|-----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| Teangachas [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#bimono)                                              | Aonteangach agus dátheangach araon                     |
| Tacaíonn sé le hiolra [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-plurals)                           | `Yes`                                                  |
| Tacaíonn sé le tuairiscí [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-description)                    | `Yes`                                                  |
| Tacaíonn sé le míniú [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-explanation)                        | `No`                                                   |
| Tacaíonn sé le comhthéacs [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-context)                       | `Yes`                                                  |
| Tacaíonn suíomh [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-location)                                | `Yes`                                                  |
| Tacaíonn sé le bratacha [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-flags)                           | `Yes`                                                  |
| Stáit bhreise [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#format-states)                                    | `Ceadaithe`, `Riachtanach eagarthóireacht`             |
| Aitheantóir API                                                                                                 | `apple-xliff`, `poxliff`, `xliff`                      |
| Tacaíonn sé le teaghráin léite amháin [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#read-only-strings)        | `Yes`                                                  |
| Tacaíonn sé le teaghráin atá as dáta a bhaint [ⓘ](https://docs.weblate.org/ga/weblate-2026.10.1/formats.md#obsolete-strings) | `No`                                                   |
<!-- AUTOGENERATED END: format-features xliff -->

## Cumraíocht Weblate

|                                        | Gnáthchlár Gréasáin [Cumraíocht na Comhpháirte](https://docs.weblate.org/ga/weblate-2026.10.1/admin/projects.md#component) le haghaidh XLIFF dátheangach   |
|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| Masc comhaid                           | `localizations/*.xliff`                                                                                                                |
| Comhad aonteangach bunteanga           | Folamh                                                                                                                                 |
| Teimpléad le haghaidh aistriúcháin nua | `localizations/en-US.xliff`                                                                                                            |
| Formáid comhaid                        | Comhad Aistriúcháin XLIFF                                                                                                              |

|                                        | Gnáthchlár Gréasáin [Cumraíocht na Comhpháirte](https://docs.weblate.org/ga/weblate-2026.10.1/admin/projects.md#component) do XLIFF aonteangach   |
|----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| Masc comhaid                           | `localizations/*.xliff`                                                                                                       |
| Comhad aonteangach bunteanga           | `localizations/en-US.xliff`                                                                                                   |
| Teimpléad le haghaidh aistriúcháin nua | `localizations/en-US.xliff`                                                                                                   |
| Formáid comhaid                        | Comhad Aistriúcháin XLIFF                                                                                                     |
