almaviacx / ibexatranslationuibundle
该插件允许将翻译文件内容导入数据库,并提供一个图形界面来编辑翻译。
v1.0.2
2024-06-28 10:29 UTC
Requires
- php: ^7.3 || ^8.0
- ibexa/admin-ui: ^4.0
- lexik/translation-bundle: ^6.0
This package is auto-updated.
Last update: 2024-08-31 14:02:53 UTC
README
这个存储库是我们所说的“子树分割”:主存储库中一个目录的只读副本。Composer 使用它来允许开发人员依赖特定的插件。
如果您想报告或贡献,您应该打开主存储库中的问题:https://github.com/Novactive/Nova-eZPlatform-Bundles
文档可通过此存储库中的 .md
文件获取,但也打包在此处:https://novactive.github.io/Nova-eZPlatform-Bundles/master/2FABundle/README.md.html
此插件将 https://github.com/lexik/LexikTranslationBundle/tree/v6.0 提供的 UI 集成到 Ibexa 管理界面。
安装
要求
- Ibexa 4
- PHP 7.3 || 8.0
使用 Composer
将库添加到您的 composer.json,运行 composer require almaviacx/ibexatranslationuibundle
以更新依赖关系。
注册插件
然后将在您的应用程序的 config\bundles.php
中注入该插件。
return [ // ... Lexik\Bundle\TranslationBundle\LexikTranslationBundle::class => ['all' => true], AlmaviaCX\Bundle\IbexaTranslationUiBundle\AlmaviaCXIbexaTranslationUiBundle::class => [ 'all'=> true ], ];
添加路由
确保您将此路由添加到您的路由中
# config/routes.yaml lexik_translation_edition: resource: "@LexikTranslationBundle/Resources/config/routing.yml" prefix: /translations-ui
配置
遵循 lexik 翻译插件文档:https://github.com/lexik/LexikTranslationBundle/blob/v6.0/Resources/doc/index.md