]> _ Git - cubist_cms-back.git/commitdiff
wip #2628 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Mar 2019 10:56:30 +0000 (11:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Mar 2019 10:56:30 +0000 (11:56 +0100)
src/CubistBackpackServiceProvider.php
src/languages/en/templates.php [new file with mode: 0644]

index 0c05ff3057e422f9710abbdd7f31450f86e8772f..5057a0cdcb9dd4e6721c1a2f35efa6022d9f71ab 100644 (file)
@@ -50,7 +50,7 @@ class CubistBackpackServiceProvider extends ServiceProvider
         $this->publishes([__DIR__ . '/database/migrations/' => database_path('migrations')], 'migrations');
 
         // publish translation files
-        //$this->publishes([__DIR__ . '/resources/lang' => resource_path('lang/vendor/backpack')], 'lang');
+        $this->publishes([__DIR__ . '/resources/lang' => resource_path('lang/vendor/cubist')], 'lang');
     }
 
     /**
@@ -80,8 +80,8 @@ class CubistBackpackServiceProvider extends ServiceProvider
      */
     public function register()
     {
-        $this->app->bind('settings', function ($app) {
-            return new Settings($app);
+        $this->app->bind('templates', function ($app) {
+            return new Template($app);
         });
 
         // register their aliases
diff --git a/src/languages/en/templates.php b/src/languages/en/templates.php
new file mode 100644 (file)
index 0000000..f7982d3
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+return [
+    /*
+    |--------------------------------------------------------------------------
+    | Templates Language Lines
+    |--------------------------------------------------------------------------
+    |
+    | The following language lines are used for Cubist backpack
+    |
+    */
+    'name'             => 'Name',
+    'value'            => 'Value',
+    'description'      => 'Description',
+    'template_singular' => 'template',
+    'template_plural'   => 'templates',
+
+];