make dane and styleci happy
This commit is contained in:
parent
7f0608d412
commit
7f1000dd8a
3 changed files with 3 additions and 5 deletions
|
@ -40,6 +40,7 @@ class PhraseAppTranslator extends LaravelTranslator
|
||||||
public function get($key, array $replace = [], $locale = null, $fallback = true)
|
public function get($key, array $replace = [], $locale = null, $fallback = true)
|
||||||
{
|
{
|
||||||
$key = substr($key, strpos($key, '.') + 1);
|
$key = substr($key, strpos($key, '.') + 1);
|
||||||
|
|
||||||
return "{{__phrase_${key}__}}";
|
return "{{__phrase_${key}__}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,8 @@ use Pterodactyl\Extensions\PhraseAppTranslator;
|
||||||
use Illuminate\Translation\TranslationServiceProvider;
|
use Illuminate\Translation\TranslationServiceProvider;
|
||||||
use Illuminate\Translation\Translator as IlluminateTranslator;
|
use Illuminate\Translation\Translator as IlluminateTranslator;
|
||||||
|
|
||||||
class PhraseAppTranslationProvider extends TranslationServiceProvider {
|
class PhraseAppTranslationProvider extends TranslationServiceProvider
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Register the service provider.
|
* Register the service provider.
|
||||||
*
|
*
|
||||||
|
@ -58,6 +58,4 @@ class PhraseAppTranslationProvider extends TranslationServiceProvider {
|
||||||
return $trans;
|
return $trans;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,6 @@ return [
|
||||||
Illuminate\Redis\RedisServiceProvider::class,
|
Illuminate\Redis\RedisServiceProvider::class,
|
||||||
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
|
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
|
||||||
Illuminate\Session\SessionServiceProvider::class,
|
Illuminate\Session\SessionServiceProvider::class,
|
||||||
//Illuminate\Translation\TranslationServiceProvider::class,
|
|
||||||
Illuminate\Validation\ValidationServiceProvider::class,
|
Illuminate\Validation\ValidationServiceProvider::class,
|
||||||
Illuminate\View\ViewServiceProvider::class,
|
Illuminate\View\ViewServiceProvider::class,
|
||||||
Illuminate\Notifications\NotificationServiceProvider::class,
|
Illuminate\Notifications\NotificationServiceProvider::class,
|
||||||
|
|
Loading…
Reference in a new issue