Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=8
https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=9", "previous": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=7", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "An atomically protected variable is a special variable that is not protected by an explicit lock. Instead, all data accesses to the variables use special atomic operations as described in <citerefentry><refentrytitle>atomic</refentrytitle><manvolnum>9</manvolnum></citerefentry>. Very few variables are treated this way, although other synchronization primitives such as mutexes are implemented with atomically protected variables." ], "previous_source": "", "target": [ "" ], "id_hash": 7448447530384459497, "content_hash": 7448447530384459497, "location": "book.translate.xml:2972", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 362, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 51, "source_unit": "https://translate-dev.freebsd.org/api/units/102504/?format=api", "priority": 100, "id": 34355, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=e75e3390b8b386e9", "url": "https://translate-dev.freebsd.org/api/units/34355/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.073081Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname remap=\"structname\">mtx</varname>.<varname remap=\"structfield\">mtx_lock</varname>" ], "previous_source": "", "target": [ "<varname remap=\"structname\">mtx</varname>.<varname remap=\"structfield\">mtx_lock</varname>" ], "id_hash": 5591495436700128350, "content_hash": 5591495436700128350, "location": "book.translate.xml:2982", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 363, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/102505/?format=api", "priority": 100, "id": 34356, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=cd98fb7983ba945e", "url": "https://translate-dev.freebsd.org/api/units/34356/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.080354Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Kernel Objects" ], "previous_source": "", "target": [ "内核对象" ], "id_hash": 2142017301276315406, "content_hash": 2142017301276315406, "location": "book.translate.xml:2995", "context": "", "note": "(itstool) path: chapter/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 364, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102506/?format=api", "priority": 100, "id": 34357, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=9db9f962f950cf0e", "url": "https://translate-dev.freebsd.org/api/units/34357/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.088308Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>Kernel Objects</primary>" ], "previous_source": "", "target": [ "<primary>内核对象</primary>" ], "id_hash": -6962215612302018859, "content_hash": -6962215612302018859, "location": "book.translate.xml:2997", "context": "", "note": "(itstool) path: chapter/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 365, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102507/?format=api", "priority": 100, "id": 34359, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=1f613dc9bb0f36d5", "url": "https://translate-dev.freebsd.org/api/units/34359/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.096783Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>Object-Oriented</primary>" ], "previous_source": "", "target": [ "<primary>Object-Oriented(面向对象)</primary>" ], "id_hash": -784526276487267544, "content_hash": -784526276487267544, "location": "book.translate.xml:2998", "context": "", "note": "(itstool) path: chapter/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 366, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102508/?format=api", "priority": 100, "id": 34361, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=751ccd8215043b28", "url": "https://translate-dev.freebsd.org/api/units/34361/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.115362Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>binary compatibility</primary>" ], "previous_source": "", "target": [ "<primary>binary compatibility(二进制兼容性)</primary>" ], "id_hash": -2494258423360405972, "content_hash": -2494258423360405972, "location": "book.translate.xml:2999", "context": "", "note": "(itstool) path: chapter/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 367, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102509/?format=api", "priority": 100, "id": 34363, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=5d629d2dd993be2c", "url": "https://translate-dev.freebsd.org/api/units/34363/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.130567Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Kernel Objects, or <firstterm>Kobj</firstterm> provides an object-oriented C programming system for the kernel. As such the data being operated on carries the description of how to operate on it. This allows operations to be added and removed from an interface at run time and without breaking binary compatibility." ], "previous_source": "", "target": [ "内核对象,也就是<firstterm>Kobj</firstterm>,为内核提供了一种面向对象的C语言编程方式。被操作的数据也承载操作它的方法。这使得在不破坏二进制兼容性的前提下,某一个接口能够增/减相应的操作。" ], "id_hash": -4176342581687631490, "content_hash": -4176342581687631490, "location": "book.translate.xml:3000", "context": "", "note": "(itstool) path: chapter/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 368, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 48, "source_unit": "https://translate-dev.freebsd.org/api/units/102510/?format=api", "priority": 100, "id": 34365, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=460aa68c962bc17e", "url": "https://translate-dev.freebsd.org/api/units/34365/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.138226Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Terminology" ], "previous_source": "", "target": [ "术语" ], "id_hash": -2265359017240566842, "content_hash": -2265359017240566842, "location": "book.translate.xml:3008, book.translate.xml:4125", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 369, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102511/?format=api", "priority": 100, "id": 34367, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=608fd3f9e8a5e3c6", "url": "https://translate-dev.freebsd.org/api/units/34367/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.145976Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>object</primary>" ], "previous_source": "", "target": [ "<primary>object(对象)</primary>" ], "id_hash": -3588656661078494685, "content_hash": -3588656661078494685, "location": "book.translate.xml:3010", "context": "", "note": "(itstool) path: sect1/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 370, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102512/?format=api", "priority": 100, "id": 34368, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=4e3287c7bf93b223", "url": "https://translate-dev.freebsd.org/api/units/34368/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.152475Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>method</primary>" ], "previous_source": "", "target": [ "<primary>method(方法)</primary>" ], "id_hash": -224891199561782489, "content_hash": -224891199561782489, "location": "book.translate.xml:3011", "context": "", "note": "(itstool) path: sect1/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 371, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102513/?format=api", "priority": 100, "id": 34370, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=7ce106a541022b27", "url": "https://translate-dev.freebsd.org/api/units/34370/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.175959Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>class</primary>" ], "previous_source": "", "target": [ "<primary>class(类)</primary>" ], "id_hash": 7012683876878845997, "content_hash": 7012683876878845997, "location": "book.translate.xml:3012", "context": "", "note": "(itstool) path: sect1/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 372, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102514/?format=api", "priority": 100, "id": 34371, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=e1520ed4cb79082d", "url": "https://translate-dev.freebsd.org/api/units/34371/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.188718Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>interface</primary>" ], "previous_source": "", "target": [ "<primary>interface(接口)</primary>" ], "id_hash": -929380264106930312, "content_hash": -929380264106930312, "location": "book.translate.xml:3013", "context": "", "note": "(itstool) path: sect1/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 373, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102515/?format=api", "priority": 100, "id": 34373, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=731a2d92e8a5cf78", "url": "https://translate-dev.freebsd.org/api/units/34373/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.203231Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Object" ], "previous_source": "", "target": [ "对象" ], "id_hash": -4121335585198452573, "content_hash": -4121335585198452573, "location": "book.translate.xml:3017", "context": "", "note": "(itstool) path: varlistentry/term", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 374, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102516/?format=api", "priority": 100, "id": 34374, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=46ce131efc11d0a3", "url": "https://translate-dev.freebsd.org/api/units/34374/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.214835Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "A set of data - data structure - data allocation." ], "previous_source": "", "target": [ "数据集合-数据结构-数据分配的集合。" ], "id_hash": -8705410258148419307, "content_hash": -8705410258148419307, "location": "book.translate.xml:3018", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 375, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/102517/?format=api", "priority": 100, "id": 34376, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=07302b7e53059915", "url": "https://translate-dev.freebsd.org/api/units/34376/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.224060Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Method" ], "previous_source": "", "target": [ "方法" ], "id_hash": -7177810348649804229, "content_hash": -7177810348649804229, "location": "book.translate.xml:3023", "context": "", "note": "(itstool) path: varlistentry/term", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 376, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102518/?format=api", "priority": 100, "id": 34377, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=1c634b847f9b0e3b", "url": "https://translate-dev.freebsd.org/api/units/34377/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.232099Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "An operation - function." ], "previous_source": "", "target": [ "某一种操作──函数。" ], "id_hash": -4742759947667013649, "content_hash": -4742759947667013649, "location": "book.translate.xml:3025", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 377, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/102519/?format=api", "priority": 100, "id": 34379, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=3e2e54f4b05b7fef", "url": "https://translate-dev.freebsd.org/api/units/34379/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.251532Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Class" ], "previous_source": "", "target": [ "类" ], "id_hash": 3840883458895904946, "content_hash": 3840883458895904946, "location": "book.translate.xml:3029", "context": "", "note": "(itstool) path: varlistentry/term", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 378, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102520/?format=api", "priority": 100, "id": 34380, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=b54d8f27ef2a00b2", "url": "https://translate-dev.freebsd.org/api/units/34380/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.259034Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "One or more methods." ], "previous_source": "", "target": [ "一种或多种方法。" ], "id_hash": 5663658878951228916, "content_hash": 5663658878951228916, "location": "book.translate.xml:3031", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 379, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/102521/?format=api", "priority": 100, "id": 34382, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ce995bbe38e005f4", "url": "https://translate-dev.freebsd.org/api/units/34382/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.265256Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Interface" ], "previous_source": "", "target": [ "接口" ], "id_hash": -3517470175911236304, "content_hash": -3517470175911236304, "location": "book.translate.xml:3035, book.translate.xml:4187", "context": "", "note": "(itstool) path: varlistentry/term\n(itstool) path: sect2/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 380, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102522/?format=api", "priority": 100, "id": 34383, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=4f2f6f82e8c7ad30", "url": "https://translate-dev.freebsd.org/api/units/34383/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.293327Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "A standard set of one or more methods." ], "previous_source": "", "target": [ "一种或多种方法的一个标准集合。" ], "id_hash": -6416960129942924106, "content_hash": -6416960129942924106, "location": "book.translate.xml:3037", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 381, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/102523/?format=api", "priority": 100, "id": 34385, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=26f260c2a4e854b6", "url": "https://translate-dev.freebsd.org/api/units/34385/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.310194Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Kobj Operation" ], "previous_source": "", "target": [ "Kobj的工作流程" ], "id_hash": -1527885741034083436, "content_hash": -1527885741034083436, "location": "book.translate.xml:3044", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 382, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102524/?format=api", "priority": 100, "id": 34386, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6acbdc037c476b94", "url": "https://translate-dev.freebsd.org/api/units/34386/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.319699Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Kobj works by generating descriptions of methods. Each description holds a unique id as well as a default function. The description's address is used to uniquely identify the method within a class' method table." ], "previous_source": "", "target": [ "Kobj工作时,产生方法的描述。每个描述有一个唯一的标识和一个缺省函数。 某个描述的地址被用来在一个类的方法表里唯一的标识方法。" ], "id_hash": -5214111051316715587, "content_hash": -5214111051316715587, "location": "book.translate.xml:3046", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 383, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/102525/?format=api", "priority": 100, "id": 34387, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=37a3c19fd6d41fbd", "url": "https://translate-dev.freebsd.org/api/units/34387/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.329967Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?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": [ "构建一个类,就是要建立一张方法表,并将这张表关联到一个或多个函数(方法); 这些函数(方法)都带有方法描述。使用前,类要被编译。编译时要为这个类分配一些缓存。 在方法表中的每个方法描述都会被指派一个唯一的标识, 除非已经被其它引用它的类在编译时指派了标识。对于每个将要被使用的方法, 都会由脚本生成一个函数(方法查找函数),以解析外来参数, 并在被查询时给出方法描述的地址。被生成的函数(方法查找函数) 凭着那个方法描述的唯一标识按Hash的方法查找对象的类的缓存。 如果这个方法不在缓存中,函数会查找使用类的方法表。如果这个方法被找到了, 类里的相关函数(也就是某个方法的实现代码)就会被使用。 否则,这个方法描述的缺省函数将被使用。" ], "id_hash": -3058613603925345496, "content_hash": -3058613603925345496, "location": "book.translate.xml:3051", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 384, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 156, "source_unit": "https://translate-dev.freebsd.org/api/units/102526/?format=api", "priority": 100, "id": 34389, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=558d9f21e8da3b28", "url": "https://translate-dev.freebsd.org/api/units/34389/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.344132Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "These indirections can be visualized as the following:" ], "previous_source": "", "target": [ "这些过程可被表示如下:" ], "id_hash": 8016806998185763785, "content_hash": 8016806998185763785, "location": "book.translate.xml:3068", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 385, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/102527/?format=api", "priority": 100, "id": 34390, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ef416b7d6fba63c9", "url": "https://translate-dev.freebsd.org/api/units/34390/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.352455Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "object->cache<->class" ], "previous_source": "", "target": [ "对象->缓存<->类" ], "id_hash": -3899046414769780066, "content_hash": -3899046414769780066, "location": "book.translate.xml:3071", "context": "", "note": "(itstool) path: sect1/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 386, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102528/?format=api", "priority": 100, "id": 34391, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=49e3cdf19ce30a9e", "url": "https://translate-dev.freebsd.org/api/units/34391/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.363483Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Using Kobj" ], "previous_source": "", "target": [ "使用Kobj" ], "id_hash": -2552649822068836302, "content_hash": -2552649822068836302, "location": "book.translate.xml:3076", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 387, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102529/?format=api", "priority": 100, "id": 34392, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=5c932a82e79f7832", "url": "https://translate-dev.freebsd.org/api/units/34392/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.374956Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Structures" ], "previous_source": "", "target": [ "结构" ], "id_hash": 3894402431469020987, "content_hash": 3894402431469020987, "location": "book.translate.xml:3079", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 388, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102530/?format=api", "priority": 100, "id": 34393, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=b60bb260c420e73b", "url": "https://translate-dev.freebsd.org/api/units/34393/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.386235Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "struct kobj_method" ], "previous_source": "", "target": [ "struct kobj_method" ], "id_hash": -2920273358515106991, "content_hash": -2920273358515106991, "location": "book.translate.xml:3081", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 389, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102531/?format=api", "priority": 100, "id": 34395, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=57791ada4aab8b51", "url": "https://translate-dev.freebsd.org/api/units/34395/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.392434Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Functions" ], "previous_source": "", "target": [ "结构" ], "id_hash": 3642383334814429404, "content_hash": 3642383334814429404, "location": "book.translate.xml:3085", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 390, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102532/?format=api", "priority": 100, "id": 34396, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=b28c5858476ab0dc", "url": "https://translate-dev.freebsd.org/api/units/34396/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.408482Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "void kobj_class_compile(kobj_class_t cls);\nvoid kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops);\nvoid kobj_class_free(kobj_class_t cls);\nkobj_t kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags);\nvoid kobj_init(kobj_t obj, kobj_class_t cls);\nvoid kobj_delete(kobj_t obj, struct malloc_type *mtype);" ], "previous_source": "", "target": [ "void kobj_class_compile(kobj_class_t cls);\nvoid kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops);\nvoid kobj_class_free(kobj_class_t cls);\nkobj_t kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags);\nvoid kobj_init(kobj_t obj, kobj_class_t cls);\nvoid kobj_delete(kobj_t obj, struct malloc_type *mtype);" ], "id_hash": -2220314099050950100, "content_hash": -2220314099050950100, "location": "book.translate.xml:3087", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 391, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/102533/?format=api", "priority": 100, "id": 34398, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=612fdc173446d22c", "url": "https://translate-dev.freebsd.org/api/units/34398/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.417552Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Macros" ], "previous_source": "", "target": [ "宏" ], "id_hash": 4242434847767527707, "content_hash": 4242434847767527707, "location": "book.translate.xml:3096, book.translate.xml:4196", "context": "", "note": "(itstool) path: sect2/title\n(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 392, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102534/?format=api", "priority": 100, "id": 34399, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=bae0280443ec011b", "url": "https://translate-dev.freebsd.org/api/units/34399/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.432713Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "KOBJ_CLASS_FIELDS\nKOBJ_FIELDS\nDEFINE_CLASS(name, methods, size)\nKOBJMETHOD(NAME, FUNC)" ], "previous_source": "", "target": [ "KOBJ_CLASS_FIELDS\nKOBJ_FIELDS\nDEFINE_CLASS(name, methods, size)\nKOBJMETHOD(NAME, FUNC)" ], "id_hash": 3276776864616188904, "content_hash": 3276776864616188904, "location": "book.translate.xml:3098", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 393, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/102535/?format=api", "priority": 100, "id": 34402, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ad7973327faa8be8", "url": "https://translate-dev.freebsd.org/api/units/34402/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.439309Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Headers" ], "previous_source": "", "target": [ "头文件" ], "id_hash": 1850317099559884940, "content_hash": 1850317099559884940, "location": "book.translate.xml:3105, book.translate.xml:4190", "context": "", "note": "(itstool) path: sect2/title\n(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 394, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/102536/?format=api", "priority": 100, "id": 34403, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=99ada5994119188c", "url": "https://translate-dev.freebsd.org/api/units/34403/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.448297Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<sys/param.h>\n<sys/kobj.h>" ], "previous_source": "", "target": [ "<sys/param.h>\n<sys/kobj.h>" ], "id_hash": 2608907498136458057, "content_hash": 2608907498136458057, "location": "book.translate.xml:3107", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 395, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102537/?format=api", "priority": 100, "id": 34405, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=a434b38c0646d349", "url": "https://translate-dev.freebsd.org/api/units/34405/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.454479Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Creating an Interface Template" ], "previous_source": "", "target": [ "建立一个接口的模板" ], "id_hash": -1184892745757591965, "content_hash": -1184892745757591965, "location": "book.translate.xml:3112", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 396, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/102538/?format=api", "priority": 100, "id": 34406, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6f8e6a53582e7663", "url": "https://translate-dev.freebsd.org/api/units/34406/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.461555Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<primary>Kernel Objects</primary> <secondary>interface</secondary>" ], "previous_source": "", "target": [ "<primary>Kernel Objects(内核对象)</primary><secondary>interface(接口)</secondary>" ], "id_hash": -8229542706266464081, "content_hash": -8229542706266464081, "location": "book.translate.xml:3114", "context": "", "note": "(itstool) path: sect2/indexterm", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 397, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/102539/?format=api", "priority": 100, "id": 34408, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0dcaca82b914a0af", "url": "https://translate-dev.freebsd.org/api/units/34408/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.471882Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The first step in using Kobj is to create an Interface. Creating the interface involves creating a template that the script <filename>src/sys/kern/makeobjops.pl</filename> can use to generate the header and code for the method declarations and method lookup functions." ], "previous_source": "", "target": [ "使用Kobj的第一步是建立一个接口。建立接口包括建立模板的工作。建立模板可用脚本<filename>src/sys/kern/makeobjops.pl</filename>完成,它会产生申明方法的头文件和代码,脚本还会生成方法查找函数。" ], "id_hash": -227216421309495241, "content_hash": -227216421309495241, "location": "book.translate.xml:3117", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 398, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/102540/?format=api", "priority": 100, "id": 34409, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=7cd8c3de60b64837", "url": "https://translate-dev.freebsd.org/api/units/34409/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.480425Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Within this template the following keywords are used: <literal>#include</literal>, <literal>INTERFACE</literal>, <literal>CODE</literal>, <literal>METHOD</literal>, <literal>STATICMETHOD</literal>, and <literal>DEFAULT</literal>." ], "previous_source": "", "target": [ "在这个模板中如下关键词会被使用:<literal>#include</literal>, <literal>INTERFACE</literal>,<literal>CODE</literal>, <literal>METHOD</literal>,<literal>STATICMETHOD</literal>,和<literal>DEFAULT</literal>." ], "id_hash": -2508114166994163144, "content_hash": -2508114166994163144, "location": "book.translate.xml:3124", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 399, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/102541/?format=api", "priority": 100, "id": 34411, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=5d31637424302a38", "url": "https://translate-dev.freebsd.org/api/units/34411/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.488525Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>#include</literal> statement and what follows it is copied verbatim to the head of the generated code file." ], "previous_source": "", "target": [ "<literal>#include</literal>语句的整行内容将被一字不差的\n 复制到被生成的代码文件的头部。" ], "id_hash": -7583288659965552521, "content_hash": -7583288659965552521, "location": "book.translate.xml:3130", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 400, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/102542/?format=api", "priority": 100, "id": 34412, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=16c2bf2449815877", "url": "https://translate-dev.freebsd.org/api/units/34412/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.501382Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "For example:" ], "previous_source": "", "target": [ "例如:" ], "id_hash": -3643751247835186919, "content_hash": -3643751247835186919, "location": "book.translate.xml:3134, book.translate.xml:3143, book.translate.xml:3151, book.translate.xml:3164, book.translate.xml:3180, book.translate.xml:3217", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 401, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102543/?format=api", "priority": 100, "id": 34415, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=4d6ecb8ba6e5b919", "url": "https://translate-dev.freebsd.org/api/units/34415/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.510057Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "#include <sys/foo.h>" ], "previous_source": "", "target": [ "#include <sys/foo.h>" ], "id_hash": 7798848993885182139, "content_hash": 7798848993885182139, "location": "book.translate.xml:3136", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 402, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102544/?format=api", "priority": 100, "id": 34416, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ec3b13d7017058bb", "url": "https://translate-dev.freebsd.org/api/units/34416/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.523028Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>INTERFACE</literal> keyword is used to define the interface name. This name is concatenated with each method name as [interface name]_[method name]. Its syntax is INTERFACE [interface name];." ], "previous_source": "", "target": [ "关键词<literal>INTERFACE</literal>用来定义接口名。这个名字将与每个方法名接合在一起,形成 [interface name]_[method name]。语法是:INTERFACE [接口名];。" ], "id_hash": 3851109777463181669, "content_hash": 3851109777463181669, "location": "book.translate.xml:3138", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 403, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/102545/?format=api", "priority": 100, "id": 34418, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=b571e3f044ba0165", "url": "https://translate-dev.freebsd.org/api/units/34418/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.531660Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "INTERFACE foo;" ], "previous_source": "", "target": [ "INTERFACE foo;" ], "id_hash": 1374494914212904564, "content_hash": 1374494914212904564, "location": "book.translate.xml:3145", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 404, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/102546/?format=api", "priority": 100, "id": 34419, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=93132fd7933dbe74", "url": "https://translate-dev.freebsd.org/api/units/34419/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.538477Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>CODE</literal> keyword copies its arguments verbatim into the code file. Its syntax is <literal>CODE { [whatever] };</literal>" ], "previous_source": "", "target": [ "关键词<literal>CODE</literal>会将它的参数一字不差的复制到代码文件中。语法是<literal>CODE { [任何代码] };</literal>" ], "id_hash": 3196631628246255333, "content_hash": 3196631628246255333, "location": "book.translate.xml:3147", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 405, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/102547/?format=api", "priority": 100, "id": 34421, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ac5cb787876586e5", "url": "https://translate-dev.freebsd.org/api/units/34421/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.549259Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "CODE {\n\tstruct foo * foo_alloc_null(struct bar *)\n\t{\n\t\treturn NULL;\n}\n};" ], "previous_source": "", "target": [ "CODE {\n\tstruct foo * foo_alloc_null(struct bar *)\n\t{\n\t\treturn NULL;\n}\n};" ], "id_hash": 1077279762860443314, "content_hash": 1077279762860443314, "location": "book.translate.xml:3153", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 406, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/102548/?format=api", "priority": 100, "id": 34423, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=8ef3443c950386b2", "url": "https://translate-dev.freebsd.org/api/units/34423/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.558605Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>METHOD</literal> keyword describes a method. Its syntax is <literal>METHOD [return type] [method name] { [object [, arguments]] };</literal>" ], "previous_source": "", "target": [ "关键词<literal>METHOD</literal>用来描述一个方法。语法是:<literal>METHOD [返回值类型] [方法名] { [对象 [,参数若干]] };</literal>" ], "id_hash": -9022713687288998861, "content_hash": -9022713687288998861, "location": "book.translate.xml:3160", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 407, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/102549/?format=api", "priority": 100, "id": 34424, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=02c8e1b4af159433", "url": "https://translate-dev.freebsd.org/api/units/34424/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.570764Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "METHOD int bar {\n\tstruct object *;\n\tstruct foo *;\n\tstruct bar;\n};" ], "previous_source": "", "target": [ "METHOD int bar {\n\tstruct object *;\n\tstruct foo *;\n\tstruct bar;\n};" ], "id_hash": 6431386321707291199, "content_hash": 6431386321707291199, "location": "book.translate.xml:3166", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 408, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/102550/?format=api", "priority": 100, "id": 34426, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d940dfc8deab523f", "url": "https://translate-dev.freebsd.org/api/units/34426/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.580933Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>DEFAULT</literal> keyword may follow the <literal>METHOD</literal> keyword. It extends the <literal>METHOD</literal> key word to include the default function for method. The extended syntax is <literal>METHOD [return type] [method name] { [object; [other arguments]] }DEFAULT [default function];</literal>" ], "previous_source": "", "target": [ "关键词<literal>DEFAULT</literal>跟在关键词<literal>METHOD</literal>之后,是对关键词<literal>METHOD</literal>的补充。它给这个方法补充上缺省函数。语法是: <literal>METHOD [返回值类型] [方法名] {[对象; [其它参数]] }DEFAULT [缺省函数];</literal>" ], "id_hash": 7531832938657350743, "content_hash": 7531832938657350743, "location": "book.translate.xml:3172", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 409, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/102551/?format=api", "priority": 100, "id": 34427, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=e886722700420457", "url": "https://translate-dev.freebsd.org/api/units/34427/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.592535Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "METHOD int bar {\n\tstruct object *;\n\tstruct foo *;\n\tint bar;\n} DEFAULT foo_hack;" ], "previous_source": "", "target": [ "METHOD int bar {\n\tstruct object *;\n\tstruct foo *;\n\tint bar;\n} DEFAULT foo_hack;" ], "id_hash": -1560474957090157642, "content_hash": -1560474957090157642, "location": "book.translate.xml:3182", "context": "", "note": "(itstool) path: sect2/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 410, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/102552/?format=api", "priority": 100, "id": 34429, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6a58144b55bf8bb6", "url": "https://translate-dev.freebsd.org/api/units/34429/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.603823Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <literal>STATICMETHOD</literal> keyword is used like the <literal>METHOD</literal> keyword except the kobj data is not at the head of the object structure so casting to kobj_t would be incorrect. Instead <literal>STATICMETHOD</literal> relies on the Kobj data being referenced as 'ops'. This is also useful for calling methods directly out of a class's method table." ], "previous_source": "", "target": [ "关键词<literal>STATICMETHOD</literal>类似关键词<literal>METHOD</literal>。对于每个Kobj对象,一般其头部都有一些Kobj专有的数据。<literal>METHOD</literal>定义的方法就假设这些专有数据位于对象头部;假如对象头部没有这些专有数据,这些方法对这个对象的访问就可能出错。而<literal>STATICMETHOD</literal>定义的对象可以不受这个限制:这样描述出的方法,其操作的数据不由这个类的某个对象实例给出,而是全都由调用这个方法时的操作数(译者注:即参数)给出。这也对于在某个类的方法表之外调用这个方法有用。" ], "id_hash": -2052569294612074824, "content_hash": -2052569294612074824, "location": "book.translate.xml:3188", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 411, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 54, "source_unit": "https://translate-dev.freebsd.org/api/units/102553/?format=api", "priority": 100, "id": 34430, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6383cf19fdc5eeb8", "url": "https://translate-dev.freebsd.org/api/units/34430/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:21:46.615395Z" } ] }{ "count": 2721, "next": "