From 345baedcf1c516646c3f83ab2f1247399068934e Mon Sep 17 00:00:00 2001 From: Piotr Musial Date: Mon, 20 Jun 2022 13:05:32 +0200 Subject: [PATCH] Rebrand extension --- .github/workflows/php.yml | 40 ------------------- README.md | 4 +- composer.json | 4 +- .../MassEdit/TranslateAttributesProcessor.php | 6 +-- .../PiotrmusTranslatorExtension.php | 4 +- src/PiotrmusTranslatorBundle.php | 4 +- .../form_extensions/mass_edit/product.yml | 10 ++--- src/Resources/config/requirejs.yml | 4 +- src/Resources/config/services.yml | 18 ++++----- .../public/js/mass-edit/translate.js | 2 +- .../public/templates/mass-edit/translate.html | 10 ++--- src/Resources/translations/jsmessages.en.yml | 2 +- src/Resources/translations/jsmessages.fr.yml | 2 +- src/Resources/translations/jsmessages.pl.yml | 2 +- src/Translator/GoogleTranslator.php | 2 +- src/Translator/Language.php | 2 +- src/Translator/TranslatorInterface.php | 2 +- .../TranslateAttributesProcessorTest.php | 4 +- tests/Translator/GoogleTranslatorTest.php | 4 +- tests/Translator/LanguageTest.php | 2 +- 20 files changed, 44 insertions(+), 84 deletions(-) delete mode 100644 .github/workflows/php.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml deleted file mode 100644 index 9790a81..0000000 --- a/.github/workflows/php.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: PHP Composer - -on: - push: - branches: [ main, github-actions ] - pull_request: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: PECL extension - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - coverage: xdebug - extensions: imagic, ext-apcu, ext-bcmath, ext-curl, ext-dom, ext-exif, ext-fileinfo, ext-filter, ext-gd, ext-imagick, ext-intl, ext-json, ext-libxml, ext-mbstring, ext-openssl, ext-pdo, ext-phar, ext-simplexml, ext-tokenizer, ext-xml, ext-xmlreader, ext-xmlwriter, ext-zip - - - uses: actions/checkout@v2 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress - - - name: Run test suite - run: composer run-script test diff --git a/README.md b/README.md index 6eb461f..e28ef54 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Akeneo's extension adding new mass edit type "Translate attributes". Install composer dependency ```shell -composer require piotrmus/akeneo-product-translation +composer require macopedia/akeneo-product-translation ``` register bundle in `config/bundles.php` @@ -15,7 +15,7 @@ register bundle in `config/bundles.php` ```php return [ - \Piotrmus\Translator\PiotrmusTranslatorBundle::class => ['dev' => true, 'test' => true, 'prod' => true], + \Macopedia\Translator\MacopediaTranslatorBundle::class => ['dev' => true, 'test' => true, 'prod' => true], ]; ``` diff --git a/composer.json b/composer.json index 288b0b1..b821a8a 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "piotrmus/akeneo-product-translation", + "name": "macopedia/akeneo-product-translation", "type": "symfony-bundle", "description": "Translation extension for Akeneo", "version": "0.1.12", @@ -21,7 +21,7 @@ }, "autoload": { "psr-4": { - "Piotrmus\\Translator\\": "src/" + "Macopedia\\Translator\\": "src/" } }, "scripts": { diff --git a/src/Connector/Processor/MassEdit/TranslateAttributesProcessor.php b/src/Connector/Processor/MassEdit/TranslateAttributesProcessor.php index aa3ecda..489d25e 100644 --- a/src/Connector/Processor/MassEdit/TranslateAttributesProcessor.php +++ b/src/Connector/Processor/MassEdit/TranslateAttributesProcessor.php @@ -1,7 +1,7 @@
@@ -18,7 +18,7 @@
@@ -32,7 +32,7 @@
@@ -46,7 +46,7 @@
@@ -60,7 +60,7 @@
diff --git a/src/Resources/translations/jsmessages.en.yml b/src/Resources/translations/jsmessages.en.yml index 543b297..7ef9ab6 100644 --- a/src/Resources/translations/jsmessages.en.yml +++ b/src/Resources/translations/jsmessages.en.yml @@ -1,4 +1,4 @@ -piotrmus: +macopedia: mass_edit: attribute_translator: label: "Translate attributes" diff --git a/src/Resources/translations/jsmessages.fr.yml b/src/Resources/translations/jsmessages.fr.yml index 52a0134..dae64e9 100644 --- a/src/Resources/translations/jsmessages.fr.yml +++ b/src/Resources/translations/jsmessages.fr.yml @@ -1,4 +1,4 @@ -piotrmus: +macopedia: mass_edit: attribute_translator: label: "Traduire les attributs" diff --git a/src/Resources/translations/jsmessages.pl.yml b/src/Resources/translations/jsmessages.pl.yml index 83fd169..3109eed 100644 --- a/src/Resources/translations/jsmessages.pl.yml +++ b/src/Resources/translations/jsmessages.pl.yml @@ -1,4 +1,4 @@ -piotrmus: +macopedia: mass_edit: attribute_translator: label: "Przetłumacz atrybuty" diff --git a/src/Translator/GoogleTranslator.php b/src/Translator/GoogleTranslator.php index 4c98978..c2ac7f8 100644 --- a/src/Translator/GoogleTranslator.php +++ b/src/Translator/GoogleTranslator.php @@ -1,7 +1,7 @@