File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727use Illuminate \Translation \Translator as LaravelTranslator ;
2828
29- class Translator extends LaravelTranslator
29+ class PhraseAppTranslator extends LaravelTranslator
3030{
3131 /**
3232 * Get the translation for the given key.
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Providers ;
2626
27- use Pterodactyl \Extensions \Translator as PterodactylTranslator ;
28- use Illuminate \Translation \Translator ;
27+ use Pterodactyl \Extensions \PhraseAppTranslator ;
2928use Illuminate \Translation \TranslationServiceProvider ;
29+ use Illuminate \Translation \Translator as IlluminateTranslator ;
3030
31- class TranslationProvider extends TranslationServiceProvider {
31+ class PhraseAppTranslationProvider extends TranslationServiceProvider {
3232
3333 /**
3434 * Register the service provider.
@@ -48,9 +48,9 @@ public function register()
4848 $ locale = $ app ['config ' ]['app.locale ' ];
4949
5050 if ($ app ['config ' ]['app.phrase_in_context ' ]) {
51- $ trans = new PterodactylTranslator ($ loader , $ locale );
51+ $ trans = new PhraseAppTranslator ($ loader , $ locale );
5252 } else {
53- $ trans = new Translator ($ loader , $ locale );
53+ $ trans = new IlluminateTranslator ($ loader , $ locale );
5454 }
5555
5656 $ trans ->setFallback ($ app ['config ' ]['app.fallback_locale ' ]);
Original file line number Diff line number Diff line change 151151 Pterodactyl \Providers \AuthServiceProvider::class,
152152 Pterodactyl \Providers \EventServiceProvider::class,
153153 Pterodactyl \Providers \RouteServiceProvider::class,
154- Pterodactyl \Providers \TranslationProvider ::class,
154+ Pterodactyl \Providers \PhraseAppTranslationProvider ::class,
155155
156156 /*
157157 * Additional Dependencies
You can’t perform that action at this time.
0 commit comments