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: Ensure config localization when site is installed from config. #71

Merged
merged 10 commits into from
Jun 20, 2019

Conversation

upchuk
Copy link
Contributor

@upchuk upchuk commented May 23, 2019

A few things are done here:

  1. We ensure that whenever a language config entity is created, its translation is also created regardless of what is the current process being run (module enable, config sync or site install).
  2. Create a Drush command that imports all the local translations strings (ones shipped in modules)

@upchuk upchuk force-pushed the OPENEUROPA-1922 branch 4 times, most recently from ebe6c6b to 3d55d8c Compare June 4, 2019 10:03
@upchuk upchuk force-pushed the OPENEUROPA-1922 branch from 3d55d8c to 70e22af Compare June 4, 2019 11:34
Copy link
Member

@sergepavle sergepavle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some question regarding discovering projects and some corrections regarding selenium docker image.

* @return array
* The extensions.
*/
protected function getExtensionsToTranslate(): array {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just insteresting. Why we can't use locale_translation_get_projects()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the point is to get the extensions that reference local translations (or at least specify them in the info file). See what the actual method does and what the docblock says.

.drone.yml Outdated Show resolved Hide resolved
docker-compose.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@brummbar brummbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor remarks will be fixed in another PR.

$this->drupalGet('import-translations');
// Wait for the AJAX to complete. This can take a while until the batch
// process finishes hence the increase in timeout.
$this->assertSession()->assertWaitOnAjaxRequest(100000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be improved so that we won't wait this much. We will handle it in a follow-up.

@brummbar brummbar merged commit e5f61dd into master Jun 20, 2019
@brummbar brummbar deleted the OPENEUROPA-1922 branch June 20, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants