块编辑器开发文档

本地化 Gutenberg

💡 云策文档标注

概述

本文档介绍了如何通过 WordPress 的通用插件翻译系统(GlotPress)来本地化 Gutenberg 插件,包括翻译流程、权限要求和语言包生成条件。

关键要点

  • Gutenberg 插件使用 GlotPress 进行翻译,翻译平台位于 https://translate.wordpress.org。
  • 翻译时需选择对应语言环境,翻译 Development 和 Development Readme 部分。
  • 翻译提交后,由 Global Translation Editor (GTE) 或 Project Translation Editor (PTE) 审核处理。
  • 当插件字符串翻译完成并批准达到 95% 时,会自动生成语言包。
  • Gutenberg 已集成到 WordPress 核心,超过 51% 的翻译版 WordPress 安装会包含 Gutenberg 的翻译字符串。

📄 原文内容

The Gutenberg plugin is translated via the general plugin translation system (GlotPress) at https://translate.wordpress.org. Review the GlotPress translation process documentation for additional information.

To translate Gutenberg in your locale or language, select your locale here and translate Development (which contains the plugin’s string) and/or Development Readme (please translate what you see in the Details tab of the plugin page).

A Global Translation Editor (GTE) or Project Translation Editor (PTE) with suitable rights will process your translations in due time.

Language packs are automatically generated once 95% of the plugin’s strings are translated and approved for a locale.

The inclusion of Gutenberg into WordPress core means that more than 51% of WordPress installations running a translated WordPress installation have Gutenberg’s translated strings compiled into the core language pack as well.