Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dgaspara created an issue. See original summary.

jcisio’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Status: Active » Needs work

We need to use dependency injection of the translation service.

mahtab_alam’s picture

$this->t is not working here. Throwing error as Error: Call to undefined method Drupal\\node_title_validation\\Plugin\\Validation\\Constraint\\NodeTitleConstraintValidator::t()

Krzysztof Domański’s picture

I use dependency injection of the translation service. Now we can translate all error messages.

dgaspara’s picture

dgaspara’s picture

dgaspara’s picture

dgaspara’s picture

Status: Needs review » Needs work

The last submitted patch, 4: node_title_validation-translate-messages-2964665-3-D8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Renrhaf’s picture

Tested in our current site, everything works properly with the patch in #4

Renrhaf’s picture

Status: Needs work » Reviewed & tested by the community

cgomezg’s picture

Status: Reviewed & tested by the community » Fixed

Merged in 8.x-1.x-dev

Status: Fixed » Closed (fixed)

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