Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/units/?format=api
https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "How to Customize a NIC Name" ], "previous_source": "", "target": [ "如何自定义 NIC 名称" ], "id_hash": 1722184174445466547, "content_hash": 1722184174445466547, "location": "pages/customize-nic.adoc:1", "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": false, "num_words": 6, "source_unit": "https://translate.fedoraproject.org/api/units/4891740/?format=api", "priority": 100, "id": 4893468, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=97e66d61d39f13b3", "url": "https://translate.fedoraproject.org/api/units/4893468/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:58.895601Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Using a systemd Link File" ], "previous_source": "", "target": [ "使用 systemd 链接文件" ], "id_hash": -7161953705989479408, "content_hash": -7161953705989479408, "location": "pages/customize-nic.adoc:3", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate.fedoraproject.org/api/units/4891743/?format=api", "priority": 100, "id": 4893469, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=1c9ba10cd0b46410", "url": "https://translate.fedoraproject.org/api/units/4893469/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:58.921386Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Example: Customize NIC via systemd Link File" ], "previous_source": "", "target": [ "示例:通过 systemd 链接文件自定义NIC" ], "id_hash": 3260150257625446687, "content_hash": 3260150257625446687, "location": "pages/customize-nic.adoc:8", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate.fedoraproject.org/api/units/4891752/?format=api", "priority": 100, "id": 4893472, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=ad3e6162e429b91f", "url": "https://translate.fedoraproject.org/api/units/4893472/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.017719Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Using Udev Rules" ], "previous_source": "", "target": [ "使用 Udev 规则" ], "id_hash": 6379034211835479685, "content_hash": 6379034211835479685, "location": "pages/customize-nic.adoc:25", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate.fedoraproject.org/api/units/4891758/?format=api", "priority": 100, "id": 4893474, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=d886e1d16e848685", "url": "https://translate.fedoraproject.org/api/units/4893474/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.065646Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Example: Customize NIC via Udev Rules" ], "previous_source": "", "target": [ "示例:通过 Udev 规则自定义 NIC" ], "id_hash": 8161545899518671388, "content_hash": 8161545899518671388, "location": "pages/customize-nic.adoc:28", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate.fedoraproject.org/api/units/4891762/?format=api", "priority": 100, "id": 4893476, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=f143a2c0fedb3a1c", "url": "https://translate.fedoraproject.org/api/units/4893476/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.105070Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Networking in the Initramfs via Kernel Arguments" ], "previous_source": "", "target": [ "通过内核参数在 Initramfs 中联网" ], "id_hash": 543548367044367028, "content_hash": 543548367044367028, "location": "pages/customize-nic.adoc:42", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate.fedoraproject.org/api/units/4891766/?format=api", "priority": 100, "id": 4893478, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=878b125c27ec52b4", "url": "https://translate.fedoraproject.org/api/units/4893478/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.143068Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "If networking in the initramfs is required, the kernel argument `ifname=` will dynamically create a udev rule to change the name of a NIC." ], "previous_source": "", "target": [ "如果需要在 initramfs 中联网,内核参数 `ifname=` 将动态创建一条 udev 规则来更改网卡名称。" ], "id_hash": -1460292114028733523, "content_hash": -1460292114028733523, "location": "pages/customize-nic.adoc:44", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate.fedoraproject.org/api/units/4891768/?format=api", "priority": 100, "id": 4893479, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=6bbc000f2b035bad", "url": "https://translate.fedoraproject.org/api/units/4893479/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.169717Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Currently, unlike other parts of the networking config from the initramfs (e.g. static IPs, hostnames, etc.), these udev rules are not persisted into the real root. If the custom name needs to be applied to the real root, either a link file or udev rule must be created, as shown above. See xref:https://github.com/coreos/fedora-coreos-tracker/issues/553[this issue] for more details." ], "previous_source": "", "target": [ "目前,与 initramfs 中网络配置的其他部分(如静态 IP、主机名等)不同,这些 udev 规则不会持久存在实际根目录中。如果需要将自定义名称应用到实际根目录,则必须创建链接文件或 udev 规则,如上所示。详见 xref:https://github.com/coreos/fedora-coreos-tracker/issues/553[这个讨论]。" ], "id_hash": -395319189914167510, "content_hash": -395319189914167510, "location": "pages/customize-nic.adoc:46", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 57, "source_unit": "https://translate.fedoraproject.org/api/units/4891771/?format=api", "priority": 100, "id": 4893480, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=7a838b4a9045572a", "url": "https://translate.fedoraproject.org/api/units/4893480/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.195552Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "For example, to give the NIC with the MAC address `12:34:56:78:9a:bc` a name of \"infra\", provide a `ifname=infra:12:34:56:78:9a:bc` kernel argument. A udev rule would be created in the initramfs like:" ], "previous_source": "", "target": [ "例如,要给 MAC 地址为 \"12:34:56:78:9a:bc \"的网卡命名为 \"infra\",需要提供一个 \"ifname=infra:12:34:56:78:9a:bc \"内核参数。就会在 initramfs 中创建一个类似的 udev 规则:" ], "id_hash": 6944544615486674130, "content_hash": 6944544615486674130, "location": "pages/customize-nic.adoc:48", "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": true, "num_words": 30, "source_unit": "https://translate.fedoraproject.org/api/units/4891774/?format=api", "priority": 100, "id": 4893481, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=e05ffa88b4ef54d2", "url": "https://translate.fedoraproject.org/api/units/4893481/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.217703Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "# cat /etc/udev/rules.d/80-ifname.rules\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"12:34:56:78:9a:bc\", ATTR{type}==\"1\", NAME=\"infra\"\n" ], "previous_source": "", "target": [ "# cat /etc/udev/rules.d/80-ifname.rules\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"12:34:56:78:9a:bc\", ATTR{type}==\"1\", NAME=\"infra\"\n" ], "id_hash": 3822928050834238688, "content_hash": 3822928050834238688, "location": "pages/customize-nic.adoc:52", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate.fedoraproject.org/api/units/4891777/?format=api", "priority": 100, "id": 4893482, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=b50dc4ceb7d9ece0", "url": "https://translate.fedoraproject.org/api/units/4893482/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-08-08T10:27:59.244562Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "You can create a systemd https://www.freedesktop.org/software/systemd/man/systemd.link.html[link file] with Ignition configs." ], "previous_source": "", "target": [ "你可以创建一个包含 Ignition 配置的 systemd https://www.freedesktop.org/software/systemd/man/systemd.link.html[链接文件]。" ], "id_hash": 5663416685851369610, "content_hash": 5663416685851369610, "location": "pages/customize-nic.adoc:5", "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": 10, "source_unit": "https://translate.fedoraproject.org/api/units/6053349/?format=api", "priority": 100, "id": 6053355, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=ce987f783f30e08a", "url": "https://translate.fedoraproject.org/api/units/6053355/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-10-26T23:10:16.516378Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "For example, to name NIC with the MAC address `12:34:56:78:9a:bc` to \"infra\", place a systemd link file at `/etc/systemd/network/25-infra.link` using the xref:producing-ign.adoc[Butane] config snippet shown below:" ], "previous_source": "", "target": [ "例如,要将 MAC 地址为 \"12:34:56:78:9a:bc \"的网卡命名为 \"infra\",可使用下图所示的 xref:producing-ign.adoc[Butane] 配置片段在\"/etc/systemd/network/25-infra.link \"中放置 systemd 链接文件:" ], "id_hash": -7212471814474950207, "content_hash": -7212471814474950207, "location": "pages/customize-nic.adoc:7", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 26, "source_unit": "https://translate.fedoraproject.org/api/units/7757567/?format=api", "priority": 100, "id": 7757579, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=1be8271919b419c1", "url": "https://translate.fedoraproject.org/api/units/7757579/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-04-14T21:57:54.505040Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "Similarly, also through Ignition configs, to name NIC with the MAC address `12:34:56:78:9a:bc` to \"infra\", create a https://man7.org/linux/man-pages/man7/udev.7.html[udev rule] at `/etc/udev/rules.d/80-ifname.rules` using the xref:producing-ign.adoc[Butane] config snippet shown below:" ], "previous_source": "", "target": [ "同样,要通过 Ignition 配置将 MAC 地址为 \"12:34:56:78:9a:bc \"的网卡命名为 \"infra\",请使用下图所示的 xref:producing-ign.adoc[Butane] 配置片段在 `/etc/udev/rules.d/80-ifname.rules` 中创建 https://man7.org/linux/man-pages/man7/udev.7.html[udev规则]:" ], "id_hash": 4830491586457894970, "content_hash": 4830491586457894970, "location": "pages/customize-nic.adoc:27", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 28, "source_unit": "https://translate.fedoraproject.org/api/units/7757568/?format=api", "priority": 100, "id": 7757580, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=c3095a813d56003a", "url": "https://translate.fedoraproject.org/api/units/7757580/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-04-14T21:57:54.512172Z", "last_updated": "2023-06-16T11:46:33.795393Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "variant: fcos\nversion: {butane-latest-stable-spec}\nstorage:\n files:\n - path: /etc/systemd/network/25-infra.link\n mode: 0644\n contents:\n inline: |\n [Match]\n MACAddress=12:34:56:78:9a:bc\n [Link]\n Name=infra\n" ], "previous_source": "variant: fcos\nversion: 1.4.0\nstorage:\n files:\n - path: /etc/systemd/network/25-infra.link\n mode: 0644\n contents:\n inline: |\n [Match]\n MACAddress=12:34:56:78:9a:bc\n [Link]\n Name=infra\n", "target": [ "variant: fcos\nversion: 1.4.0\nstorage:\n files:\n - path: /etc/systemd/network/25-infra.link\n mode: 0644\n contents:\n inline: |\n [Match]\n MACAddress=12:34:56:78:9a:bc\n [Link]\n Name=infra\n" ], "id_hash": -6629100947354284522, "content_hash": -6629100947354284522, "location": "pages/customize-nic.adoc:23", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate.fedoraproject.org/api/units/16788341/?format=api", "priority": 100, "id": 16788357, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=2400b3cf94be0e16", "url": "https://translate.fedoraproject.org/api/units/16788357/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-08T22:17:21.518170Z", "last_updated": "2024-02-08T22:17:21.518224Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?format=api", "source": [ "variant: fcos\nversion: {butane-latest-stable-spec}\nstorage:\n files:\n - path: /etc/udev/rules.d/80-ifname.rules\n mode: 0644\n contents:\n inline: |\n SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"12:34:56:78:9a:bc\", ATTR{type}==\"1\", NAME=\"infra\"\n" ], "previous_source": "variant: fcos\nversion: 1.4.0\nstorage:\n files:\n - path: /etc/udev/rules.d/80-ifname.rules\n mode: 0644\n contents:\n inline: |\n SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"12:34:56:78:9a:bc\", ATTR{type}==\"1\", NAME=\"infra\"\n", "target": [ "variant: fcos\nversion: 1.4.0\nstorage:\n files:\n - path: /etc/udev/rules.d/80-ifname.rules\n mode: 0644\n contents:\n inline: |\n SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"12:34:56:78:9a:bc\", ATTR{type}==\"1\", NAME=\"infra\"\n" ], "id_hash": -8180478067134479280, "content_hash": -8180478067134479280, "location": "pages/customize-nic.adoc:40", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate.fedoraproject.org/api/units/16788342/?format=api", "priority": 100, "id": 16788358, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagescustomize-nic/zh_CN/?checksum=0e791a8a3b934450", "url": "https://translate.fedoraproject.org/api/units/16788358/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-08T22:17:21.538935Z", "last_updated": "2024-02-08T22:17:21.538963Z" } ] }{ "count": 15, "next": null, "previous": null, "results": [ { "translation": "