Skip to content
Snippets Groups Projects
Commit 54c6f5d9 authored by Lily Yan's avatar Lily Yan
Browse files

Merge branch 'feature/ISTWCMS-4208-lkmorlan-fix-translation' into '8.x-1.x'

ISTWCMS-4208: Use StringTranslationTrait

See merge request !37
parents 36001057 6cfdd7f8
No related branches found
No related tags found
1 merge request!37ISTWCMS-4208: Use StringTranslationTrait
...@@ -203,12 +203,12 @@ class UwContentModerationForm extends ConfirmFormBase { ...@@ -203,12 +203,12 @@ class UwContentModerationForm extends ConfirmFormBase {
if ($this->status) { if ($this->status) {
// Return the question to see if they want to publish the node. // Return the question to see if they want to publish the node.
return t('Unpublish %node_title?', ['%node_title' => $node->getTitle()]); return $this->t('Unpublish %node_title?', ['%node_title' => $node->getTitle()]);
} }
else { else {
// Return the question to see if they want to publish the node. // Return the question to see if they want to publish the node.
return t('Publish %node_title?', ['%node_title' => $node->getTitle()]); return $this->t('Publish %node_title?', ['%node_title' => $node->getTitle()]);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment