Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/190347/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/zh_CN/?format=api", "source": [ "A handy function named <function>checkyesno</function> is provided by <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry>. It takes a variable name as its argument and returns a zero exit code if and only if the variable is set to <literal>YES</literal>, or <literal>TRUE</literal>, or <literal>ON</literal>, or <literal>1</literal>, case insensitive; a non-zero exit code is returned otherwise. In the latter case, the function tests the variable for being set to <literal>NO</literal>, <literal>FALSE</literal>, <literal>OFF</literal>, or <literal>0</literal>, case insensitive; it prints a warning message if the variable contains anything else, i.e., junk." ], "previous_source": "", "target": [ "" ], "id_hash": -235497926144396948, "content_hash": -235497926144396948, "location": "article.translate.xml:843", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 95, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 81, "source_unit": "https://translate-dev.freebsd.org/api/units/100951/?format=api", "priority": 100, "id": 190347, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/zh_CN/?checksum=7cbb57e246d2716c", "url": "https://translate-dev.freebsd.org/api/units/190347/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:38:20.147292Z" }