Closed brandonkelly closed 7 years ago
Thanks Brandon, I merged the PRs, and will look into the translations now, and then do some testing and a release.
Okay I fixed the kebab-case translation files. BTW there is a develop
branch now if you have other PRs
Sweet thanks!
The following changes should be made so plugins are compatible with Beta 20:
(Examples assume a plugin name of
Foo Bar
.)extra.handle
in composer.json should be"foo-bar"
instead of"fooBar"
foo-bar.php
Craft::t()
calls should pass'foo-bar'
as the first argument instead of'foobar'
|t
filters in the generated template(s) should be|t('foo-bar')
(these are incorrectly not passing any category currently, meaning that they will default to thesite
category)defineTemplateComponent()
should be replaced with a listener for thedefineComponents
event oncraft\web\twig\variables\CraftVariable