Problem/Motivation

There are two english strings which are wrong.
This patch should be applied ASAP in 8.0.x, as pointed by @Gábor Hojtsy: #8

Proposed resolution

Fix the 2 wrong strings.
There are other related strings which are not wrong but in context they should be also changed to fit the new strings and also to not break current translations. In addition, we are removing similar strings that should be exactly the same, then less translator pain. As pointed by @Gábor Hojtsy here: #7

Remaining tasks

none

User interface changes

strings change, but no need for additional translations.

API changes

none

Data model changes

none

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bserem created an issue. See original summary.

bserem’s picture

Priority: Critical » Major

Changing to major per https://www.drupal.org/node/45111 guidelines.

mikeryan’s picture

Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

Major?

Anyway, changes look good.

bserem’s picture

Well, like I said I didn't know what to do because of the string freeze. A while ago timplunket informed me that the migration subsystem is not under string freeze. :)

webchick’s picture

Version: 8.0.x-dev » 8.1.x-dev

This seems like a good fix to do, but is not a severe enough bug fix to warrant breaking strings. Let's pick this back up in 8.1.x.

webchick’s picture

Priority: Normal » Minor
Gábor Hojtsy’s picture

Version: 8.1.x-dev » 8.0.x-dev
Status: Reviewed & tested by the community » Needs work
Issue tags: -String freeze, -translatable strings +D8MI, +language-ui

@xjm asked me if this was a disruption for translators or not. This is usually straightforward to tell with grep so:

$ git grep "mlid in the"
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The first mlid in the materialized path. If N = depth, then pN must equal the mlid. If depth > 1 then p(N-1) must equal the parent link mlid. All pX where X > depth must equal zero. The columns p1 .. p9 are also called the parents.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The second mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The third mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The fourth mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The fifth mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The sixth mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The seventh mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The eighth mlid in the materialized path. See p1.',
core/lib/Drupal/Core/Menu/MenuTreeStorage.php:          'description' => 'The ninth mlid in the materialized path. See p1.',
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p1' => $this->t('The first mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p2' => $this->t('The second mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p3' => $this->t('The third mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p4' => $this->t('The fourth mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p5' => $this->t('The fifth mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p6' => $this->t('The sixth mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p7' => $this->t('The seventh mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p8' => $this->t('The eight mlid in the materialized path.'),
core/modules/book/src/Plugin/migrate/source/d6/Book.php:      'p9' => $this->t('The nine mlid in the materialized path.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p1' => t('The first mlid in the materialized path. If N = depth, then pN must equal the mlid. If depth > 1 then p(N-1) must equal the plid. All pX where X > depth must equal zero. The columns p1 .. p9 are also called the parents.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p2' => t('The second mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p3' => t('The third mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p4' => t('The fourth mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p5' => t('The fifth mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p6' => t('The sixth mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p7' => t('The seventh mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p8' => t('The eighth mlid in the materialized path. See p1.'),
core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php:      'p9' => t('The ninth mlid in the materialized path. See p1.'),

The patch fixes strings in the book migration. These look unique to the book migration. However they are almost the same as the Menu migration and the actual menu tree storage strings. If only book migration would use the exact same strings, we would actually REMOVE a lot of noise for translators. Instead of just fixing the typo the patch should just use the exact same strings that are already used twice in core. That would result in no new strings for translators whatsoever (those who already translated core), and it would mean less strings to translate for those who did not. Win-win-win.

Gábor Hojtsy’s picture

Also its reducing useless translator pain so would ideally be done in Drupal 8.0.x soon :)

Mac_Weber’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
2.34 KB

For consistency I've changed all related strings. It also helps removing noise and translator pain, as @Gábor Hojtsy said.

Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +sprint

Yay, less strings!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Less strings to translate - nice. And as these strings already exist going into 8.0.x makes sense. Committed 1eea7ae and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed 4b8a70f on 8.1.x
    Issue #2608656 by bserem, Mac_Weber, Gábor Hojtsy: Wrong english strings...

  • alexpott committed 1eea7ae on
    Issue #2608656 by bserem, Mac_Weber, Gábor Hojtsy: Wrong english strings...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Gábor Hojtsy’s picture

Issue tags: -sprint

Superb, thanks!