Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/157572/?format=api
https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_fdp-primer/pt_BR/?format=api", "source": [ "if has(\"autocmd\")\n au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n au BufNewFile,BufRead *.[1-9] call ShowSpecial()\nendif \" has(autocmd)\n\nfunction Set_Highlights()\n \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n highlight default link OverLength ErrorMsg\n match OverLength /\\%71v.\\+/\n return 0\nendfunction \" Set_Highlights()\n\nfunction ShowSpecial()\n setlocal list listchars=tab:>>,trail:*,eol:$\n hi def link nontext ErrorMsg\n return 0\nendfunction \" ShowSpecial()\n\nfunction Set_SGML()\n setlocal number\n syn match sgmlSpecial \"&[^;]*;\"\n setlocal syntax=sgml\n setlocal filetype=xml\n setlocal shiftwidth=2\n setlocal textwidth=70\n setlocal tabstop=8\n setlocal softtabstop=2\n setlocal formatprg=\"fmt -p\"\n setlocal autoindent\n setlocal smartindent\n \" Rewrap paragraphs\n noremap P gqj\n \" Replace spaces with tabs\n noremap T :s/ /\\t/<CR>\n call ShowSpecial()\n call Set_Highlights()\n return 0\nendfunction \" Set_SGML()" ], "previous_source": "", "target": [ "if has(\"autocmd\")\n au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n au BufNewFile,BufRead *.[1-9] call ShowSpecial()\nendif \" has(autocmd)\n\nfunction Set_Highlights()\n \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n highlight default link OverLength ErrorMsg\n match OverLength /\\%71v.\\+/\n return 0\nendfunction \" Set_Highlights()\n\nfunction ShowSpecial()\n setlocal list listchars=tab:>>,trail:*,eol:$\n hi def link nontext ErrorMsg\n return 0\nendfunction \" ShowSpecial()\n\nfunction Set_SGML()\n setlocal number\n syn match sgmlSpecial \"&[^;]*;\"\n setlocal syntax=sgml\n setlocal filetype=xml\n setlocal shiftwidth=2\n setlocal textwidth=70\n setlocal tabstop=8\n setlocal softtabstop=2\n setlocal formatprg=\"fmt -p\"\n setlocal autoindent\n setlocal smartindent\n \" Rewrap paragraphs\n noremap P gqj\n \" Replace spaces with tabs\n noremap T :s/ /\\t/<CR>\n call ShowSpecial()\n call Set_Highlights()\n return 0\nendfunction \" Set_SGML()" ], "id_hash": 2134929445440844287, "content_hash": 2134929445440844287, "location": "book.translate.xml:9654", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1702, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 100, "source_unit": "https://translate-dev.freebsd.org/api/units/157571/?format=api", "priority": 100, "id": 157572, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_fdp-primer/pt_BR/?checksum=9da0cb04f005f1ff", "url": "https://translate-dev.freebsd.org/api/units/157572/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-04-18T18:15:07.305481Z" }{ "translation": "