Units API.

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

GET /api/units/157835/?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/boooks_handbook/en/?format=api",
    "source": [
        "The <varname>vfs.vmiodirenable</varname> <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry> variable may be set to either <literal>0</literal> (off) or <literal>1</literal> (on). It is set to <literal>1</literal> by default. This variable controls how directories are cached by the system. Most directories are small, using just a single fragment (typically 1 K) in the file system and typically 512 bytes in the buffer cache. With this variable turned off, the buffer cache will only cache a fixed number of directories, even if the system has a huge amount of memory. When turned on, this <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry> allows the buffer cache to use the <acronym>VM</acronym> page cache to cache the directories, making all the memory available for caching directories. However, the minimum in-core memory used to cache a directory is the physical page size (typically 4 K) rather than 512 bytes. Keeping this option enabled is recommended if the system is running any services which manipulate large numbers of files. Such services can include web caches, large mail systems, and news systems. Keeping this option on will generally not reduce performance, even with the wasted memory, but one should experiment to find out."
    ],
    "previous_source": "",
    "target": [
        "The <varname>vfs.vmiodirenable</varname> <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry> variable may be set to either <literal>0</literal> (off) or <literal>1</literal> (on). It is set to <literal>1</literal> by default. This variable controls how directories are cached by the system. Most directories are small, using just a single fragment (typically 1 K) in the file system and typically 512 bytes in the buffer cache. With this variable turned off, the buffer cache will only cache a fixed number of directories, even if the system has a huge amount of memory. When turned on, this <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry> allows the buffer cache to use the <acronym>VM</acronym> page cache to cache the directories, making all the memory available for caching directories. However, the minimum in-core memory used to cache a directory is the physical page size (typically 4 K) rather than 512 bytes. Keeping this option enabled is recommended if the system is running any services which manipulate large numbers of files. Such services can include web caches, large mail systems, and news systems. Keeping this option on will generally not reduce performance, even with the wasted memory, but one should experiment to find out."
    ],
    "id_hash": 5187423257296116808,
    "content_hash": 5187423257296116808,
    "location": "book.translate.xml:23427",
    "context": "",
    "note": "(itstool) path: sect3/para",
    "flags": "",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 3842,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 182,
    "source_unit": "https://translate-dev.freebsd.org/api/units/157835/?format=api",
    "priority": 100,
    "id": 157835,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_handbook/en/?checksum=c7fd6df7e6bc1c48",
    "url": "https://translate-dev.freebsd.org/api/units/157835/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-04-18T18:15:29.242873Z"
}