From: Vincent Vanwaelscappel Date: Wed, 13 Mar 2019 11:36:06 +0000 (+0100) Subject: wip #2628 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fb4a534c2286f0678b5ba1555889638059318933;p=cubist_cms-back.git wip #2628 @1 --- diff --git a/src/CubistBackpackServiceProvider.php b/src/CubistBackpackServiceProvider.php index 2222696..9006bca 100644 --- a/src/CubistBackpackServiceProvider.php +++ b/src/CubistBackpackServiceProvider.php @@ -49,6 +49,8 @@ class CubistBackpackServiceProvider extends ServiceProvider // publish the migrations and seeds $this->publishes([__DIR__ . '/database/migrations/' => database_path('migrations')], 'migrations'); + $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'cubist_back'); + // publish translation files $this->publishes([__DIR__ . '/resources/lang' => resource_path('lang/vendor/cubist_back')], 'lang'); } @@ -86,6 +88,6 @@ class CubistBackpackServiceProvider extends ServiceProvider // register their aliases $loader = \Illuminate\Foundation\AliasLoader::getInstance(); - $loader->alias('Setting', \Backpack\Settings\app\Models\Template::class); + $loader->alias('Template', \Backpack\Settings\app\Models\Template::class); } } diff --git a/src/languages/en/templates.php b/src/languages/en/templates.php deleted file mode 100644 index f7982d3..0000000 --- a/src/languages/en/templates.php +++ /dev/null @@ -1,18 +0,0 @@ - 'Name', - 'value' => 'Value', - 'description' => 'Description', - 'template_singular' => 'template', - 'template_plural' => 'templates', - -]; diff --git a/src/resources/lang/en/templates.php b/src/resources/lang/en/templates.php new file mode 100644 index 0000000..f7982d3 --- /dev/null +++ b/src/resources/lang/en/templates.php @@ -0,0 +1,18 @@ + 'Name', + 'value' => 'Value', + 'description' => 'Description', + 'template_singular' => 'template', + 'template_plural' => 'templates', + +];