Units API.

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

GET /api/units/5841740/?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/es/?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 deniega el acceso pedido por $SOURCE. $TARGET_PATH tal vez\n    mal etiquetado.  El tipo $TARGET_PATH predeterminado por SELinux es\n    <B>%s</B>, pero el tipo actual es <B>$TARGET_TYPE</B>. Cambiando\n    este archivo de vuelta al predeterminado puede corregir su problema.\n    <p>\n    Los contextos de archivo se pueden asignar a un archivo de las siguientes maneras.\n    <ul>\n        <li>Los archivos creados en un directorio reciben el contexto de archivo del directorio principal de forma predeterminada.\n        <li>La política SELinux podría anular la etiqueta heredada del directorio principal\n            especificando un proceso corriendo en el contexto A que un archivo en un directorio etiquetado B\n            creará en su lugar el archivo con etiqueta C. Un ejemplo de esto podría ser el cliente dhcp corriendo\n            con el tipo dhcpc_t y creando u  archivo en el directorio /etc. Este archivo normalmente debería\n            recibir el tipo etc_t type debido a la herencia parental pero en su lugar el archivo\n            es etiquetado con el tipo net_conf_t type porque la política SELinux especifica esto.\n        <li>Los usuarios pueden cambiar el contexto de un archivo usando herramientas como chcon o restorecon.\n    </ul>\n    Este archivo podría haber perdido la etiqueta por un error del usuario o en una aplicación normalmente confinada\n    que este corriendo bajo un dominio equivocado.\n    <p>\n    Sin embargo, esto podría indicar también un error en SELinux porque el archivo no debería haber sido etiquetado\n    con este tipo.\n    <p>\n    Si usted cree que es un error, presente un informe de error contra este paquete.\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": 5841740,
    "web_url": "https://translate.fedoraproject.org/translate/setroubleshoot/plugins/es/?checksum=daf4597b12c85764",
    "url": "https://translate.fedoraproject.org/api/units/5841740/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-08-31T07:20:44.908359Z"
}