Units API.

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

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

{
    "translation": "http://translate.pkp.sfu.ca/api/translations/plugins/usage-statistics-plugin/fr_CA/?format=api",
    "source": [
        "To ensure data privacy, you must specify a file readable and writable by the web user to contain a randomly generated salt value.  This file must NOT be backed up to ensure privacy protection. The salt is randomly generated either using: the function mcrypt_create_iv, which requires the PHP mcrypt; the function openssl_random_pseudo_bytes, which requires the PHP openssl; the file /dev/urandom, which works only on *nix systems; or the function mt_rand, which is not cryptographically safe. Thus, if you are using a Windows server, please ensure that you install either the PHP mcrypt or openssl enabled in order to have the cryptographically safe generated salt."
    ],
    "previous_source": "",
    "target": [
        "Pour garantir la confidentialité des données, vous devez spécifier un fichier lisible et accessible en écriture par l'utilisateur ou l'utilisatrice  qui contiendra une valeur de salage générée de façon aléatoire. Ce fichier ne doit PAS être sauvegardé pour assurer la protection de la vie privée. Le  salage est généré au hasard soit en utilisant la fonction mcrypt_create_iv, qui nécessite le PHP mcrypt ; la fonction openssl_random_pseudo_bytes, qui nécessite le PHP openssl ; le fichier /dev/urandom, qui ne fonctionne que sur les systèmes * nix ; ou la fonction mt_rand, qui n'est pas sécuritaire d'un point de vue cryptographique. En conséquence, si vous utilisez un serveur Windows, assurez-vous d'installer le PHP mcrypt ou openssl activé afin d'avoir un fichier de salage généré sécuritaire d'un point de vue cryptographique."
    ],
    "id_hash": 6123426427175286043,
    "content_hash": 4118675260482151140,
    "location": "",
    "context": "plugins.generic.usageStats.settings.dataPrivacyOption.requirements",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 10,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 104,
    "source_unit": "http://translate.pkp.sfu.ca/api/units/409931/?format=api",
    "priority": 100,
    "id": 166291,
    "web_url": "http://translate.pkp.sfu.ca/translate/plugins/usage-statistics-plugin/fr_CA/?checksum=d4fac7e46805b51b",
    "url": "http://translate.pkp.sfu.ca/api/units/166291/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-02-13T22:06:32.566414Z"
}