Skip to content

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 4d9a066 commit db4e000
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/Recipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ function (PluginEvent $event) {
}
);

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

0 comments on commit db4e000

Please sign in to comment.