Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENEUROPA-1922: Minor corrections. #73

Merged
merged 1 commit into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oe_multilingual.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ services:
class: Drupal\oe_multilingual\ContentLanguageSwitcherProvider
arguments: ['@language_manager', '@path.matcher', '@oe_multilingual.helper']
oe_multilingual.local_translations_batcher:
class: \Drupal\oe_multilingual\LocalTranslationsBatcher
class: Drupal\oe_multilingual\LocalTranslationsBatcher
arguments: ['@module_handler', '@theme_handler', '@language_manager', '@extension.list.module', '@extension.list.theme', '@extension.list.profile']
6 changes: 4 additions & 2 deletions src/LocalTranslationsBatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LocalTranslationsBatcher {
protected $profileExtensionList;

/**
* MultilingualCommands constructor.
* LocalTranslationsBatcher constructor.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler
* The module handler.
Expand Down Expand Up @@ -91,6 +91,8 @@ public function __construct(ModuleHandlerInterface $moduleHandler, ThemeHandlerI
*
* @param array $langcodes
* The optional langcodes to import in.
*
* @see \Drupal\locale\Form\TranslationStatusForm::submitForm()
*/
public function createBatch(array $langcodes = []): void {
$this->moduleHandler->loadInclude('locale', 'fetch.inc');
Expand Down Expand Up @@ -141,7 +143,7 @@ protected function getExtensionsToTranslate(): array {
continue;
}

// This will include also profiles.
// The module handler checks also profiles.
if (!$this->moduleHandler->moduleExists($name) && !$this->themeHandler->themeExists($name)) {
continue;
}
Expand Down