class DrushMakeProject_Translation

  1. 8.0.x commands/make/ DrushMakeProject_Translation
  2. 6.x commands/make/ DrushMakeProject_Translation
  3. 7.x commands/make/ DrushMakeProject_Translation
  4. 5.x commands/make/ DrushMakeProject_Translation
  5. master commands/make/ DrushMakeProject_Translation

For processing translations.


Expanded class hierarchy of DrushMakeProject_Translation


Contains filters are case sensitive
Name Modifiers Type Descriptionsort descending
DrushMakeProject::addLockfile function Add a lock file.
DrushMakeProject::make function Build a project.
DrushMakeProject::$overwrite protected property Default to overwrite to allow recursive builds to process properly.
DrushMakeProject::findDownloadLocation function Determine the location to download project to.
DrushMakeProject::download function Download a project.
DrushMakeProject::$download_location protected property Download location to use.
DrushMakeProject::generatePath protected function Generate the proper path for this project type.
DrushMakeProject::getInstance public static function Get an instance for the type and project.
DrushMakeProject::$self protected static property Keep track of instances.
DrushMakeProject::$manifest protected property Keeps track of projects being processed to prevent recursive conflicts.
DrushMakeProject_Translation::__construct protected function Override constructor for translations to properly set contrib destination. Overrides DrushMakeProject::__construct
DrushMakeProject::processGitInfoFiles function Process info files when downloading things from git.
DrushMakeProject::recurse function Recurse to process additional makefiles that may be found during processing.
DrushMakeProject::$do_recursion protected property Recursively process any makefiles found in downloaded projects.
DrushMakeProject::removeGitDirectory function Remove the .git directory from a project.
DrushMakeProject::applyPatches function Retrieve and apply any patches specified by the makefile to this project.
DrushMakeProject::getTranslations function Retrieve translations for this project.
DrushMakeProject::buildPath protected function Return the proper path for dependencies to be placed in.
DrushMakeProject::preprocessLocalFileUrl protected function Rewrite relative URLs and file:/// URLs
DrushMakeProject::setManifest public function Set the manifest array.
DrushMakeProject::$downloaded protected property TRUE if download() method has been called successfully, otherwise FALSE.
DrushMakeProject::$made protected property TRUE if make() has been called, otherwise FALSE.


commands/make/, line 711
Drush Make processing classes.

View source
class DrushMakeProject_Translation extends DrushMakeProject {
   * Override constructor for translations to properly set contrib destination.
  protected function __construct(&$project) {
    switch ($project['core']) {
      case '5.x':
        // Don't think there's an automatic place we can put 5.x translations,
        // so we'll toss them in a translations directory in the Drupal root.
        $this->contrib_destination = ($this->base_contrib_destination != '.' ? $this->base_contrib_destination . '/' : '') . 'translations';

        $this->contrib_destination = '';