public static function registerTranslations()
    {
        if (!isset(Yii::$app->i18n->translations['jcrop']) && !isset(Yii::$app->i18n->translations['jcrop/*'])) {
            Yii::$app->i18n->translations['jcrop'] = [
                'class' => 'yii\i18n\PhpMessageSource',
                'basePath' => '@developit/jcrop/messages',
                'forceTranslation' => true,
                'fileMap' => [
                    'jcrop' => 'jcrop.php'
                ]
            ];
        }
    }