Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/1098011/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api",
    "source": [
        "The interrupt request line (IRQ) is a bit special. Besides allocation the driver's interrupt handler should be associated with it. Historically in the old ISA drivers the argument passed by the system to the interrupt handler was the device unit number. But in modern drivers the convention suggests passing the pointer to structure softc. The important reason is that when the structures softc are allocated dynamically then getting the unit number from softc is easy while getting softc from the unit number is difficult. Also this convention makes the drivers for different buses look more uniform and allows them to share the code: each bus gets its own probe, attach, detach and other bus-specific routines while the bulk of the driver code may be shared among them."
    ],
    "previous_source": "",
    "target": [
        "中断请求线(IRQ)有点特殊。除了分配以外,驱动程序的中断处理函数也应当与它关联。在古老的ISA驱动程序中,由系统传递给中断处理函数的参量是设备单元号。但在现代驱动程序中,按照约定,建议传递指向结构softc的指针。一个很重要的原因在于当结构softc被动态分配后,从softc取得单元号很容易,而从单元号取得softc很困难。同时,这个约定也使得用于不同总线的应用程序看起来统一,并允许它们共享代码:每个总线有其自己的探测,连接,分离和其他总线相关的例程,而它们之间可以共享大块的驱动程序代码。"
    ],
    "id_hash": -5075202080111403224,
    "content_hash": -5075202080111403224,
    "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:936",
    "context": "",
    "note": "type: Plain text",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 329,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 127,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1095388/?format=api",
    "priority": 100,
    "id": 1098011,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=3991429903a2df28",
    "url": "https://translate-dev.freebsd.org/api/units/1098011/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2021-05-23T13:00:56.400509Z"
}