From 26da81a3b011198e90eed38c42e198d040d9dcfc Mon Sep 17 00:00:00 2001
From: Dan Brown <ssddanbrown@googlemail.com>
Date: Wed, 18 Jan 2017 20:04:29 +0000
Subject: [PATCH] Added pt_BR to language dropdown and renamed folder

---
 app/Http/Middleware/Localization.php          | 4 +---
 resources/lang/en/settings.php                | 1 +
 resources/lang/{ptbr => pt_BR}/activities.php | 0
 resources/lang/{ptbr => pt_BR}/auth.php       | 0
 resources/lang/{ptbr => pt_BR}/common.php     | 0
 resources/lang/{ptbr => pt_BR}/components.php | 0
 resources/lang/{ptbr => pt_BR}/entities.php   | 0
 resources/lang/{ptbr => pt_BR}/errors.php     | 0
 resources/lang/{ptbr => pt_BR}/pagination.php | 0
 resources/lang/{ptbr => pt_BR}/passwords.php  | 0
 resources/lang/{ptbr => pt_BR}/settings.php   | 0
 resources/lang/{ptbr => pt_BR}/validation.php | 0
 12 files changed, 2 insertions(+), 3 deletions(-)
 rename resources/lang/{ptbr => pt_BR}/activities.php (100%)
 rename resources/lang/{ptbr => pt_BR}/auth.php (100%)
 rename resources/lang/{ptbr => pt_BR}/common.php (100%)
 rename resources/lang/{ptbr => pt_BR}/components.php (100%)
 rename resources/lang/{ptbr => pt_BR}/entities.php (100%)
 rename resources/lang/{ptbr => pt_BR}/errors.php (100%)
 rename resources/lang/{ptbr => pt_BR}/pagination.php (100%)
 rename resources/lang/{ptbr => pt_BR}/passwords.php (100%)
 rename resources/lang/{ptbr => pt_BR}/settings.php (100%)
 rename resources/lang/{ptbr => pt_BR}/validation.php (100%)

diff --git a/app/Http/Middleware/Localization.php b/app/Http/Middleware/Localization.php
index 3624e0e01..31cb5d9a2 100644
--- a/app/Http/Middleware/Localization.php
+++ b/app/Http/Middleware/Localization.php
@@ -1,6 +1,4 @@
-<?php
-
-namespace BookStack\Http\Middleware;
+<?php namespace BookStack\Http\Middleware;
 
 use Carbon\Carbon;
 use Closure;
diff --git a/resources/lang/en/settings.php b/resources/lang/en/settings.php
index 4e072bb96..ed8a0db43 100644
--- a/resources/lang/en/settings.php
+++ b/resources/lang/en/settings.php
@@ -117,6 +117,7 @@ return [
         'en' => 'English',
         'de' => 'Deutsch',
         'fr' => 'Français',
+        'pt_BR' => 'Português do Brasil'
     ]
     ///////////////////////////////////
 ];
diff --git a/resources/lang/ptbr/activities.php b/resources/lang/pt_BR/activities.php
similarity index 100%
rename from resources/lang/ptbr/activities.php
rename to resources/lang/pt_BR/activities.php
diff --git a/resources/lang/ptbr/auth.php b/resources/lang/pt_BR/auth.php
similarity index 100%
rename from resources/lang/ptbr/auth.php
rename to resources/lang/pt_BR/auth.php
diff --git a/resources/lang/ptbr/common.php b/resources/lang/pt_BR/common.php
similarity index 100%
rename from resources/lang/ptbr/common.php
rename to resources/lang/pt_BR/common.php
diff --git a/resources/lang/ptbr/components.php b/resources/lang/pt_BR/components.php
similarity index 100%
rename from resources/lang/ptbr/components.php
rename to resources/lang/pt_BR/components.php
diff --git a/resources/lang/ptbr/entities.php b/resources/lang/pt_BR/entities.php
similarity index 100%
rename from resources/lang/ptbr/entities.php
rename to resources/lang/pt_BR/entities.php
diff --git a/resources/lang/ptbr/errors.php b/resources/lang/pt_BR/errors.php
similarity index 100%
rename from resources/lang/ptbr/errors.php
rename to resources/lang/pt_BR/errors.php
diff --git a/resources/lang/ptbr/pagination.php b/resources/lang/pt_BR/pagination.php
similarity index 100%
rename from resources/lang/ptbr/pagination.php
rename to resources/lang/pt_BR/pagination.php
diff --git a/resources/lang/ptbr/passwords.php b/resources/lang/pt_BR/passwords.php
similarity index 100%
rename from resources/lang/ptbr/passwords.php
rename to resources/lang/pt_BR/passwords.php
diff --git a/resources/lang/ptbr/settings.php b/resources/lang/pt_BR/settings.php
similarity index 100%
rename from resources/lang/ptbr/settings.php
rename to resources/lang/pt_BR/settings.php
diff --git a/resources/lang/ptbr/validation.php b/resources/lang/pt_BR/validation.php
similarity index 100%
rename from resources/lang/ptbr/validation.php
rename to resources/lang/pt_BR/validation.php