Skip to content

Commit

Permalink
Add constant DRUPAL_CONSOLE_LIBRARY to be used in library translations (
Browse files Browse the repository at this point in the history
#194)

* [chain] Avoid overwrite chain command options with global/default options

* Revert "[chain] Avoid overwrite chain command options with global/default options"

This reverts commit 1096794.

* [chain] Avoid overwrite chain command options with global/default options

* Remove YAML command in behalf of new separate repository https://github.com/weknowinc/drupal-console-yaml

* Fix language separator hyphen instead of underscore

* Added constant DRUPAL_CONSOLE_LIBRARY to be used in library translations
  • Loading branch information
enzolutions committed Jul 13, 2017
1 parent e48fb79 commit e6e239d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 3 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ application:
es: 'Español'
ca: 'Català'
fr: 'Français'
gu: 'ગુજરાત'
ko: '한국어'
hi: 'हिन्दी'
hu: 'Magyar'
id: 'Bahasa Indonesia'
ja: '日本語'
mr: 'मराठी'
pa: 'ਪੰਜਾਬੀ'
pt_br: 'Português'
pt-br: 'Português'
ro: 'Romanian'
ru: 'pусский язык'
tl: 'Tagalog'
vn: 'Tiếng Việt'
zh_hans: '简体中文'
zh_hant: '繁體中文'
zh-hans: '简体中文'
zh-hant: '繁體中文'
7 changes: 7 additions & 0 deletions src/Utils/DrupalFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ protected function defineConstants($vendorDir)
"/{$vendorDir}/drupal/console-%s/translations/"
);
}

if (!defined("DRUPAL_CONSOLE_LIBRARY")) {
define(
"DRUPAL_CONSOLE_LIBRARY",
"/{$vendorDir}/drupal/%s/console/translations/%s"
);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/NestedArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static function replaceKey(array &$array, array $parents, $new_key)
* @param $array1
* @param $array2
* @param bool $negate if Negate is true only if values are equal are returned.
* @param$$statistics mixed array
* @param $statistics mixed array
* @return array
*/
public function arrayDiff($array1, $array2, $negate = false, &$statistics)
Expand Down

0 comments on commit e6e239d

Please sign in to comment.