From fb133056411048e09f38f361b1b72338527f9d91 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Wed, 24 Oct 2018 11:34:49 -0400 Subject: [PATCH] Delete PhraseAppTranslator.php --- app/Extensions/PhraseAppTranslator.php | 31 -------------------------- 1 file changed, 31 deletions(-) delete mode 100644 app/Extensions/PhraseAppTranslator.php diff --git a/app/Extensions/PhraseAppTranslator.php b/app/Extensions/PhraseAppTranslator.php deleted file mode 100644 index 145f60392..000000000 --- a/app/Extensions/PhraseAppTranslator.php +++ /dev/null @@ -1,31 +0,0 @@ -. - * - * This software is licensed under the terms of the MIT license. - * https://opensource.org/licenses/MIT - */ - -namespace Pterodactyl\Extensions; - -use Illuminate\Translation\Translator as LaravelTranslator; - -class PhraseAppTranslator extends LaravelTranslator -{ - /** - * Get the translation for the given key. - * - * @param string $key - * @param array $replace - * @param string|null $locale - * @param bool $fallback - * @return string - */ - public function get($key, array $replace = [], $locale = null, $fallback = true) - { - $key = substr($key, strpos($key, '.') + 1); - - return "{{__phrase_${key}__}}"; - } -}