From ba7f9881d6fe4aa4fd3460674d8cde6c27459a0c Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 18 Apr 2015 16:55:51 +0100 Subject: [PATCH] Fix L10n style and content @wfjsw --- app/Commands/Command.php | 4 +- app/Events/Event.php | 4 +- app/Exceptions/Handler.php | 4 +- app/Http/Controllers/AtomController.php | 1 - app/Http/Controllers/RssController.php | 1 - app/Http/Requests/Request.php | 4 +- app/Services/Registrar.php | 4 +- database/seeds/ComponentTableSeeder.php | 56 ++++++++++++------------- database/seeds/IncidentTableSeeder.php | 46 ++++++++++---------- database/seeds/SettingsTableSeeder.php | 32 +++++++------- database/seeds/UsersTableSeeder.php | 10 ++--- public/index.php | 1 + server.php | 1 + 13 files changed, 89 insertions(+), 79 deletions(-) diff --git a/app/Commands/Command.php b/app/Commands/Command.php index 6afd707b..776c29ec 100644 --- a/app/Commands/Command.php +++ b/app/Commands/Command.php @@ -1,4 +1,6 @@ - "API", - "description" => "Used by third-parties to connect to us", - "status" => 2, - "user_id" => 1, - "order" => 0, - "group_id" => 0, - "link" => "", + 'name' => 'API', + 'description' => 'Used by third-parties to connect to us', + 'status' => 2, + 'user_id' => 1, + 'order' => 0, + 'group_id' => 0, + 'link' => '', ], [ - "name" => "Documentation", - "description" => "Kindly powered by Readme.io", - "status" => 1, - "user_id" => 1, - "order" => 0, - "group_id" => 0, - "link" => "https://docs.cachethq.io", + 'name' => 'Documentation', + 'description' => 'Kindly powered by Readme.io', + 'status' => 1, + 'user_id' => 1, + 'order' => 0, + 'group_id' => 0, + 'link' => 'https://docs.cachethq.io', ], [ - "name" => "Website", - "description" => "", - "status" => 1, - "user_id" => 1, - "order" => 0, - "group_id" => 0, - "link" => "https://cachethq.io", + 'name' => 'Website', + 'description' => '', + 'status' => 1, + 'user_id' => 1, + 'order' => 0, + 'group_id' => 0, + 'link' => 'https://cachethq.io', ], [ - "name" => "Blog", - "description" => "The Cachet HQ blog.", - "status" => 1, - "user_id" => 1, - "order" => 0, - "group_id" => 0, - "link" => "https://blog.cachethq.io", + 'name' => 'Blog', + 'description' => 'The Cachet HQ blog.', + 'status' => 1, + 'user_id' => 1, + 'order' => 0, + 'group_id' => 0, + 'link' => 'https://blog.cachethq.io', ], ]; diff --git a/database/seeds/IncidentTableSeeder.php b/database/seeds/IncidentTableSeeder.php index 404055ee..935517bc 100644 --- a/database/seeds/IncidentTableSeeder.php +++ b/database/seeds/IncidentTableSeeder.php @@ -17,35 +17,35 @@ class IncidentTableSeeder extends Seeder $defaultIncidents = [ [ - "name" => "Awesome", - "message" => "We totally nailed the fix.", - "status" => 4, - "component_id" => 0, - "user_id" => 1, - "scheduled_at" => null, + 'name' => 'Awesome', + 'message' => 'We totally nailed the fix.', + 'status' => 4, + 'component_id' => 0, + 'user_id' => 1, + 'scheduled_at' => null, ], [ - "name" => "Monitoring the fix", - "message" => "We're checking that our fix will first work.", - "status" => 3, - "component_id" => 0, - "user_id" => 1, - "scheduled_at" => null, + 'name' => 'Monitoring the fix', + 'message' => "We're checking that our fix will first work.", + 'status' => 3, + 'component_id' => 0, + 'user_id' => 1, + 'scheduled_at' => null, ], [ - "name" => "Update", - "message" => "We've found the problem, so we're looking at it.", - "status" => 2, - "component_id" => 0, - "user_id" => 1, - "scheduled_at" => null, + 'name' => 'Update', + 'message' => "We've found the problem, so we're looking at it.", + 'status' => 2, + 'component_id' => 0, + 'user_id' => 1, + 'scheduled_at' => null, ], [ - "name" => "Test Incident", - "message" => "Something went wrong, oh noes.", - "component_id" => 0, - "user_id" => 1, - "scheduled_at" => null, + 'name' => 'Test Incident', + 'message' => 'Something went wrong, oh noes.', + 'component_id' => 0, + 'user_id' => 1, + 'scheduled_at' => null, ], ]; diff --git a/database/seeds/SettingsTableSeeder.php b/database/seeds/SettingsTableSeeder.php index 1dde6ee9..ac1bd85e 100644 --- a/database/seeds/SettingsTableSeeder.php +++ b/database/seeds/SettingsTableSeeder.php @@ -17,36 +17,36 @@ class SettingsTableSeeder extends Seeder $defaultSettings = [ [ - "name" => "app_name", - "value" => "Cachet Demo", + 'name' => 'app_name', + 'value' => 'Cachet Demo', ], [ - "name" => "app_domain", - "value" => "https://demo.cachethq.io", + 'name' => 'app_domain', + 'value' => 'https://demo.cachethq.io', ], [ - "name" => "show_support", - "value" => "1", + 'name' => 'show_support', + 'value' => '1', ], [ - "name" => "app_locale", - "value" => "en", + 'name' => 'app_locale', + 'value' => 'en', ], [ - "name" => "app_timezone", - "value" => "Europe/London", + 'name' => 'app_timezone', + 'value' => 'Europe/London', ], [ - "name" => "app_track", - "value" => "1", + 'name' => 'app_track', + 'value' => '1', ], [ - "name" => "app_incident_days", - "value" => "7", + 'name' => 'app_incident_days', + 'value' => '7', ], [ - "name" => "app_analytics", - "value" => "UA-58442674-3", + 'name' => 'app_analytics', + 'value' => 'UA-58442674-3', ], ]; diff --git a/database/seeds/UsersTableSeeder.php b/database/seeds/UsersTableSeeder.php index 9d379a4f..0fe2006d 100644 --- a/database/seeds/UsersTableSeeder.php +++ b/database/seeds/UsersTableSeeder.php @@ -17,11 +17,11 @@ class UsersTableSeeder extends Seeder $users = [ [ - "username" => "test", - "password" => "test123", - "email" => "test@test.com", - "level" => 1, - "api_key" => "9yMHsdioQosnyVK4iCVR", + 'username' => 'test', + 'password' => 'test123', + 'email' => 'test@test.com', + 'level' => 1, + 'api_key' => '9yMHsdioQosnyVK4iCVR', ], ]; diff --git a/public/index.php b/public/index.php index 59cd05fb..5c2fb420 100644 --- a/public/index.php +++ b/public/index.php @@ -1,4 +1,5 @@