diff --git a/composer.json b/composer.json index 3d50af4..e9e7d3b 100644 --- a/composer.json +++ b/composer.json @@ -2,16 +2,17 @@ "name": "macopedia/akeneo-product-translation", "type": "symfony-bundle", "description": "Translation extension for Akeneo", - "version": "0.1.13", + "version": "0.2.0", "license": "OSL-3.0", "authors": [ { "name": "Piotr Musiał", - "homepage": "https://www.codehat.pl" + "email": "piotrmus@gmail.com", + "homepage": "https://www.macopedia.com" } ], "require": { - "akeneo/pim-community-dev": "^4.0.0||^5.0.0", + "akeneo/pim-community-dev": "^4.0.0||^5.0.0||^6.0.0", "google/cloud-translate": "^1.9" }, "require-dev": { @@ -39,5 +40,10 @@ "cs:fix": [ "vendor/bin/php-cs-fixer fix" ] + }, + "config": { + "allow-plugins": { + "symfony/flex": true + } } } diff --git a/src/Resources/config/acl.yml b/src/Resources/config/acl.yml new file mode 100644 index 0000000..1df6573 --- /dev/null +++ b/src/Resources/config/acl.yml @@ -0,0 +1,4 @@ +pim_enrich_mass_translation: + type: action + label: macopedia.acl.label + group_name: pim_enrich.acl_group.product \ No newline at end of file diff --git a/src/Resources/config/form_extensions/mass_edit/product.yml b/src/Resources/config/form_extensions/mass_edit/product.yml index e8dffa6..2ff6640 100644 --- a/src/Resources/config/form_extensions/mass_edit/product.yml +++ b/src/Resources/config/form_extensions/mass_edit/product.yml @@ -3,6 +3,7 @@ extensions: module: macopedia-translator/mass-edit/translate parent: pim-mass-product-edit position: 500 + aclResourceId: pim_enrich_product_edit_attributes config: title: pim_enrich.mass_edit.product.title label: macopedia.mass_edit.attribute_translator.label diff --git a/src/Resources/translations/messages.en.yml b/src/Resources/translations/messages.en.yml new file mode 100644 index 0000000..e9dabc3 --- /dev/null +++ b/src/Resources/translations/messages.en.yml @@ -0,0 +1,3 @@ +macopedia: + acl: + label: "Mass attribute translation" \ No newline at end of file diff --git a/src/Resources/translations/messages.pl.yml b/src/Resources/translations/messages.pl.yml new file mode 100644 index 0000000..950c821 --- /dev/null +++ b/src/Resources/translations/messages.pl.yml @@ -0,0 +1,3 @@ +macopedia: + acl: + label: "Masowe tłumaczenie atrybutów" \ No newline at end of file