Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/5842192/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://translate.fedoraproject.org/api/translations/setroubleshoot/plugins/fi/?format=api",
    "source": [
        "\n    SELinux denied access requested by $SOURCE. $TARGET_PATH may\n    be mislabeled.  $TARGET_PATH default SELinux type is\n    <B>%s</B>, but its current type is <B>$TARGET_TYPE</B>. Changing\n    this file back to the default type may fix your problem.\n    <p>\n    File contexts can be assigned to a file in the following ways.\n    <ul>\n        <li>Files created in a directory receive the file context of the parent directory by default.\n        <li>The SELinux policy might override the default label inherited from the parent directory by\n            specifying a process running in context A which creates a file in a directory labeled B\n            will instead create the file with label C. An example of this would be the dhcp client running\n            with the dhcpc_t type and creating a file in the directory /etc. This file would normally\n            receive the etc_t type due to parental inheritance but instead the file\n            is labeled with the net_conf_t type because the SELinux policy specifies this.\n        <li>Users can change the file context on a file using tools such as chcon, or restorecon.\n    </ul>\n    This file could have been mislabeled either by user error, or if an normally confined application\n    was run under the wrong domain.\n    <p>\n    However, this might also indicate a bug in SELinux because the file should not have been labeled\n    with this type.\n    <p>\n    If you believe this is a bug, please file a bug report against this package.\n    "
    ],
    "previous_source": "",
    "target": [
        "\n    SELinux eväsi $SOURCE:n pyytämän pääsyn. $TARGET_PATH saattaa\n    olla väärin nimiöity. $TARGET_PATH SELinuxin oletustyyppi on\n    <B>%s</B>, mutta sen nykyinen tyyppi on <B>$TARGET_TYPE</B>. \n    Tämä tiedosto vaihtaminen takaisin oletustyyppiin voi korjata ongelmasi.\n    <p>\n    Tiedostokontekstit voidaan määrittää tiedostolle seuraavilla tavoilla.\n    <ul>\n        <li>Hakemistoon luodut tiedostot vastaanottavat oletuksena isäntähakemiston tiedostokontekstin.\n        <li>SELinux-käytäntö saattaa ohittaa isäntähakemista perityn oletusnimiön\n            määrittämällä kontekstissa A käynnissä oleva prosessin, joka luo tiedoston hakemistoon joko on nimiöity B\n            sen sijaan luo tiedoston nimiöllä C. Esimerkki tästä on käynnissä oleva dhcp-asiakas\n            dhcpc_t-tyypillä joka luo tiedoston hakemistoon /etc. Tämä tiedosto saisi normaalisti\n            etc_t-tyypin isännältä perittynä, mutta sen sijaan tiedosto\n            nimiöidään net_conf_t-tyypillä, koska SELinux-käytäntö määrittelee näin.\n        <li>Käyttäjät voivat muuttaa tiedoston tiedostokontekstia esimerkiksi chcon- tai restorecon-työkaluilla.\n    </ul>\n    Tämä tiedosto on voitu nimiöidä väärin joko käyttäjän virheestä tai normaalisti suljettua sovellusta\n    ajettiin väärässä toimialueessa.\n    <p>\n    Tämä saattaa kuitenkin osoittaa myös virheen SELinuxissa, koska tiedostoa ei olisi pitänyt nimiöidä\n    tällä tyypillä.\n    <p>\n    Jos tämä on mielestäsi vika, lähetä vikailmoitus tätä pakettia vastaan.\n    "
    ],
    "id_hash": 6553961742861883236,
    "content_hash": 6553961742861883236,
    "location": "../src/restorecon.py:64",
    "context": "",
    "note": "",
    "flags": "python-format",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 170,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 227,
    "source_unit": "https://translate.fedoraproject.org/api/units/5839649/?format=api",
    "priority": 100,
    "id": 5842192,
    "web_url": "https://translate.fedoraproject.org/translate/setroubleshoot/plugins/fi/?checksum=daf4597b12c85764",
    "url": "https://translate.fedoraproject.org/api/units/5842192/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-08-31T07:20:55.562169Z"
}