Skip to content

Commit

Permalink
correcting trans() call
Browse files Browse the repository at this point in the history
correcting trans() call
  • Loading branch information
moncef-essid committed Sep 11, 2020
1 parent 9e0a70f commit 3b008ad
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -146,7 +146,7 @@ class MymoduleSomethingModuleFrontController extends ModuleFrontController
{
public function initContent()
{
$this->title = $this->trans('My module title', [], 'Modules.Mymodule.Something);
$this->title = $this->module->trans('My module title', [], 'Modules.Mymodule.Something);
}
}
```
Expand All @@ -165,7 +165,7 @@ class SomeAdminController extends FrameworkBundleAdminController
{
public function someAction()
{
$this->trans('Some text being translated', [], 'Modules.Mymodule.Admin');
$this->text = $this->trans('Some text being translated', [], 'Modules.Mymodule.Admin');
}
}
```
Expand Down

0 comments on commit 3b008ad

Please sign in to comment.