Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbookpccard_index/zh_CN/units/?format=api
{ "count": 47, "next": null, "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Chapter 16. PC Card" ], "previous_source": "", "target": [ "" ], "id_hash": 2660489286608327557, "content_hash": 2660489286608327557, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1145466/?format=api", "priority": 100, "id": 1145842, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=a4ebf4e909059385", "url": "https://translate-dev.freebsd.org/api/units/1145842/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.691050Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "PC Card" ], "previous_source": "", "target": [ "PC Card" ], "id_hash": 2193301973982277929, "content_hash": 2193301973982277929, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:1, documentation/content/en/books/arch-handbook/pccard/_index.adoc:14", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145468/?format=api", "priority": 100, "id": 1145843, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=9e702c8654607129", "url": "https://translate-dev.freebsd.org/api/units/1145843/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.697981Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "This chapter will talk about the FreeBSD mechanisms for writing a device driver for a PC Card or CardBus device. However, at present it just documents how to add a new device to an existing pccard driver." ], "previous_source": "", "target": [ "本章将讨论FreeBSD为编写PC Card或CardBus设备的驱动程序而提供的机制。 但目前本文只记录了如何向现有的pccard驱动程序中添加驱动程序。" ], "id_hash": 9145911553638841564, "content_hash": 9145911553638841564, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:52", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1145470/?format=api", "priority": 100, "id": 1145844, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=feecce19d5c8bcdc", "url": "https://translate-dev.freebsd.org/api/units/1145844/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.703456Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Adding a Device" ], "previous_source": "", "target": [ "添加设备" ], "id_hash": -5164017914695156146, "content_hash": -5164017914695156146, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:54", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1145472/?format=api", "priority": 100, "id": 1145845, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=3855b91114d77e4e", "url": "https://translate-dev.freebsd.org/api/units/1145845/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.709161Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Device drivers know what devices they support. There is a table of supported devices in the kernel that drivers use to attach to a device." ], "previous_source": "", "target": [ "向所支持的pccard设备列表中添加新设备的步骤已经与系统在FreeBSD 4 中使用的方法不同了。在以前的版本中,需要编辑 <filename>/etc</filename>中的一个文件来列出设备。从FreeBSD 5.0开始, 设备驱动程序知道它们支持什么设备。现在内核中有一个受支持设备的表, 驱动程序用它来连接设备。" ], "id_hash": -5449362453592177722, "content_hash": -5449362453592177722, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:57", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1145474/?format=api", "priority": 100, "id": 1145846, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=345ff9b86d4983c6", "url": "https://translate-dev.freebsd.org/api/units/1145846/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.716064Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Overview" ], "previous_source": "", "target": [ "总览" ], "id_hash": 1923348845750209596, "content_hash": 1923348845750209596, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:59", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145476/?format=api", "priority": 100, "id": 1145847, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=9ab11b95ba194c3c", "url": "https://translate-dev.freebsd.org/api/units/1145847/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.721696Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "PC Cards are identified in one of two ways, both based on the _Card Information Structure_ (CIS) stored on the card. The first method is to use numeric manufacturer and product numbers. The second method is to use the human readable strings that are also contained in the CIS. The PC Card bus uses a centralized database and some macros to facilitate a design pattern to help the driver writer match devices to his driver." ], "previous_source": "", "target": [ "可以有两种方法来识别PC Card,他们都基于卡上的 <acronym>CIS</acronym>信息。第一种方法是使用制造商和产品的数字编号。 第二种方法是使用人可读的字符串,字符串也是包含在CIS中。PC Card总线 使用集中式数据库和一些宏来提供一个易用的设计模式,让驱动程序的编写 者很容易地确定匹配其驱动程序的设备。" ], "id_hash": -6925040850394073901, "content_hash": -6925040850394073901, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:62", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 75, "source_unit": "https://translate-dev.freebsd.org/api/units/1145478/?format=api", "priority": 100, "id": 1145848, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=1fe55009793134d3", "url": "https://translate-dev.freebsd.org/api/units/1145848/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.726904Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Original equipment manufacturers (OEMs) often develop a reference design for a PC Card product, then sell this design to other companies to market. Those companies refine the design, market the product to their target audience or geographic area, and put their own name plate onto the card. The refinements to the physical card are typically very minor, if any changes are made at all. To strengthen their brand, these vendors place their company name in the human readable strings in the CIS space, but leave the manufacturer and product IDs unchanged." ], "previous_source": "", "target": [ "一个很普遍的实际情况是,某个公司为一款PC Card产品开发出参考 设计,然后把这个设计卖给另外的公司,以便在市场上出售。那些公司改进 原设计,把向他们的目标客户群或地理区域出售产品,并将他们自己的名字 放到卡中。然而所谓的对现有卡的改进,即使做过任何修改,这些修改通常 也微乎其微。然而,为了强化他们自己版本的品牌,这些供货商常常会把他们 公司的名字放入CIS空间的可读字符串中,却不会改动制造商和产品的ID。" ], "id_hash": -1149956191871487433, "content_hash": -1149956191871487433, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:64", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 91, "source_unit": "https://translate-dev.freebsd.org/api/units/1145480/?format=api", "priority": 100, "id": 1145849, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=700a88efac3d3237", "url": "https://translate-dev.freebsd.org/api/units/1145849/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.732686Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Due to this practice, FreeBSD drivers usually rely on numeric IDs for device identification. Using numeric IDs and a centralized database complicates adding IDs and support for cards to the system. One must carefully check to see who really made the card, especially when it appears that the vendor who made the card might already have a different manufacturer ID listed in the central database. Linksys, D-Link, and NetGear are a number of US manufacturers of LAN hardware that often sell the same design. These same designs can be sold in Japan under names such as Buffalo and Corega. Often, these devices will all have the same manufacturer and product IDs." ], "previous_source": "", "target": [ "" ], "id_hash": 2257468920577724449, "content_hash": 2257468920577724449, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:66", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 111, "source_unit": "https://translate-dev.freebsd.org/api/units/1145482/?format=api", "priority": 100, "id": 1145850, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=9f542405ce851021", "url": "https://translate-dev.freebsd.org/api/units/1145850/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.738497Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The PC Card bus code keeps a central database of card information, but not which driver is associated with them, in [.filename]#/sys/dev/pccard/pccarddevs#. It also provides a set of macros that allow one to easily construct simple entries in the table the driver uses to claim devices." ], "previous_source": "", "target": [ "PC Card总线在其中心数据库 <filename>/sys/dev/pccard/pccarddevs</filename>中保存了卡的信息, 但不包含哪个驱动程序与它们关联的信息。它也提供了一套宏,以允许在 驱动程序用来声明设备的表中容易地创建简单条目。" ], "id_hash": 1692407092459759484, "content_hash": 1692407092459759484, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:68", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/1145484/?format=api", "priority": 100, "id": 1145851, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=977ca348a96a677c", "url": "https://translate-dev.freebsd.org/api/units/1145851/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.778949Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Finally, some really low end devices do not contain manufacturer identification at all. These devices must be detected by matching the human readable CIS strings. While it would be nice if we did not need this method as a fallback, it is necessary for some very low end CD-ROM players and Ethernet cards. This method should generally be avoided, but a number of devices are listed in this section because they were added prior to the recognition of the OEM nature of the PC Card business. When adding new devices, prefer using the numeric method." ], "previous_source": "", "target": [ "最后,某些非常低端的设备根本不包含制造商标识。这些设备需要使用 可读CIS字符串来匹配它们。如果我们不需要这种应急办法该有多好,但对于 某些非常低端却非常流行的CD-ROM播放器来说却是必需的。通常应当避免 使用这种方法,但本节中还是列出了很多设备,因为它们是在认识到PC Card商业的<acronym>OEM</acronym>本质之前加入的,应当优先使用 数字方法。" ], "id_hash": -8160772913987086225, "content_hash": -8160772913987086225, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:70", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 95, "source_unit": "https://translate-dev.freebsd.org/api/units/1145486/?format=api", "priority": 100, "id": 1145852, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=0ebf1c45b92b986f", "url": "https://translate-dev.freebsd.org/api/units/1145852/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.785526Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Format of [.filename]#pccarddevs#" ], "previous_source": "", "target": [ "" ], "id_hash": -3044558013603604415, "content_hash": -3044558013603604415, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:72", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1145488/?format=api", "priority": 100, "id": 1145853, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=55bf8e9e0d169841", "url": "https://translate-dev.freebsd.org/api/units/1145853/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.792668Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "There are four sections in the [.filename]#pccarddevs# files. The first section lists the manufacturer numbers for vendors that use them. This section is sorted in numerical order. The next section has all of the products that are used by these vendors, along with their product ID numbers and a description string. The description string typically is not used (instead we set the device's description based on the human readable CIS, even if we match on the numeric version). These two sections are then repeated for devices that use the string matching method. Finally, C-style comments enclosed in `/*` and `*/` characters are allowed anywhere in the file." ], "previous_source": "", "target": [ "<filename>pccarddevs</filename>文件有四节。第一节为使用 它们的那些供货商列出了制造商号码。本节按数字排序。下一节包含了 这些供货商使用的所有产品,包括他们的产品ID号码和描述字符串。 描述字符串通常不会被使用(相反,即使我们可以匹配数字版本号,我们 仍然基于人可读的CIS设置设备的描述)。然后为使用字符串匹配方法的 那些设备重复这两节的东西。最后,文件任何地方可以使用C风格的注释。" ], "id_hash": 2839195239300821874, "content_hash": 2839195239300821874, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:75", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 107, "source_unit": "https://translate-dev.freebsd.org/api/units/1145490/?format=api", "priority": 100, "id": 1145854, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=a766d90706817372", "url": "https://translate-dev.freebsd.org/api/units/1145854/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.799790Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The first section of the file contains the vendor IDs. Please keep this list sorted in numeric order. Also, please coordinate changes to this file because we share it with NetBSD to help facilitate a common clearing house for this information. For example, here are the first few vendor IDs:" ], "previous_source": "", "target": [ "文件的第一节包含供货商ID。请保持列表按数字排序。此外,为了 能有一个通用清晰的保存地来方便地保存这些信息,我们与NetBSD共享此 文件,因此请协调对此文件的任何更改。例如:" ], "id_hash": -6469325092003788814, "content_hash": -6469325092003788814, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:77", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 50, "source_unit": "https://translate-dev.freebsd.org/api/units/1145492/?format=api", "priority": 100, "id": 1145855, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=2638571ad297c7f2", "url": "https://translate-dev.freebsd.org/api/units/1145855/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.807463Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "vendor FUJITSU\t\t\t0x0004 Fujitsu Corporation\nvendor NETGEAR_2\t\t0x000b Netgear\nvendor PANASONIC\t\t0x0032\tMatsushita Electric Industrial Co.\nvendor SANDISK\t\t\t0x0045\tSandisk Corporation\n" ], "previous_source": "", "target": [ "vendor FUJITSU\t\t\t0x0004 Fujitsu Corporation\nvendor NETGEAR_2\t\t0x000b Netgear\nvendor PANASONIC\t\t0x0032\tMatsushita Electric Industrial Co.\nvendor SANDISK\t\t\t0x0045\tSandisk Corporation\n" ], "id_hash": -2936074196829184918, "content_hash": -2936074196829184918, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:84", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1145494/?format=api", "priority": 100, "id": 1145856, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=5740f812efce5c6a", "url": "https://translate-dev.freebsd.org/api/units/1145856/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.815911Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Chances are very good that the `NETGEAR_2` entry is really an OEM that NETGEAR purchased cards from and the author of support for those cards was unaware at the time that Netgear was using someone else's ID. These entries are fairly straightforward. The vendor keyword denotes the kind of line that this is, followed by the name of the vendor. This name will be repeated later in [.filename]#pccarddevs#, as well as used in the driver's match tables, so keep it short and a valid C identifier. A numeric ID in hex identifies the manufacturer. Do not add IDs of the form `0xffffffff` or `0xffff` because these are reserved IDs (the former is \"no ID set\" while the latter is sometimes seen in extremely poor quality cards to try to indicate \"none\"). Finally there is a string description of the company that makes the card. This string is not used in FreeBSD for anything but commentary purposes." ], "previous_source": "", "target": [ "显示了几个供货商ID。很凑巧的是<literal>NETGEAR_2</literal> 实际上是NETGEAR从其购买卡的OEM,对那些卡提供支持的作者那时并不知道 NETgear使用的是别人的ID。这些条目相当直接易懂。每行上都有供货商 关键字来指示本行的类别。也有供货商的名字。名字将会在pccarddevs文件 的后面重复出现,名字也会用在驱动程序的匹配表中,因此保持它的短小 并且是有效的C标识符。还有一个给供货商的十六进制数字ID。不要添加 <literal>0xffffffff</literal>或<literal>0xffff</literal>形式的ID, 因为它们是保留ID(前者是'空ID集合',而后者有时会在质量极其差的卡中 看到,用来指示none)。最后还有关于制卡公司的描述字符串。这个字符串 在FreeBSD中除了用于注释目的外并没有被使用过。" ], "id_hash": 2349895735773742035, "content_hash": 2349895735773742035, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:87", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 156, "source_unit": "https://translate-dev.freebsd.org/api/units/1145496/?format=api", "priority": 100, "id": 1145857, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=a09c81b8adffc3d3", "url": "https://translate-dev.freebsd.org/api/units/1145857/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.822961Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The second section of the file contains the products. As shown in this example, the format is similar to the vendor lines:" ], "previous_source": "", "target": [ "文件的第二节包含产品. 如你在下面例子中看到的:" ], "id_hash": -2360564146529436253, "content_hash": -2360564146529436253, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:89", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1145498/?format=api", "priority": 100, "id": 1145858, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=5f3d976a6096fda3", "url": "https://translate-dev.freebsd.org/api/units/1145858/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.833074Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "/* Allied Telesis K.K. */\nproduct ALLIEDTELESIS LA_PCM\t0x0002 Allied Telesis LA-PCM\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3833790231412605284, "content_hash": -3833790231412605284, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:94", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1145500/?format=api", "priority": 100, "id": 1145859, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=4acba418c949fe9c", "url": "https://translate-dev.freebsd.org/api/units/1145859/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.842134Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "/* Archos */\nproduct\tARCHOS ARC_ATAPI\t0x0043 MiniCD\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3508837733988372614, "content_hash": 3508837733988372614, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:97", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1145502/?format=api", "priority": 100, "id": 1145860, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=b0b1e55414dd1086", "url": "https://translate-dev.freebsd.org/api/units/1145860/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.876957Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The `product` keyword is followed by the vendor name, repeated from above. This is followed by the product name, which is used by the driver and should be a valid C identifier, but may also start with a number. As with the vendors, the hex product ID for this card follows the same convention for `0xffffffff` and `0xffff`. Finally, there is a string description of the device itself. This string typically is not used in FreeBSD, since FreeBSD's pccard bus driver will construct a string from the human readable CIS entries, but it can be used in the rare cases where this is somehow insufficient. The products are in alphabetical order by manufacturer, then numerical order by product ID. They have a C comment before each manufacturer's entries and there is a blank line between entries." ], "previous_source": "", "target": [ "格式与供货商的那些行相似。其中有产品关键字。然后是供货商名字, 由上面重复而来。后面跟着产品名字,此名字在驱动程序中使用,且应当 是一个有效C标识符,但可以以数字开头。然后是卡的十六进制产品ID。 供货商通常对<literal>0xffffffff</literal>和 <literal>0xffff</literal>有相同的约定。最后是关于设备自身的字符串 描述。由于FreeBSD的pccard总线驱动程序会从人可读的CIS条目创建一个 字符串,因此这个字符串在FreeBSD中通常不被使用,但某些CIS条目不能 满足要求的情况下还可能使用。产品按制造商的字母顺序排序,然后再按 产品ID的数字排序。每个制造商条目前有一条C注释,条目之间有一个空行。" ], "id_hash": -6566340559502219501, "content_hash": -6566340559502219501, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:100", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 136, "source_unit": "https://translate-dev.freebsd.org/api/units/1145504/?format=api", "priority": 100, "id": 1145861, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=24dfac0d14a16713", "url": "https://translate-dev.freebsd.org/api/units/1145861/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.889009Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The third section is like the previous vendor section, but with all of the manufacturer numeric IDs set to `-1`, meaning \"match anything found\" in the FreeBSD pccard bus code. Since these are C identifiers, their names must be unique. Otherwise the format is identical to the first section of the file." ], "previous_source": "", "target": [ "" ], "id_hash": -2407123140542802357, "content_hash": -2407123140542802357, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:102", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 52, "source_unit": "https://translate-dev.freebsd.org/api/units/1145506/?format=api", "priority": 100, "id": 1145862, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=5e982e41d552d64b", "url": "https://translate-dev.freebsd.org/api/units/1145862/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.897183Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The final section contains the entries for those cards that must be identified by string entries. This section's format is a little different from the generic section:" ], "previous_source": "", "target": [ "最后一节包含那些必须用字符串匹配的卡。这一节的格式与通用 节的格式有点不同:" ], "id_hash": 7337680604393204705, "content_hash": 7337680604393204705, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:104", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1145508/?format=api", "priority": 100, "id": 1145863, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=e5d4ada20c216be1", "url": "https://translate-dev.freebsd.org/api/units/1145863/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.903698Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "product ADDTRON AWP100\t\t{ \"Addtron\", \"AWP-100&spWireless&spPCMCIA\", \"Version&sp01.02\", NULL }\nproduct ALLIEDTELESIS WR211PCM\t{ \"Allied&spTelesis&spK.K.\", \"WR211PCM\", NULL, NULL } Allied Telesis WR211PCM\n" ], "previous_source": "", "target": [ "product ADDTRON AWP100\t\t{ \"Addtron\", \"AWP-100&spWireless&spPCMCIA\", \"Version&sp01.02\", NULL }\nproduct ALLIEDTELESIS WR211PCM\t{ \"Allied&spTelesis&spK.K.\", \"WR211PCM\", NULL, NULL } Allied Telesis WR211PCM\n" ], "id_hash": 2141018115265675357, "content_hash": 2141018115265675357, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:109", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1145510/?format=api", "priority": 100, "id": 1145864, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=9db66ca1da16405d", "url": "https://translate-dev.freebsd.org/api/units/1145864/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.910835Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "The familiar `product` keyword is followed by the vendor name and the card name, just as in the second section of the file. Here the format deviates from that used earlier. There is a {} grouping, followed by a number of strings. These strings correspond to the vendor, product, and extra information that is defined in a CIS_INFO tuple. These strings are filtered by the program that generates [.filename]#pccarddevs.h# to replace &sp with a real space. NULL strings mean that the corresponding part of the entry should be ignored. The example shown here contains a bad entry. It should not contain the version number unless that is critical for the operation of the card. Sometimes vendors will have many different versions of the card in the field that all work, in which case that information only makes it harder for someone with a similar card to use it with FreeBSD. Sometimes it is necessary when a vendor wishes to sell many different parts under the same brand due to market considerations (availability, price, and so forth). Then it can be critical to disambiguating the card in those rare cases where the vendor kept the same manufacturer/product pair. Regular expression matching is not available at this time." ], "previous_source": "", "target": [ "我们已经熟悉了产品关键字,后跟供货商名字,然后再跟卡的名字, 就象在文件第二节中那样。然而,这之后就与那格式不同了。有一个 {}分组,后跟几个字符串。这些字符串对应CIS_INFO三元组中定义的 供货商,产品和额外信息。这些字符串被产生 <filename>pccarddevs.h</filename>的程序过滤,将 &sp替换为 实际的空格。空条目意味着条目的这部分应当被忽略。在我选择的例子中 有一个错误的条目。除非对卡的操作来说至关重要,否则不应当在其中 包含版本号。有时供货商在这个字段中会有卡的很多不同版本,这些版本 都能工作,这种情况下那些信息只会让那些拥有相似卡的人在FreeBSD中 更难以使用。有时当供货商出于市场考虑(可用性,价格等等),希望出售 同一品牌下的很多不同部分时,这也是有必要的。如果这样,则在那些 供货商仍然保持相同的制造商/产品对的少见情况下,能否区分开卡至关 重要. 此时不能使用正则表达式匹配。" ], "id_hash": 5350628204151505928, "content_hash": 5350628204151505928, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:112", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 206, "source_unit": "https://translate-dev.freebsd.org/api/units/1145512/?format=api", "priority": 100, "id": 1145865, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=ca414000b9a30408", "url": "https://translate-dev.freebsd.org/api/units/1145865/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.917118Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Sample Probe Routine" ], "previous_source": "", "target": [ "探测例程样例" ], "id_hash": -1891225719873067782, "content_hash": -1891225719873067782, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:114", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1145514/?format=api", "priority": 100, "id": 1145866, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=65c1043a58e224fa", "url": "https://translate-dev.freebsd.org/api/units/1145866/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.923689Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "To understand how to add a device to the list of supported devices, one must understand the probe and/or match routines that many drivers have. It is complicated a little in FreeBSD 5.x because there is a compatibility layer for OLDCARD present as well. Since only the window-dressing is different, an idealized version will be presented here." ], "previous_source": "", "target": [ "要懂得如何向所支持的设备列表中添加设备,就必须懂得很多驱动程序 都有的探测和/或匹配例程。由于也为老卡提供了一个兼容层,这在 FreeBSD 5.x中有一点复杂。由于只是window-dressing不同,这儿给出了 一个理想化的版本。" ], "id_hash": 2580211104589980244, "content_hash": 2580211104589980244, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:117", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 57, "source_unit": "https://translate-dev.freebsd.org/api/units/1145516/?format=api", "priority": 100, "id": 1145867, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=a3cec0543e9aa254", "url": "https://translate-dev.freebsd.org/api/units/1145867/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.928734Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "static const struct pccard_product wi_pccard_products[] = {\n\tPCMCIA_CARD(3COM, 3CRWE737A, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_PCM_S11, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_CF_S11G, 0),\n\tPCMCIA_CARD(TDK, LAK_CD011WL, 0),\n\t{ NULL }\n};\n" ], "previous_source": "", "target": [ "static const struct pccard_product wi_pccard_products[] = {\n\tPCMCIA_CARD(3COM, 3CRWE737A, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_PCM_S11, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_CF_S11G, 0),\n+\tPCMCIA_CARD(BUFFALO, WLI_CF2_S11G, 0),\n\tPCMCIA_CARD(TDK, LAK_CD011WL, 0),\n\t{ NULL }\n};\n" ], "id_hash": 6182424488878226058, "content_hash": 6182424488878226058, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:127", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/1145518/?format=api", "priority": 100, "id": 1145868, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=d5cc625116433a8a", "url": "https://translate-dev.freebsd.org/api/units/1145868/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.934752Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "static int\nwi_pccard_probe(dev)\n\tdevice_t\tdev;\n{\n\tconst struct pccard_product *pp;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2106792880898237868, "content_hash": -2106792880898237868, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:133", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1145520/?format=api", "priority": 100, "id": 1145869, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=62c32b097ebd1a54", "url": "https://translate-dev.freebsd.org/api/units/1145869/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.940572Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "\tif ((pp = pccard_product_lookup(dev, wi_pccard_products,\n\t sizeof(wi_pccard_products[0]), NULL)) != NULL) {\n\t\tif (pp->pp_name != NULL)\n\t\t\tdevice_set_desc(dev, pp->pp_name);\n\t\treturn (0);\n\t}\n\treturn (ENXIO);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 6568088864489306581, "content_hash": 6568088864489306581, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:142", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1145522/?format=api", "priority": 100, "id": 1145870, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=db268a05e51579d5", "url": "https://translate-dev.freebsd.org/api/units/1145870/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.945806Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Here we have a simple pccard probe routine that matches a few devices. As stated above, the name may vary (if it is not `foo_pccard_probe()` it will be `foo_pccard_match()`). The function `pccard_product_lookup()` is a generalized function that walks the table and returns a pointer to the first entry that it matches. Some drivers may use this mechanism to convey additional information about some cards to the rest of the driver, so there may be some variance in the table. The only requirement is that each row of the table must have a `struct pccard_product` as the first element." ], "previous_source": "", "target": [ "这儿我们有一个可以匹配少数几个设备的简单pccard探测例程。如上面 所提到,名字可能不同(如果不是 <function>foo_pccard_probe()</function>则就是 <function>foo_pccard_match()</function>)。函数 <function>pccard_product_lookup()</function>是一个通用函数,它遍历 表并返回指向它所匹配的第一项的指针。一些驱动程序可能使用这个机制来 将某些卡的附加信息传递到驱动程序的其它部分,因此表中可能有些变体。 唯一的要求就是如果你有一个不同的表,则让表的结构的第一个元素为 结构pccard_product。" ], "id_hash": -5200005682739554936, "content_hash": -5200005682739554936, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:145", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 98, "source_unit": "https://translate-dev.freebsd.org/api/units/1145524/?format=api", "priority": 100, "id": 1145871, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=37d5de61e24bd588", "url": "https://translate-dev.freebsd.org/api/units/1145871/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.950837Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Looking at the table `wi_pccard_products`, one notices that all the entries are of the form `PCMCIA_CARD(_foo_, _bar_, _baz_)`. The _foo_ part is the manufacturer ID from [.filename]#pccarddevs#. The _bar_ part is the product ID. _baz_ is the expected function number for this card. Many pccards can have multiple functions, and some way to disambiguate function 1 from function 0 is needed. You may see `PCMCIA_CARD_D`, which includes the device description from [.filename]#pccarddevs#. You may also see `PCMCIA_CARD2` and `PCMCIA_CARD2_D` which are used when you need to match both CIS strings and manufacturer numbers, in the \"use the default description\" and \"take the description from pccarddevs\" flavors." ], "previous_source": "", "target": [ "" ], "id_hash": -5458777381313587808, "content_hash": -5458777381313587808, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:147", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 106, "source_unit": "https://translate-dev.freebsd.org/api/units/1145526/?format=api", "priority": 100, "id": 1145872, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=343e86e4beddd5a0", "url": "https://translate-dev.freebsd.org/api/units/1145872/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.978207Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Putting it All Together" ], "previous_source": "", "target": [ "将它合在一起" ], "id_hash": -262665369994054147, "content_hash": -262665369994054147, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:149", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1145528/?format=api", "priority": 100, "id": 1145873, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=7c5ad33cd6b535fd", "url": "https://translate-dev.freebsd.org/api/units/1145873/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.984810Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "To add a new device, one must first obtain the identification information from the device. The easiest way to do this is to insert the device into a PC Card or CF slot and issue `devinfo -v`. Sample output:" ], "previous_source": "", "target": [ "因此,为了一个增加新设备,必须进行下面步骤。首先,必须从设备 获得标识信息。完成这个最容易的方法就是将设备插入到PC Card或CF槽中, 并发出<command>devinfo -v</command>。你可能会看到一些类似下面的 东西:" ], "id_hash": -8478039102514938411, "content_hash": -8478039102514938411, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:152", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/1145530/?format=api", "priority": 100, "id": 1145874, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=0a57f45ad6b9bdd5", "url": "https://translate-dev.freebsd.org/api/units/1145874/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.990816Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ " cbb1 pnpinfo vendor=0x104c device=0xac51 subvendor=0x1265 subdevice=0x0300 class=0x060700 at slot=10 function=1\n cardbus1\n pccard1\n unknown pnpinfo manufacturer=0x026f product=0x030c cisvendor=\"BUFFALO\" cisproduct=\"WLI2-CF-S11\" function_type=6 at function=0\n" ], "previous_source": "", "target": [ " cbb1 pnpinfo vendor=0x104c device=0xac51 subvendor=0x1265 subdevice=0x0300 class=0x060700 at slot=10 function=1\n cardbus1\n pccard1\n unknown pnpinfo manufacturer=0x026f product=0x030c cisvendor=\"BUFFALO\" cisproduct=\"WLI2-CF-S11\" function_type=6 at function=0\n" ], "id_hash": 5492016683480808908, "content_hash": 5492016683480808908, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:159", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1145532/?format=api", "priority": 100, "id": 1145875, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=cc3790135f647dcc", "url": "https://translate-dev.freebsd.org/api/units/1145875/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:55.997953Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "`manufacturer` and `product` are the numeric IDs for this product, while `cisvendor` and `cisproduct` are the product description strings from the CIS." ], "previous_source": "", "target": [ "" ], "id_hash": -1215372771168123980, "content_hash": -1215372771168123980, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:162", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1145534/?format=api", "priority": 100, "id": 1145876, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=6f2220e768d783b4", "url": "https://translate-dev.freebsd.org/api/units/1145876/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.003701Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Since we first want to prefer the numeric option, first try to construct an entry based on that. The above card has been slightly fictionalized for the purpose of this example. The vendor is BUFFALO, which we see already has an entry:" ], "previous_source": "", "target": [ "由于我们首先想优先使用数字选项,因此首先尝试创建基于此的条目。 为了示例,上面的卡已经被稍稍虚构化了。我们看到的供货商为BUFFALO, 它已经有一个条目了:" ], "id_hash": 7820299803537552075, "content_hash": 7820299803537552075, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:164", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 42, "source_unit": "https://translate-dev.freebsd.org/api/units/1145536/?format=api", "priority": 100, "id": 1145877, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=ec87493cd2e9b2cb", "url": "https://translate-dev.freebsd.org/api/units/1145877/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.010619Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "vendor BUFFALO\t\t\t0x026f\tBUFFALO (Melco Corporation)\n" ], "previous_source": "", "target": [ "vendor BUFFALO\t\t\t0x026f\tBUFFALO (Melco Corporation)\n" ], "id_hash": 2628021212522399818, "content_hash": 2628021212522399818, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:168", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1145538/?format=api", "priority": 100, "id": 1145878, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=a4789b5e7296c84a", "url": "https://translate-dev.freebsd.org/api/units/1145878/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.017976Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "But there is no entry for this particular card. Instead we find:" ], "previous_source": "", "target": [ "这样我们就可以了。为这个卡查找一个条目,但我们没有发现。但我们 发现:" ], "id_hash": -7954554735797282013, "content_hash": -7954554735797282013, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:171", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1145540/?format=api", "priority": 100, "id": 1145879, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=119bbe9ce266db23", "url": "https://translate-dev.freebsd.org/api/units/1145879/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.023958Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "/* BUFFALO */\nproduct BUFFALO WLI_PCM_S11\t0x0305\tBUFFALO AirStation 11Mbps WLAN\nproduct BUFFALO LPC_CF_CLT\t0x0307\tBUFFALO LPC-CF-CLT\nproduct\tBUFFALO\tLPC3_CLT\t0x030a\tBUFFALO LPC3-CLT Ethernet Adapter\nproduct BUFFALO WLI_CF_S11G\t0x030b\tBUFFALO AirStation 11Mbps CF WLAN\n" ], "previous_source": "", "target": [ "/* BUFFALO */\nproduct BUFFALO WLI_PCM_S11\t0x0305\tBUFFALO AirStation 11Mbps WLAN\nproduct BUFFALO LPC_CF_CLT\t0x0307\tBUFFALO LPC-CF-CLT\nproduct\tBUFFALO\tLPC3_CLT\t0x030a\tBUFFALO LPC3-CLT Ethernet Adapter\nproduct BUFFALO WLI_CF_S11G\t0x030b\tBUFFALO AirStation 11Mbps CF WLAN\n" ], "id_hash": 2141239805997407736, "content_hash": 2141239805997407736, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:179", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/1145542/?format=api", "priority": 100, "id": 1145880, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=9db736423f66ddf8", "url": "https://translate-dev.freebsd.org/api/units/1145880/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.029933Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "To add the device, we can just add this entry to [.filename]#pccarddevs#:" ], "previous_source": "", "target": [ "我们就可以向<filename>pccarddevs</filename>中添加:" ], "id_hash": -8239650386322601333, "content_hash": -8239650386322601333, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:182", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1145544/?format=api", "priority": 100, "id": 1145881, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=0da6e1a111d4ca8b", "url": "https://translate-dev.freebsd.org/api/units/1145881/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.036476Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "product BUFFALO WLI2_CF_S11G\t0x030c\tBUFFALO AirStation ultra 802.11b CF\n" ], "previous_source": "", "target": [ "product BUFFALO WLI2_CF_S11G\t0x030c\tBUFFALO AirStation ultra 802.11b CF\n" ], "id_hash": 8800537445375937307, "content_hash": 8800537445375937307, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:186", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1145546/?format=api", "priority": 100, "id": 1145882, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=fa21ca2de8280b1b", "url": "https://translate-dev.freebsd.org/api/units/1145882/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.042566Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Once these steps are complete, the card can be added to the driver. That is a simple operation of adding one line:" ], "previous_source": "", "target": [ "目前,需要一个手动步骤来 重新产生<filename>pccarddevs.h</filename>,用来将这些标识符转换 到客户驱动程序。你在驱动程序中使用它们之前必须完成下面步骤:" ], "id_hash": -6807721137635600915, "content_hash": -6807721137635600915, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:189", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1145548/?format=api", "priority": 100, "id": 1145883, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=21861db1b54fd5ed", "url": "https://translate-dev.freebsd.org/api/units/1145883/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.048234Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "static const struct pccard_product wi_pccard_products[] = {\n\tPCMCIA_CARD(3COM, 3CRWE737A, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_PCM_S11, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_CF_S11G, 0),\n+\tPCMCIA_CARD(BUFFALO, WLI_CF2_S11G, 0),\n\tPCMCIA_CARD(TDK, LAK_CD011WL, 0),\n\t{ NULL }\n};\n" ], "previous_source": "", "target": [ "static const struct pccard_product wi_pccard_products[] = {\n\tPCMCIA_CARD(3COM, 3CRWE737A, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_PCM_S11, 0),\n\tPCMCIA_CARD(BUFFALO, WLI_CF_S11G, 0),\n+\tPCMCIA_CARD(BUFFALO, WLI_CF2_S11G, 0),\n\tPCMCIA_CARD(TDK, LAK_CD011WL, 0),\n\t{ NULL }\n};\n" ], "id_hash": 7481058772846797093, "content_hash": 7481058772846797093, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:200", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1145550/?format=api", "priority": 100, "id": 1145884, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=e7d20f514b5a6125", "url": "https://translate-dev.freebsd.org/api/units/1145884/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.082347Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Note that I have included a '`+`' in the line before the line that I added, but that is simply to highlight the line. Do not add it to the actual driver. Once you have added the line, you can recompile your kernel or module and test it. If the device is recognized and works, please submit a patch. If it does not work, please figure out what is needed to make it work and submit a patch. If the device is not recognized at all, you have done something wrong and should recheck each step." ], "previous_source": "", "target": [ "注意,我在我添加的行前面包含了'<literal>+</literal>',但这只是 用来强调这一行。不要把它添加到实际驱动程序中。一旦你添加了这行,就 可以重新编译内核或模块,并试着看它是否能识别设备。如果它识别出设备 并能工作,请提交补丁。如果它不工作,请找出让它工作所需要的东西并 提交一个补丁。如果它根本不识别设备,那么你可能做错了什么,应当重新 检查每一步。" ], "id_hash": 8233484621137530935, "content_hash": 8233484621137530935, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:203", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 96, "source_unit": "https://translate-dev.freebsd.org/api/units/1145552/?format=api", "priority": 100, "id": 1145885, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=f24336a3da8b5037", "url": "https://translate-dev.freebsd.org/api/units/1145885/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.087728Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "If you are a FreeBSD src committer, and everything appears to be working, then you can commit the changes to the tree. However, there are some minor tricky things to be considered. [.filename]#pccarddevs# must be committed to the tree first. Then [.filename]#pccarddevs.h# must be regenerated and committed as a second step, ensuring that the right $FreeBSD$ tag is in the latter file. Finally, commit the additions to the driver." ], "previous_source": "", "target": [ "如果你是一个FreeBSD源代码的committer,并且所有东西看起来都 正常工作,则你应当把这些改变提交到树中。然而有些小技巧的东西你 需要考虑。首先,你必须提交<filename>pccarddevs</filename>文件到 树中。完成后,你必须重新产生<filename>pccarddevs.h</filename> 并将它作为另一次提交来提交(这是为了确保正确的 $FreeBSD$标签会留在后面的文件中)。最后,你需要把 其它东西提交到驱动程序。" ], "id_hash": -3447698454290902510, "content_hash": -3447698454290902510, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:205", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 69, "source_unit": "https://translate-dev.freebsd.org/api/units/1145554/?format=api", "priority": 100, "id": 1145886, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=50275085c353d212", "url": "https://translate-dev.freebsd.org/api/units/1145886/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.093443Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Submitting a New Device" ], "previous_source": "", "target": [ "提交新设备" ], "id_hash": -3319951420379992468, "content_hash": -3319951420379992468, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:207", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1145556/?format=api", "priority": 100, "id": 1145887, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=51ed29c5e4b26e6c", "url": "https://translate-dev.freebsd.org/api/units/1145887/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.098944Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpccard_index/zh_CN/?format=api", "source": [ "Please do not send entries for new devices to the author directly. Instead, submit them as a PR and send the author the PR number for his records. This ensures that entries are not lost. When submitting a PR, it is unnecessary to include the [.filename]#pccardevs.h# diffs in the patch, since those will be regenerated. It is necessary to include a description of the device, as well as the patches to the client driver. If you do not know the name, use OEM99 as the name, and the author will adjust OEM99 accordingly after investigation. Committers should not commit OEM99, but instead find the highest OEM entry and commit one more than that." ], "previous_source": "", "target": [ "很多人直接把新设备的条目发送给作者。请不要那样做。请将它们作为 PR来提交,并将PR号码发送给作者用于记录。这样确保条目不会丢失。提交 PR时,补丁中没有必要包含<filename>pccardevs.h</filename>的diff, 因为那些东西可以重新产生。包含设备的描述和客户驱动程序的补丁是必要 的。如果你不知道名字,使用OEM99作为名字,作者将会调查后相应地调整 OEM99。提交者不应当提交OEM99,而应该找到最高的OEM条目并提交高于那个 的一个。" ], "id_hash": -2349118727671854167, "content_hash": -2349118727671854167, "location": "documentation/content/en/books/arch-handbook/pccard/_index.adoc:209", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 113, "source_unit": "https://translate-dev.freebsd.org/api/units/1145558/?format=api", "priority": 100, "id": 1145888, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpccard_index/zh_CN/?checksum=5f6640f69de6cba9", "url": "https://translate-dev.freebsd.org/api/units/1145888/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:56.104622Z" } ] }