Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/29498/?format=api
https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_rc-scripting/pt_BR/?format=api", "source": [ "The daemon will be started by running <envar>$command</envar> with command-line flags specified by <envar>$mumbled_flags</envar>. Thus all the input data for the default <option>start</option> method are available in the variables set by our script. Unlike <option>start</option>, other methods may require additional information about the process started. For instance, <option>stop</option> must know the PID of the process to terminate it. In the present case, <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry> will scan through the list of all processes, looking for a process with its name equal to <envar>$procname</envar>. The latter is another variable of meaning to <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry>, and its value defaults to that of <envar>command</envar>. In other words, when we set <envar>command</envar>, <envar>procname</envar> is effectively set to the same value. This enables our script to kill the daemon and to check if it is running in the first place." ], "previous_source": "", "target": [ "O daemon será iniciado executando <envar>$command</envar> com os sinalizadores de linha de comando especificados por <envar>$mumbled_flags</envar>. Assim, todos os dados de entrada para o método padrão <option>start</option> estão disponíveis nas variáveis configuradas pelo nosso script. Ao contrário do <option>start</option>, outros métodos podem requerer informações adicionais sobre o processo iniciado. Por exemplo, <option>stop</option> deve conhecer o PID do processo para terminá-lo. No presente caso, <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry> varrerá a lista de todos os processos, procurando por um processo com seu nome igual a <envar>$procname</envar>. Esta última é outra variável de significado para <citerefentry><refentrytitle>rc.subr</refentrytitle><manvolnum>8</manvolnum></citerefentry>, e seu valor é padronizado para <envar>command</envar>. Em outras palavras, quando definimos o <envar>command</envar>, <envar>procname</envar> é efetivamente definido para o mesmo valor. Isso permite que nosso script mate o daemon e verifique se ele está sendo executado em primeiro lugar." ], "id_hash": -4217034928677537733, "content_hash": -4217034928677537733, "location": "article.translate.xml:548", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 68, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 132, "source_unit": "https://translate-dev.freebsd.org/api/units/100924/?format=api", "priority": 100, "id": 29498, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_rc-scripting/pt_BR/?checksum=457a15133ec2b83b", "url": "https://translate-dev.freebsd.org/api/units/29498/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:16:13.361133Z" }{ "translation": "