logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

如何将 Drupal 本地化为简体中文

返回“Drupal 本地化”页面

在安装 Drupal 时,您可以选择语言,Drupal 会自动下载界面翻译。但您可以看到,许多语言并没有包含界面所需的全部翻译:

Drupal 本地化

 

您将获得部分翻译,但其余所有翻译都需要从 .po 文件中手动导入(使用 Ctrl + S 保存该文件):

下载包含翻译的 .po 文件

首先,请检查您的 Drupal 网站上是否已添加所需语言:

/admin/config/regional/language

Drupal 语言页面

如果没有您的语言,请点击“添加语言”按钮进行添加。

如果网站上没有该页面,则需要启用 Language 和 Configuration Translation 模块:

/admin/modules

Drupal Configuration Translation 模块

在下载 .po 文件并确认网站上已存在您的语言后,前往导入页面,上传 .po 文件并选择您的语言(配置 > 区域和语言 > 用户界面翻译 > 导入):

/admin/config/regional/translate/import

 

Import .po file

完成后,您的界面将被翻译为所选语言。

另请参阅

返回“Drupal 本地化”页面

https://github.com/levmyshkin/localize-drupal - 包含所有语言翻译的最新 .po 文件。欢迎提交包含更好翻译的 pull request。 

https://localize.drupal.org/ - 用于添加/编辑所有语言翻译字符串的官方站点。您可以在此提交自己的翻译,帮助提高界面翻译质量。

https://www.drupal.org/project/l10n_client - 一个 Drupal 模块,可帮助您翻译站点中的单个字符串。