Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/1808227/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookkobj_index/ru/?format=api", "source": [ "A class is built by creating a method table associating one or more functions with method descriptions. Before use the class is compiled. The compilation allocates a cache and associates it with the class. A unique id is assigned to each method description within the method table of the class if not already done so by another referencing class compilation. For every method to be used a function is generated by script to qualify arguments and automatically reference the method description for a lookup. The generated function looks up the method by using the unique id associated with the method description as a hash into the cache associated with the object's class. If the method is not cached the generated function proceeds to use the class' table to find the method. If the method is found then the associated function within the class is used; otherwise, the default function associated with the method description is used." ], "previous_source": "", "target": [ "Класс создается путем построения таблицы методов, связывающей одну или несколько функций с описаниями методов. Перед использованием класс компилируется. В процессе компиляции выделяется кэш и связывается с классом. Уникальный идентификатор назначается каждому описанию метода в таблице методов класса, если это ещё не было сделано другой компиляцией, ссылающейся на этот класс. Для каждого используемого метода скриптом генерируется функция для проверки аргументов и автоматического обращения к описанию метода для поиска. Сгенерированная функция ищет метод, используя уникальный идентификатор, связанный с описанием метода, в качестве хэша для доступа к кэшу, связанному с классом объекта. Если метод не найден в кэше, сгенерированная функция использует таблицу класса для поиска метода. Если метод найден, используется связанная с ним функция внутри класса; в противном случае используется функция по умолчанию, связанная с описанием метода." ], "id_hash": -5296307729145317583, "content_hash": -5296307729145317583, "location": "documentation/content/en/books/arch-handbook/kobj/_index.adoc:85", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 156, "source_unit": "https://translate-dev.freebsd.org/api/units/1065154/?format=api", "priority": 100, "id": 1808227, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookkobj_index/ru/?checksum=367fbc2e6f233731", "url": "https://translate-dev.freebsd.org/api/units/1808227/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:20:24.087045Z" }