Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/92201/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/en/?format=api", "source": [ "/* Get the IRQ resource */\n\n sc->irqid = 0x0;\n sc->irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &(sc->irqid),\n\t\t\t\t 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE);\n if (sc->irqres == NULL) {\n\tprintf(\"IRQ allocation failed!\\n\");\n\terror = ENXIO;\n\tgoto fail3;\n }\n\n /* Now we should set up the interrupt handler */\n\n error = bus_setup_intr(dev, sc->irqres, INTR_TYPE_MISC,\n\t\t\t my_handler, sc, &(sc->handler));\n if (error) {\n\tprintf(\"Couldn't set up irq\\n\");\n\tgoto fail4;\n }" ], "previous_source": "", "target": [ "/* Get the IRQ resource */\n\n sc->irqid = 0x0;\n sc->irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &(sc->irqid),\n\t\t\t\t 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE);\n if (sc->irqres == NULL) {\n\tprintf(\"IRQ allocation failed!\\n\");\n\terror = ENXIO;\n\tgoto fail3;\n }\n\n /* Now we should set up the interrupt handler */\n\n error = bus_setup_intr(dev, sc->irqres, INTR_TYPE_MISC,\n\t\t\t my_handler, sc, &(sc->handler));\n if (error) {\n\tprintf(\"Couldn't set up irq\\n\");\n\tgoto fail4;\n }" ], "id_hash": 2991270312584732639, "content_hash": 2991270312584732639, "location": "book.translate.xml:19383", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 2097, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/92201/?format=api", "priority": 100, "id": 92201, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/en/?checksum=a983208038c8dfdf", "url": "https://translate-dev.freebsd.org/api/units/92201/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-11-02T20:37:17.514910Z" }