Units API.

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

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

{
    "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/es/?format=api",
    "source": [
        "If you still cannot do without <function>force_depend</function>, the example offers an idiom of how to invoke it conditionally. In the example, our <command>mumbled</command> daemon requires that another one, <command>frotz</command>, be started in advance. However, <command>frotz</command> is optional, too; and <citerefentry><refentrytitle>rcorder</refentrytitle><manvolnum>8</manvolnum></citerefentry> knows nothing about such details. Fortunately, our script has access to all <citerefentry><refentrytitle>rc.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry> variables. If <envar>frotz_enable</envar> is true, we hope for the best and rely on <filename>rc.d</filename> to have started <command>frotz</command>. Otherwise we forcibly check the status of <command>frotz</command>. Finally, we enforce our dependency on <command>frotz</command> if it is found to be not running. A warning message will be emitted by <function>force_depend</function> because it should be invoked only if a misconfiguration has been detected."
    ],
    "previous_source": "",
    "target": [
        "Si todavía no puedes prescindir <function>force_depend</function>, el ejemplo ofrece un modismo de cómo invocarlo condicionalmente. En el ejemplo, nuestro <command>mumbled</command> daemon requiere que otro, <command>frotz</command>, be started in advance. However, <command>frotz</command> is optional, too; and <citerefentry><refentrytitle>rcorder</refentrytitle><manvolnum>8</manvolnum></citerefentry> no sabe nada de esos detalles. Afortunadamente, nuestro script tiene acceso a todos <citerefentry><refentrytitle>rc.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>variables. Si<envar>frotz_enable</envar> es cierto, esperamos lo mejor y confiamos en <filename>rc.d</filename> haber comenzado <command>frotz</command>. De lo contrario, verificamos a la fuerza el estado de <command>frotz</command>. Finalmente, reforzamos nuestra dependencia de <command>frotz</command> si se encuentra que no se está ejecutando. Un mensaje de advertencia será emitido por <function>force_depend</function> porque solo debe invocarse si se ha detectado una configuración incorrecta."
    ],
    "id_hash": 6258329220729559964,
    "content_hash": 6258329220729559964,
    "location": "article.translate.xml:1179",
    "context": "",
    "note": "(itstool) path: callout/para",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 137,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 114,
    "source_unit": "https://translate-dev.freebsd.org/api/units/100993/?format=api",
    "priority": 100,
    "id": 207342,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/es/?checksum=d6da0d44a9085b9c",
    "url": "https://translate-dev.freebsd.org/api/units/207342/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-11-14T21:36:40.534424Z"
}