Closed ribsousa closed 7 years ago
You add dependencecy?
<?php namespace Zainab\SimpleContact;
use System\Classes\PluginBase;
use Backend;
use RainLab\Translate\Models\Locale as LocaleModel;
use RainLab\Translate\Classes\Translator;
use Zainab\SimpleContact\Controllers\SimpleContact;
class Plugin extends PluginBase
{
no i remove it
To auto install rainlab translate plugin you need to add these lines also in the file Plugin.php
<?php namespace Zainab\SimpleContact;
use System\Classes\PluginBase;
use Backend;
use RainLab\Translate\Models\Locale as LocaleModel;
use RainLab\Translate\Classes\Translator;
use Zainab\SimpleContact\Controllers\SimpleContact;
class Plugin extends PluginBase
{
/**
* @var array Require the RainLab.Translate plugin
*/
public $require = ['RainLab.Translate'];
[...]
Add dependency to RainLab Translate plugin, allow google captcha internationalization