prestashop / translationtools-bundle
PrestaShop 的翻译工具
v6.0.1
2024-01-05 15:58 UTC
Requires
- php: >=8.1
- nikic/php-parser: ^4
- smarty/smarty: ^3.1 || ^4.0
- symfony/twig-bridge: ^3.4 || ^4.4 || ^5.0 || ^6.0
- twig/twig: ^1.38 || ^2.7 || ^3.0
Requires (Dev)
- doctrine/common: ^3
- friendsofphp/php-cs-fixer: ^3.2
- phpunit/phpunit: ~9.5.10
- symfony/framework-bundle: ^3.4 || ^4.4 || ^5.0 || ^6.0
- symfony/symfony: ^6.0
- symfony/translation: ^3.4 || ^4.4 || ^5.0 || ^6.0
README
嵌入 PrestaShop 电子商务 CMS 的翻译导出器和提取器。如果需要解析 Smarty 文件,也可能很有用。
安装
通常,安装此包需要几个步骤
1 将此包作为 composer 依赖项添加到您的项目中
// composer.json { // ... require: { // ... "prestashop/translationtools-bundle": "dev-master" } }
2 将此包添加到您的应用程序内核中
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new PrestaShop\TranslationToolsBundle\TranslationToolsBundle(), ); return $bundles; }
3 如何贡献
此包已经过单元测试并且覆盖良好。您可以使用此命令执行测试
$ ./vendor/bin/phpunit