protected function DrushMakeProject_Translation::__construct

8.0.x make.project.inc protected DrushMakeProject_Translation::__construct(&$project)
6.x make.project.inc protected DrushMakeProject_Translation::__construct(&$project)
7.x make.project.inc protected DrushMakeProject_Translation::__construct(&$project)
5.x make.project.inc protected DrushMakeProject_Translation::__construct(&$project)
master make.project.inc protected DrushMakeProject_Translation::__construct(&$project)

Override constructor for translations to properly set contrib destination.

Overrides DrushMakeProject::__construct

File

commands/make/make.project.inc, line 726
Drush Make processing classes.

Class

DrushMakeProject_Translation
For processing translations.

Code

protected function __construct(&$project) {
  parent::__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';
      break;

    default:
      $this->contrib_destination = '';
      break;
  }
}