2017 © Pedro Peláez
 

ezplatform-bundle bcremovetranslationbundle

BC Remove Translation Bundle for eZ Platform. Provides a basic solution to remove a content translation using eZ Publish Platform / eZ Platform / Symfony commands. Great for developers!

image

brookinsconsulting/bcremovetranslationbundle

BC Remove Translation Bundle for eZ Platform. Provides a basic solution to remove a content translation using eZ Publish Platform / eZ Platform / Symfony commands. Great for developers!

  • Wednesday, March 8, 2017
  • by brookinsconsulting
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 14 % Grown

The README.md

BC Remove Translation

This bundle implements a solution to provide eZ Publish Platform / eZ Platform / Symfony commands to remove content location translations., (*1)

Version

  • The current version of BC Remove Translation is 0.1.1, (*2)

  • Last Major update: March 07, 2017, (*3)

Copyright

  • BC Remove Translation is copyright 1999 - 2017 Brookins Consulting, (*4)

  • See: COPYRIGHT.md for more information on the terms of the copyright and license, (*5)

License

BC Remove Translation is licensed under the GNU General Public License., (*6)

The complete license agreement is included in the LICENSE file., (*7)

BC Remove Translation is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version., (*8)

BC Remove Translation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*9)

The GNU GPL gives you the right to use, modify and redistribute BC Remove Translation under certain conditions. The GNU GPL license is distributed with the software, see the file LICENSE., (*10)

It is also available at http://www.gnu.org/licenses/gpl.txt, (*11)

You should have received a copy of the GNU General Public License along with BC Remove Translation in in the LICENSE file., (*12)

If not, see http://www.gnu.org/licenses/., (*13)

Using BC Remove Translation under the terms of the GNU GPL is free (as in freedom)., (*14)

For more information or questions please contact: license@brookinsconsulting.com, (*15)

Requirements

The following requirements exists for using BC Remove Translation bundle:, (*16)

eZ Publish version

  • Make sure you use eZ Publish version 5.x (required) or higher., (*17)

  • Designed and tested with eZ Publish Community Project 2013.11, (*18)

PHP version

  • Make sure you have PHP 5.x or higher.

Features

Commands

This solution provides the following symfony commands, (*19)

  • Command: bc:rt:remove-translation

Dependencies

  • This solution depends on eZ Platform
  • This solution depends on symfony/symfony

These dependencies are documented in greater detail within the bundle's composer.json file, (*20)

Use case

This solution was created to provide content location translation removal., (*21)

Installation

Bundle Installation via Composer

Run the following command from your project root to install the bundle:, (*22)

bash$ composer require brookinsconsulting/bcremovetranslationbundle dev-master;

Bundle Activation

Within file app/AppKernel.php method registerBundles add the following into the $bundles = array( variable definition., (*23)

// Brookins Consulting : BcGitHubStarsBundle Requirements
new BrookinsConsulting\BcRemoveTranslationBundle\BcRemoveTranslationBundle(),

Clear the caches

Clear Symfony caches (Required)., (*24)

php bin/console cache:clear;

Usage

The solution is configured to work virtually by default once properly installed., (*25)

WARNING! Remember to backup your installations database, source code and var directory content before using this solution!, (*26)

Running the command

To remove content location translation run the following command and you will be prompted for required arguments, (*27)

php -d memory_limit=-1 bin/console bc:rt:remove-translation;

Running the remove-translation command with locationId shell arguments

For repeated usage of the same input you can run the script more quickly using shell arguments. Simply run, (*28)

php -d memory_limit=-1 bin/console bc:rt:remove-translation -v --locationId=2 --removeLanguage=eng-US;

Notice: That the command supports translation removal by locationId or contentId, (*29)

Running the remove-translation command with contentId shell arguments

For repeated usage of the same input you can run the script more quickly using shell arguments. Simply run, (*30)

php -d memory_limit=-1 bin/console bc:rt:remove-translation -v --contentId=42 --removeLanguage=eng-US;

Testing

The solution is configured to work once properly installed and configured., (*31)

Note: At the time of writing xss testing has not been implemented nor proper unit testing., (*32)

Troubleshooting

Read the FAQ

Some problems are more common than others. The most common ones are listed in the the Resources/doc/FAQ.md, (*33)

Support

If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact, (*34)

The Versions

08/03 2017

dev-master

9999999-dev https://gitlab.com/brookinsconsulting/bcremovetranslationbundle

BC Remove Translation Bundle for eZ Platform. Provides a basic solution to remove a content translation using eZ Publish Platform / eZ Platform / Symfony commands. Great for developers!

  Sources   Download

GPL-2.0+

The Requires

 

command bundle cli translation content script ez publish platform ez platform remove