Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/29525/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/pt_BR/?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": [ "Uma função útil chamada <function>checkyesno</function> é fornecida por <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum> </citerefentry>. Ele usa um nome de variável como argumento e retorna um código de saída zero se, e somente se, a variável estiver configurada como <literal>YES</literal>, ou <literal>TRUE</literal>, ou <literal>ON</literal>, ou <literal>1</literal>, sem distinção entre maiúsculas e minúsculas; um código de saída diferente de zero é retornado de outra forma. No último caso, a função testa a variável como sendo definida como <literal>NO</literal>,<literal>FALSE</literal>,<literal>OFF</literal>ou<literal>0</literal> insensível a maiúsculas e minúsculas; imprime uma mensagem de aviso se a variável contiver qualquer outra coisa, ou seja, lixo." ], "id_hash": -235497926144396948, "content_hash": -235497926144396948, "location": "article.translate.xml:843", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "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": 29525, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/pt_BR/?checksum=7cbb57e246d2716c", "url": "https://translate-dev.freebsd.org/api/units/29525/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:16:13.689614Z" }