Units API.

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

GET /api/units/229211/?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/freebsd-doc/articles_linux-emulation/es/?format=api",
    "source": [
        "There are currently two ways to implement threading in FreeBSD. The first way is M:N threading followed by the 1:1 threading model. The default library used is M:N threading (<literal>libpthread</literal>) and you can switch at runtime to 1:1 threading (<literal>libthr</literal>). The plan is to switch to 1:1 library by default soon. Although those two libraries use the same kernel primitives, they are accessed through different API(es). The M:N library uses the <literal>kse_*</literal> family of syscalls while the 1:1 library uses the <literal>thr_*</literal> family of syscalls. Due to this, there is no general concept of thread ID shared between kernel and userspace. Of course, both threading libraries implement the pthread thread ID API. Every kernel thread (as described by <literal>struct thread</literal>) has td tid identifier but this is not directly accessible from userland and solely serves the kernel's needs. It is also used for 1:1 threading library as pthread's thread ID but handling of this is internal to the library and cannot be relied on."
    ],
    "previous_source": "There are currently two ways to implement threading in FreeBSD. The first way is M:N threading followed by the 1:1 threading model. The default library used is M:N threading (<literal>libpthread</literal>) and you can switch at runtime to 1:1 threading (<literal>libthr</literal>). The plan is to switch to 1:1 library by default soon. Although those two libraries use the same kernel primitives, they are accessed through different API(es). The M:N library uses the <literal>kse_*</literal> family of syscalls while the 1:1 library uses the <literal>thr_*</literal> family of syscalls. Because of this, there is no general concept of thread ID shared between kernel and userspace. Of course, both threading libraries implement the pthread thread ID API. Every kernel thread (as described by <literal>struct thread</literal>) has td tid identifier but this is not directly accessible from userland and solely serves the kernel's needs. It is also used for 1:1 threading library as pthread's thread ID but handling of this is internal to the library and cannot be relied on.",
    "target": [
        "Actualmente hay dos formas de implementar subprocesos en FreeBSD. La primera forma es el subproceso M: N seguido del modelo de subprocesamiento 1: 1. La biblioteca predeterminada utilizada es el subproceso M: N(<literal>libpthread</literal>) y puede cambiar en tiempo de ejecución a subprocesos 1: 1 (<literal>libthr</literal>). el plan es cambiar pronto a la biblioteca 1: 1 por defecto. Aunque esas dos bibliotecas usan las mismas primitivas del kernel, se accede a ellas a través de diferentes API (s). La biblioteca M: N usa la <literal>kse_*</literal> familia de llamadas al sistema, mientras que la biblioteca 1: 1 utiliza la <literal>thr_*</literal> familia de llamadas al sistema. Debido a esto, no existe un concepto general de ID de hilo compartido entre el kernel y el espacio de usuario. Por supuesto, ambas bibliotecas de subprocesos implementan la API de ID de subprocesos pthread. Cada hilo del kernel (como lo describe <literal>struct thread</literal>) tiene un identificador td tid pero no es directamente accesible desde el área de usuario y solo sirve a las necesidades del kernel. También se usa para la biblioteca de subprocesos 1: 1 como ID de subproceso de pthread, pero el manejo de esto es interno a la biblioteca y no se puede confiar en él."
    ],
    "id_hash": -3103700627613132461,
    "content_hash": -3103700627613132461,
    "location": "article.translate.xml:413",
    "context": "",
    "note": "(itstool) path: sect4/para",
    "flags": "",
    "labels": [],
    "state": 10,
    "fuzzy": true,
    "translated": false,
    "approved": false,
    "position": 68,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 164,
    "source_unit": "https://translate-dev.freebsd.org/api/units/229206/?format=api",
    "priority": 100,
    "id": 229211,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_linux-emulation/es/?checksum=54ed70b929f65953",
    "url": "https://translate-dev.freebsd.org/api/units/229211/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2021-01-09T14:33:00.713149Z"
}