Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/100993/?format=api
https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/en/?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": [ "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." ], "id_hash": 6258329220729559964, "content_hash": 6258329220729559964, "location": "article.translate.xml:1179", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 100, "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": 100993, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/en/?checksum=d6da0d44a9085b9c", "url": "https://translate-dev.freebsd.org/api/units/100993/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:16:14.220836Z" }{ "translation": "