Units API.

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

GET /api/units/5846938/?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/sv/?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 nekade åtkomst begärd av $SOURCE. $TARGET_PATH som kan\n    vara feletiketterad. Standard SELinuxtyp för $TARGET_PATH är\n    <B>%s</B>, men dess nuvarande typ är <B>$TARGET_TYPE</B>. Att ändra\n    tillbaka denna fill till des standardtyp kan lösa ditt problem.\n    <p>\n    Filkontexter kan tilltelas till en fil på följande sätt.\n    <ul>\n        <li>Filer skapade i en katalog får sin filkontext från föräldrakatalogen som standard.\n        <li>SELinux-policyn kan åsidosätta denna standardetikett som ärvs från föräldrakatalogen genom\n            att ange att en process som kör i kontext A som skapar en fil i en katalog med etiketten B\n            istället kommer skapa filen med etiketten C. Ett exempel på detta skulle vara dhcp-klienten som kör\n            med typen dhcpc_t och skapar en fil i katalogen /etc. Denna fil skulle normalt\n            få typen etc_t på grund av arv från förälder men istället etiketteras filen\n            med typen net_conf_t eftersom SELinux-policyn anger detta.\n        <li>Användare kan ändra filkontexten på en fil med verktyg såsom chcon eller restorecon.\n    </ul>\n    Denna fil kan a etiketterats fel antingen på grund av ett användarfel eller om ett normalt begränsat program\n    körs under fel domän.\n    <p>\n    Dock kan detta även indikera ett fel i SELinux eftersom filen inte skulle ha etiketterats\n    med denna typ.\n    <p>\n    Om du tror det är ett fel, skapa gärna en felrapport mot detta paket.\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": 5846938,
    "web_url": "https://translate.fedoraproject.org/translate/setroubleshoot/plugins/sv/?checksum=daf4597b12c85764",
    "url": "https://translate.fedoraproject.org/api/units/5846938/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-08-31T07:22:54.020360Z"
}