From 94a4501a4a76dc60c50efbd91582095e2cc34673 Mon Sep 17 00:00:00 2001 From: Sakiko Date: Mon, 4 Mar 2024 21:22:46 +0000 Subject: [PATCH] Add Chinese (Simplified) Translation Signed-off-by: Sakiko --- content/CONFIG.json | 3 +- content/STRUCTURE.zh-cn.json | 401 ++++++++++++++++++ content/WARNINGS.zh-cn.json | 3 + content/index.zh-cn.html | 207 +++++++++ .../common/download-headers.zh-cn.tpl.html | 7 + templates/common/footer.zh-cn.tpl.html | 18 + 6 files changed, 638 insertions(+), 1 deletion(-) create mode 100644 content/STRUCTURE.zh-cn.json create mode 100644 content/WARNINGS.zh-cn.json create mode 100644 content/index.zh-cn.html create mode 100644 templates/common/download-headers.zh-cn.tpl.html create mode 100644 templates/common/footer.zh-cn.tpl.html diff --git a/content/CONFIG.json b/content/CONFIG.json index 3088bd3b..2e297f6c 100644 --- a/content/CONFIG.json +++ b/content/CONFIG.json @@ -2,5 +2,6 @@ "languages": [ ["", "English", "Language"], ["ja", "日本語", "言語"], - ["de", "Deutsch", "Sprache"]] + ["de", "Deutsch", "Sprache"], + ["zh-cn", "简体中文", "语言"]] } diff --git a/content/STRUCTURE.zh-cn.json b/content/STRUCTURE.zh-cn.json new file mode 100644 index 00000000..b8a74ebc --- /dev/null +++ b/content/STRUCTURE.zh-cn.json @@ -0,0 +1,401 @@ +[ + {"path": "/", + "title": "", + "menu": ["主页"], + "generator": "html", + "meta": {"input": "index.zh-cn.html"}}, + + + + {"path": "/incus/", + "generator": "alias", + "meta": {"target": "/incus/introduction/"}}, + + {"path": "/incus/introduction/", + "title": "Incus - 介绍", + "menu": ["Incus", "介绍"], + "generator": "markdown", + "meta": {"input": "incus/introduction.md"}}, + + {"path": "/incus/announcement/", + "title": "Incus - 公告", + "menu": ["Incus", "公告"], + "generator": "markdown", + "meta": {"input": "incus/announcement.md"}}, + + {"path": "/incus/try-it/", + "title": "Incus - 在线体验", + "menu": ["Incus", "在线体验"], + "generator": "html", + "meta": {"input": "incus/try-it.html"}}, + + {"path": "/incus/news/", + "title": "Incus - 新闻", + "menu": ["Incus", "新闻"], + "generator": "news", + "meta": {"dir": "/content/incus/news/", + "input": "incus/news.md", + "toc_depth": "2-2", + "str_older": "旧闻", + "str_back": "回到概览"}}, + + {"path": "/incus/docs/", + "menu": ["Incus", "文档"], + "generator": "link", + "meta": {"url": "https://linuxcontainers.org/incus/docs/main/"}}, + + {"path": "/incus/downloads/", + "title": "Incus - 下载", + "menu": ["Incus", "下载"], + "generator": "downloads", + "meta": {"dir": "/downloads/incus", + "input": "incus/downloads.md"}}, + + {"path": "/incus/github/", + "menu": ["Incus", "GitHub"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/incus"}}, + + {"path": "/incus/forum/", + "menu": ["Incus", "论坛"], + "generator": "link", + "meta": {"url": "https://discuss.linuxcontainers.org"}}, + + {"path": "/incus/irc/", + "menu": ["Incus", "IRC"], + "generator": "link", + "meta": {"url": "https://web.libera.chat/#lxc"}}, + + {"path": "/incus/mailing-lists/", + "menu": ["Incus", "邮件列表"], + "generator": "link", + "meta": {"url": "https://lists.linuxcontainers.org"}}, + + + + {"path": "/lxd/", + "title": "LXD - 已被移至 Canonical", + "generator": "markdown", + "meta": {"input": "lxd/moved-to-canonical.md"}}, + + + + {"path": "/lxc/", + "generator": "alias", + "meta": {"target": "/lxc/introduction/"}}, + + {"path": "/lxc/introduction/", + "title": "LXC - 介绍", + "menu": ["LXC", "介绍"], + "generator": "markdown", + "meta": {"input": "lxc/introduction.md"}}, + + {"path": "/lxc/news/", + "title": "LXC - 新闻", + "menu": ["LXC", "新闻"], + "generator": "news", + "meta": {"dir": "/content/lxc/news/", + "input": "lxc/news.md", + "toc_depth": "2-2", + "str_older": "旧闻", + "str_back": "回到概览"}}, + + {"path": "/lxc/getting-started/", + "title": "LXC - 开始上手", + "menu": ["LXC", "开始上手"], + "generator": "markdown", + "meta": {"input": "lxc/getting-started.md"}}, + + {"path": "/lxc/documentation/", + "title": "LXC - 文档", + "menu": ["LXC", "文档"], + "generator": "markdown", + "meta": {"input": "lxc/documentation.md"}}, + + {"path": "/lxc/apidoc/", + "generator": "directory", + "meta": {"input": "lxc/apidoc"}}, + + {"path": "/lxc/manpages/", + "title": "LXC - 手册", + "menu": ["LXC", "手册"], + "generator": "manpages", + "meta": {"dir": "/manpages/lxc"}}, + + {"path": "/lxc/contribute/", + "title": "LXC - 贡献", + "menu": ["LXC", "贡献"], + "generator": "markdown", + "meta": {"input": "lxc/contribute.md"}}, + + {"path": "/lxc/security/", + "title": "LXC - 安全性", + "menu": ["LXC", "安全性"], + "generator": "markdown", + "meta": {"input": "lxc/security.md"}}, + + {"path": "/lxc/downloads/", + "title": "LXC - 下载", + "menu": ["LXC", "下载"], + "generator": "downloads", + "meta": {"dir": "/downloads/lxc", + "input": "lxc/downloads.md"}}, + + {"path": "/lxc/external-resources/", + "menu": ["LXC", "外部资源"]}, + + {"path": "/lxc/articles/", + "title": "LXC - 文章", + "menu": ["LXC", "文章"], + "generator": "markdown", + "meta": {"input": "lxc/articles.md"}}, + + {"path": "/lxc/forum/", + "menu": ["LXC", "论坛"], + "generator": "link", + "meta": {"url": "https://discuss.linuxcontainers.org"}}, + + {"path": "/lxc/mailing-lists/", + "menu": ["LXC", "邮件列表"], + "generator": "link", + "meta": {"url": "https://lists.linuxcontainers.org"}}, + + {"path": "/lxc/irc/", + "menu": ["LXC", "IRC"], + "generator": "link", + "meta": {"url": "https://web.libera.chat/#lxc"}}, + + {"path": "/lxc/github/", + "menu": ["LXC", "GitHub"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/lxc"}}, + + {"path": "/lxc/github-actions/", + "menu": ["LXC", "GitHub Actions"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/lxc/actions"}}, + + {"path": "/lxc/jenkins-ci/", + "menu": ["LXC", "Jenkins CI"], + "generator": "link", + "meta": {"url": "https://jenkins.linuxcontainers.org/view/LXC/"}}, + + + + {"path": "/lxcfs/", + "generator": "alias", + "meta": {"target": "/lxcfs/introduction/"}}, + + {"path": "/lxcfs/introduction/", + "title": "LXCFS - 介绍", + "menu": ["LXCFS", "介绍"], + "generator": "markdown", + "meta": {"input": "lxcfs/introduction.md"}}, + + {"path": "/lxcfs/news/", + "title": "LXCFS - 新闻", + "menu": ["LXCFS", "新闻"], + "generator": "news", + "meta": {"dir": "/content/lxcfs/news/", + "input": "lxcfs/news.md", + "toc_depth": "2-2", + "str_older": "旧闻", + "str_back": "回到概览"}}, + + {"path": "/lxcfs/getting-started/", + "title": "LXCFS - 开始上手", + "menu": ["LXCFS", "开始上手"], + "generator": "markdown", + "meta": {"input": "lxcfs/getting-started.md"}}, + + {"path": "/lxcfs/manpages/", + "title": "LXCFS - 手册", + "menu": ["LXCFS", "手册"], + "generator": "manpages", + "meta": {"dir": "/manpages/lxcfs"}}, + + {"path": "/lxcfs/contribute/", + "title": "LXCFS - 贡献", + "menu": ["LXCFS", "贡献"], + "generator": "markdown", + "meta": {"input": "lxcfs/contribute.md"}}, + + {"path": "/lxcfs/downloads/", + "title": "LXCFS - 下载", + "menu": ["LXCFS", "下载"], + "generator": "downloads", + "meta": {"dir": "/downloads/lxcfs", + "input": "lxcfs/downloads.md"}}, + + {"path": "/lxcfs/external-resources/", + "menu": ["LXCFS", "外部资源"]}, + + {"path": "/lxcfs/forum/", + "menu": ["LXCFS", "论坛"], + "generator": "link", + "meta": {"url": "https://discuss.linuxcontainers.org"}}, + + {"path": "/lxcfs/mailing-lists/", + "menu": ["LXCFS", "邮件列表"], + "generator": "link", + "meta": {"url": "https://lists.linuxcontainers.org"}}, + + {"path": "/lxcfs/irc/", + "menu": ["LXCFS", "IRC"], + "generator": "link", + "meta": {"url": "https://web.libera.chat/#lxc"}}, + + {"path": "/lxcfs/github/", + "menu": ["LXCFS", "GitHub"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/lxcfs"}}, + + {"path": "/lxcfs/github-actions/", + "menu": ["LXCFS", "GitHub Actions"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/lxcfs/actions"}}, + + + + {"path": "/distrobuilder/", + "generator": "alias", + "meta": {"target": "/distrobuilder/introduction/"}}, + + {"path": "/distrobuilder/introduction/", + "title": "distrobuilder - 介绍", + "menu": ["distrobuilder", "介绍"], + "generator": "markdown", + "meta": {"input": "distrobuilder/introduction.md"}}, + + {"path": "/distrobuilder/news/", + "title": "distrobuilder - 新闻", + "menu": ["distrobuilder", "新闻"], + "generator": "news", + "meta": {"dir": "/content/distrobuilder/news/", + "input": "distrobuilder/news.md", + "toc_depth": "2-2", + "str_older": "旧闻", + "str_back": "回到概览"}}, + + {"path": "/distrobuilder/documentation", + "menu": ["distrobuilder", "文档"], + "generator": "link", + "meta": {"url": "/distrobuilder/docs/latest/"}}, + + {"path": "/distrobuilder/contribute/", + "title": "distrobuilder - 贡献", + "menu": ["distrobuilder", "贡献"], + "generator": "markdown", + "meta": {"input": "distrobuilder/contribute.md"}}, + + {"path": "/distrobuilder/downloads/", + "title": "distrobuilder - 下载", + "menu": ["distrobuilder", "下载"], + "generator": "downloads", + "meta": {"dir": "/downloads/distrobuilder", + "input": "distrobuilder/downloads.md"}}, + + {"path": "/distrobuilder/external-resources/", + "menu": ["distrobuilder", "外部资源"]}, + + {"path": "/distrobuilder/forum/", + "menu": ["distrobuilder", "论坛"], + "generator": "link", + "meta": {"url": "https://discuss.linuxcontainers.org"}}, + + {"path": "/distrobuilder/mailing-lists/", + "menu": ["distrobuilder", "邮件列表"], + "generator": "link", + "meta": {"url": "https://lists.linuxcontainers.org"}}, + + {"path": "/distrobuilder/irc/", + "menu": ["distrobuilder", "IRC"], + "generator": "link", + "meta": {"url": "https://web.libera.chat/#lxc"}}, + + {"path": "/distrobuilder/github/", + "menu": ["distrobuilder", "GitHub"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/distrobuilder"}}, + + {"path": "/distrobuilder/github-actions/", + "menu": ["distrobuilder", "GitHub Actions"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/distrobuilder/actions"}}, + + + + {"path": "/cgmanager/", + "generator": "alias", + "meta": {"target": "/cgmanager/introduction/"}}, + + {"path": "/cgmanager/introduction/", + "title": "CGManager - 介绍", + "menu": ["CGManager", "介绍"], + "generator": "markdown", + "meta": {"input": "cgmanager/introduction.md"}}, + + {"path": "/cgmanager/news/", + "title": "CGManager - 新闻", + "menu": ["CGManager", "新闻"], + "generator": "markdown", + "meta": {"input": "cgmanager/news.md", + "toc_depth": "2-2", + "str_older": "旧闻", + "str_back": "回到概览"}}, + + {"path": "/cgmanager/getting-started/", + "title": "CGManager - 开始上手", + "menu": ["CGManager", "开始上手"], + "generator": "markdown", + "meta": {"input": "cgmanager/getting-started.md"}}, + + {"path": "/cgmanager/dbus-api/", + "title": "CGManager - D-Bus API", + "menu": ["CGManager", "D-Bus API"], + "generator": "markdown", + "meta": {"input": "cgmanager/dbus-api.md"}}, + + {"path": "/cgmanager/manpages/", + "title": "CGManager - 手册", + "menu": ["CGManager", "手册"], + "generator": "manpages", + "meta": {"dir": "/manpages/cgmanager"}}, + + {"path": "/cgmanager/contribute/", + "title": "CGManager - 贡献", + "menu": ["CGManager", "贡献"], + "generator": "markdown", + "meta": {"input": "cgmanager/contribute.md"}}, + + {"path": "/cgmanager/downloads/", + "title": "CGManager - 下载", + "menu": ["CGManager", "下载"], + "generator": "downloads", + "meta": {"dir": "/downloads/cgmanager", + "input": "cgmanager/downloads.md"}}, + + {"path": "/cgmanager/external-resources/", + "menu": ["CGManager", "外部资源"]}, + + {"path": "/cgmanager/articles/", + "title": "CGManager - 文章", + "menu": ["CGManager", "文章"], + "generator": "markdown", + "meta": {"input": "cgmanager/articles.md"}}, + + {"path": "/cgmanager/mailing-lists/", + "menu": ["CGManager", "邮件列表"], + "generator": "link", + "meta": {"url": "https://lists.linuxcontainers.org"}}, + + {"path": "/cgmanager/irc/", + "menu": ["CGManager", "IRC"], + "generator": "link", + "meta": {"url": "https://web.libera.chat/#lxc"}}, + + {"path": "/cgmanager/github/", + "menu": ["CGManager", "GitHub"], + "generator": "link", + "meta": {"url": "https://github.com/lxc/cgmanager"}} +] diff --git a/content/WARNINGS.zh-cn.json b/content/WARNINGS.zh-cn.json new file mode 100644 index 00000000..db5fa4b6 --- /dev/null +++ b/content/WARNINGS.zh-cn.json @@ -0,0 +1,3 @@ +{ + "outdated-translation": "此翻译页面可能已经过时。要阅读最新的内容,请访问英文版本。" +} diff --git a/content/index.zh-cn.html b/content/index.zh-cn.html new file mode 100644 index 00000000..20ab1ade --- /dev/null +++ b/content/index.zh-cn.html @@ -0,0 +1,207 @@ +
+
+
+
+
+
Incus 已加入 LinuxContainers
+

点击查看项目公告

+
+
+
+
+
+ +
+
+
+ +

容器和虚拟化工具

+ + +

linuxcontainers.org 是 Incus、LXC、LXCFS 和 distrobuilder 等项目的总和。

+ + +

旨在为 Linux 容器的开发提供一个独立于发行版和供应商的环境。

+ + +

我们致力于提供运行完整 Linux 系统的容器和虚拟机。虽然虚拟机可以提供完整的环境,但是系统容器可以尽可能接近虚拟机的环境,同时避免了运行独立内核和模拟硬件所带来的额外开销。

+ +
+
+ +
+
+
+ +
+
+
+ +

活跃项目

+
+
+ +
+
+

LXC

+ + +

LXC 是一个知名的 Linux 容器运行时,包括各类工具、模板、库以及语言绑定。它非常底层,相当灵活,并覆盖了上游内核支持的几乎所有与容器相关的功能。

+ +

详情

+
+ +
+

Incus

+ + +

+ Incus 是一个容器和虚拟机管理器。
+ 它基于 LXC 运行容器,基于 QEMU 运行虚拟机,提供了一种无缝的云体验,可以从开发者的笔记本电脑扩展到最多 50 台服务器的完整集群。
+ 除了管理容器和虚拟机之外,Incus 还提供了各种选项来管理存储和网络。 +

+ +

+ 详情 + 在线体验 +

+
+
+ +
+
+

LXCFS

+ + +

+ LXCFS 是一个用户空间文件系统(FUSE),它提供了以下功能: +

    +
  • 掩蔽 cpuinfo, meminfo, stat 和 uptime 等文件
  • +
  • 提供 cgroupfs 兼容的文件树,允许非特权写入
  • +
+

+ + +

它旨在导出系统容器用户所需要的文件,以此规避 procfs, sysfs 和 cgroupfs 的痛点。

+ +

详情

+
+ +
+

distrobuilder

+ + +

+ distrobuilder 是一个用于容器和虚拟机的镜像构建工具: +

    +
  • 使用简单的 YAML 文档定义复杂的镜像结构
  • +
  • 支持多种输出格式(chroot、LXD、LXC)
  • +
  • 支持多种发行版和架构
  • +
+

+ + +

distrobuilder 的现代化设计可以充分利用预构建的官方镜像(如果可用),使用声明式镜像定义(YAML),并支持在基础镜像上进行各种修改。

+ +

详情

+
+
+ +
+
+

libresource

+ + +

libresource 是一个系统资源信息接口库,可以通过它获得内存、CPU、统计、网络和设备等信息。目前,其中大部分是从 /proc 和 /sys 中读取的。

+ +

详情

+
+ +
+

lxcri

+ + +

lxcri 是 LXC 的一个封装,作为一个容器运行时,它与 CRI-O 兼容,可用作其替代品。

+ +

详情

+
+
+
+ +
+
+
+

已弃用项目

+
+
+ +
+
+

CGManager

+ + +

+ CGManager 是一个 cgroup 管理器守护进程,旨在允许嵌套的非特权容器能够通过 DBus API 创建和管理 cgroup。 +

+ +

详情

+
+
+
diff --git a/templates/common/download-headers.zh-cn.tpl.html b/templates/common/download-headers.zh-cn.tpl.html new file mode 100644 index 00000000..21d0fea2 --- /dev/null +++ b/templates/common/download-headers.zh-cn.tpl.html @@ -0,0 +1,7 @@ + + + 文件名 + GPG 签名 + 体积 + + diff --git a/templates/common/footer.zh-cn.tpl.html b/templates/common/footer.zh-cn.tpl.html new file mode 100644 index 00000000..ea3dc535 --- /dev/null +++ b/templates/common/footer.zh-cn.tpl.html @@ -0,0 +1,18 @@ +