Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/207300/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/es/?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": [ "Una práctica función llamada <function>checkyesno</function> es proporcionado por <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry>.Toma un nombre de variable como argumento y devuelve un código de salida cero si y solo si la variable se establece en <literal>SI</literal>, o <literal>VERDAD</literal>, o <literal>PRENDER</literal>, o <literal>1</literal>, no distingue entre mayúsculas y minúsculas; de lo contrario, se devuelve un código de salida distinto de cero. En el último caso, la función prueba que la variable esté configurada como <literal>NO</literal>, <literal>FALSO</literal>, <literal>APAGAR</literal>, o <literal>0</literal>, no distingue entre mayúsculas y minúsculas; imprime un mensaje de advertencia si la variable contiene algo más, es decir, basura." ], "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": 207300, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/es/?checksum=7cbb57e246d2716c", "url": "https://translate-dev.freebsd.org/api/units/207300/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-11-14T21:36:40.241173Z" }