Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
* Better translations
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Mar 25, 2017
1 parent e29045a commit 672c43b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/PathTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ public function init()

Craft::$app->view->twig->addExtension(new PathToolsTwigExtension());

Craft::info('PathTools ' . Craft::t('pathtools', 'plugin loaded'), __METHOD__);
Craft::info(
Craft::t(
'pathtools',
'{name} plugin loaded',
['name' => $this->name]
),
__METHOD__
);
}
}
2 changes: 1 addition & 1 deletion src/translations/en/pathtools.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
* @since 1.0.0
*/
return [
'plugin loaded' => 'plugin loaded',
'PathTools plugin loaded' => 'PathTools plugin loaded',
];

0 comments on commit 672c43b

Please sign in to comment.