finlaydag33k/cakephp-translate

CakePHP 插件,使用 Google API 快速轻松地翻译 pot 文件

安装: 0

依赖: 0

建议者: 0

安全: 0

星标: 0

分支: 0

类型:cakephp-plugin

1.0 2021-02-23 12:41 UTC

This package is auto-updated.

Last update: 2024-09-23 21:03:04 UTC


README

CakePHP 插件,提供使用 LibreTranslate 进行翻译的 shell 命令。

免责声明此插件仍在积极开发中,不应视为适用于生产环境。使用风险自负

安装

按照以下步骤安装库

composer require finlaydag33k/cakephp-translate

然后通过将以下内容添加到您的 src/Application 中来在您的应用程序中启用它

public function bootstrap() {
  // ... Do other stuff here

  // Enable plugin
  $this->addPlugin('FinlayDaG33k/Translate');
}

使用方法

可以使用以下命令从命令行进行翻译

cake translate

以下是一个将 English 翻译为 German 的示例

cake translate de_DE en de

版本兼容性

以下是一个版本兼容性表。
请注意,当发布新版本时,维护者对旧版本的支持将立即停止。 | 插件版本 | CakePHP 版本 | |----------------|-----------------| | 1.x | >=3.6.0 |