From 2edefe2f9d2c698f14ac73257e2d73652fdbb7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=86=A8=E6=86=A8=E7=BE=8A=E3=81=AE=E5=AE=87=E8=88=AA?= =?UTF-8?q?=E9=B8=BD=E9=B8=BD?= Date: Fri, 28 Feb 2025 19:15:53 +0800 Subject: [PATCH] Add Chinese localization (#1021) * Add Chinese * Adding cache bust to the js file --------- Co-authored-by: Emi <2206700+coppolaemilio@users.noreply.github.com> --- _i18n/zh-cn.yml | 90 +++++++++++++++++++++++++++++++++++++++++++ _i18n/zh-tw.yml | 90 +++++++++++++++++++++++++++++++++++++++++++ _includes/footer.html | 2 +- assets/js/localize.js | 3 +- pages/home.html | 4 +- 5 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 _i18n/zh-cn.yml create mode 100644 _i18n/zh-tw.yml diff --git a/_i18n/zh-cn.yml b/_i18n/zh-cn.yml new file mode 100644 index 0000000000..33d305a1ea --- /dev/null +++ b/_i18n/zh-cn.yml @@ -0,0 +1,90 @@ +meta: + description: 开发你的 2D 与 3D 游戏,跨平台项目,甚至是 XR 创意! +header: + features: 特性 + showcase: 展示 + blog: 博客 + community: 社区 + assets: 资产 + download: 下载 + docs: 文档 + contribute: 贡献 + donate: 捐助 + language: 语言 +footer: + download: 下载 + documentation: 文档 + features: 特性 + web_editor: 网页编辑器 + release_archive: 发布版归档 + source_code: 源代码 + project: 项目 + blog: 博客 + code_of_conduct: 行为准则 + governance: 治理模式 + teams: 团队 + priorities: 优先事项 + communities: 社区 + resources: 资源 + asset_library: 资产库 + press_kit: 宣传材料 + showcase: 展示 + education: 教育 + foundation: 基金会 + about: 关于 + donate: 捐助 + license: 许可证 + privacy_policy: 隐私政策 + contact_us: 联系我们 + text: "Juan Linietsky,Ariel Manzur 与贡献者们。由 Godot 基金会架设。网站源码可在 GitHub 上获取." +sponsors: + title: "Godot 由以下企业赞助:" + text: 如果您对企业赞助感兴趣,请发邮件至 contact@godot.foundation
作为个人捐助,你可以通过 Godot Engine 开发基金 进行。 + cta: 捐助 +home: + h1: 属于你的免费,
开源游戏引擎。 + subtitle: 开发你的 2D 与 3D 游戏,跨平台项目,甚至是 XR 创意! + whats_new: 最近更新 + download_latest: 下载最新版 + looking_for: '正在寻找 Godot 3,我们的实验性版本,或是一个历史版本?' + latest_news: 最近新闻 + more_news: 更多新闻 + cards: + h2: 制作游戏的另一种方式 + design: + title: 创新设计 + text: Godot 的节点与场景系统同时给了你随心创造所需的能力与灵活性。 + script: + title: 使用适合工作的语言 + text: 使用 Godot 自带的 GDScript、C#、C++ 等面向对象的 API 保持代码模块化,或通过 GDExtension 引入自定义语言。 + extra: 截止 Godot 4.2 ,C# 支持目前仅在桌面端与移动端可用。
使用 Godot 3 来在网页端运行 C# 。 + 2d: + title: 专用 2D 引擎 + text: 利用 Godot 专有的 2D 渲染引擎,基于真实的 2D 像素坐标和 2D 节点系统,制作精美且性能卓越的 2D 游戏。 + 3d: + title: 简单且强大的 3D + text: Godot 的 3D 节点为你提供了构建、动画制作及渲染 3D 世界与角色所需的一切功能。 + deploy: + title: 全平台发布 + text: 短时间内把你的游戏部署到桌面端,移动端,以及网页端。透过第三方发行商,Godot 甚至支持主机端。 + open: + title: 开源 + text: "真正的开放开发:每位 Godot 贡献者均平等受益于他人的付出。" + cta: 获取更多关于使用 Godot 的信息 + get_involved: + title: 参与其中 + text: 加入社区并协助创建出一个属于所有人的游戏引擎。 + cards: + cta: 了解更多 + code: + title: 代码 + text: 如果你会写代码,你可以协助修复 bug 以及与引擎贡献者们一起合作实现新功能。 + document: + title: 文档 + text: 文档质量对游戏引擎至关重要;您可以通过更新 API 参考、编写新指南或提交修正来帮助改进它。 + report: + title: 报告 + text: 发现引擎有问题?别忘了提交报告,以便开发者能够追踪修复。 + foundation: + text: "你不需要成为一个引擎开发者就能帮助 Godot 。加入开发基金来帮助我们让 Godot Engine 变得更好!" + donate: 捐助 \ No newline at end of file diff --git a/_i18n/zh-tw.yml b/_i18n/zh-tw.yml new file mode 100644 index 0000000000..3b841b3fb5 --- /dev/null +++ b/_i18n/zh-tw.yml @@ -0,0 +1,90 @@ +meta: + description: 開發你的 2D 與 3D 遊戲,跨平台專案,甚至是 XR 創意! +header: + features: 特性 + showcase: 展示 + blog: 部落格 + community: 社群 + assets: 資產 + download: 下載 + docs: 文件 + contribute: 貢獻 + donate: 捐助 + language: 語言 +footer: + download: 下載 + documentation: 文件 + features: 特性 + web_editor: 網頁編輯器 + release_archive: 發行版歸檔 + source_code: 原始碼 + project: 專案 + blog: 部落格 + code_of_conduct: 行為準則 + governance: 治理模式 + teams: 團隊 + priorities: 優先事項 + communities: 社群 + resources: 資源 + asset_library: 資產庫 + press_kit: 宣傳材料 + showcase: 展示 + education: 教育 + foundation: 基金會 + about: 關於 + donate: 捐助 + license: 許可證 + privacy_policy: 隱私政策 + contact_us: 聯繫我們 + text: "Juan Linietsky,Ariel Manzur 與貢獻者們。由 Godot 基金會架設。網站原始碼可在 GitHub 上獲取." +sponsors: + title: "Godot 由以下企業贊助:" + text: 如果您對企業贊助感興趣,請發電郵至 contact@godot.foundation
作為個人捐助,你可以通過 Godot Engine 開發基金 進行。 + cta: 捐助 +home: + h1: 屬於你的免費,
開源遊戲引擎。 + subtitle: 開發你的 2D 與 3D 遊戲,跨平台專案,甚至是 XR 創意! + whats_new: 最近更新 + download_latest: 下載最新版 + looking_for: '正在尋找 Godot 3,我們的實驗性版本,或是一個歷史版本?' + latest_news: 最近新聞 + more_news: 更多新聞 + cards: + h2: 製作遊戲的另一種方式 + design: + title: 創新設計 + text: Godot 的節點與場景系統同時給了你隨心創造所需的能力與靈活性。 + script: + title: 使用適合工作的語言 + text: 使用 Godot 自帶的 GDScript、C#、C++ 等面向對象的 API 保持程式碼模塊化,或通過 GDExtension 引入客製化語言。 + extra: 截止 Godot 4.2 ,C# 支援目前僅在桌面端與行動端可用。
使用 Godot 3 來在網頁端運行 C# 。 + 2d: + title: 專用 2D 引擎 + text: 利用 Godot 專有的 2D 渲染引擎,基於真實的 2D 像素座標和 2D 節點系統,製作精美且效能卓越的 2D 遊戲。 + 3d: + title: 簡單且強大的 3D + text: Godot 的 3D 節點為你提供了構建、動畫製作及渲染 3D 世界與角色所需的一切功能。 + deploy: + title: 全平台發行 + text: 短時間內把你的遊戲部署到桌面端,行動端,以及網頁端。透過第三方發行商,Godot 甚至支援主機端。 + open: + title: 開放原始碼 + text: "真正的開放開發:每位 Godot 貢獻者均平等受益於他人的付出。" + cta: 獲取更多關於使用 Godot 的資訊 + get_involved: + title: 參與其中 + text: 加入社群並協助創建出一個屬於所有人的遊戲引擎。 + cards: + cta: 瞭解更多 + code: + title: 程式碼 + text: 如果你會寫程式碼,你可以協助修復 bug 以及與引擎貢獻者們一起合作實現新功能。 + document: + title: 文件 + text: 文件質量對遊戲引擎至關重要;您可以通過更新 API 參考、編寫新指南或提交修正來幫助改進它。 + report: + title: 報告 + text: 發現引擎有問題?別忘了提交報告,以便開發者能夠追蹤修復。 + foundation: + text: "你不需要成為一個引擎開發者就能幫助 Godot 。加入開發基金來幫助我們讓 Godot Engine 變得更好!" + donate: 捐助 \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 5a835c7787..a3122824f2 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -74,7 +74,7 @@ - + diff --git a/assets/js/localize.js b/assets/js/localize.js index 23ea0ec3d2..73df7991fb 100644 --- a/assets/js/localize.js +++ b/assets/js/localize.js @@ -5,7 +5,8 @@ const languageMap = { 'de': 'Deutsch', 'fr': 'Français', 'ja': '日本語', - 'zh': '中文', + 'zh-cn': '中文(中国)', + 'zh-tw': '中文(台灣)', 'pt': 'Português', }; diff --git a/pages/home.html b/pages/home.html index 9fc66326a3..26ca940dc0 100644 --- a/pages/home.html +++ b/pages/home.html @@ -4,11 +4,13 @@ title: en: "Godot Engine - Free and open source 2D and 3D game engine" es: "Godot Engine - Motor de videojuegos 2D y 3D gratuito y de código abierto" fr: "Godot Engine - Moteur de jeu vidéo 2D et 3D gratuit et open source" + zh-cn: "Godot Engine - 免费开源的 2D 与 3D 游戏引擎" + zh-tw: "Godot Engine - 免費開源的 2D 與 3D 遊戲引擎" notitlesuffix: true description: "Godot provides a huge set of common tools, so you can just focus on making your game without reinventing the wheel." layout: default -localize: ["en", "es", "fr"] +localize: ["en", "es", "fr", "zh-cn", "zh-tw"] --- {% include header.html %}