2017 © Pedro Peláez
 

library laravel-warning-translator

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

image

tremby/laravel-warning-translator

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

  • Thursday, November 6, 2014
  • by tremby
  • Repository
  • 1 Watchers
  • 1 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Warning translator

This translator is an extension of Laravel 4's built-in one. The only differences are these:, (*1)

  • A warning (Log::warning) is logged whenever the translation is not found in the current locale and it has to fall back to the fallback locale.
  • An error (Log::error) is logged whenever the translation is not found in any locale.

As an exception, any translation key beginning with validation.custom. will not trigger errors., (*2)

These logs will be handled however your log messages are normally logged -- whether appearing in the debug bar, logging to a file or going up to a cloud logging service., (*3)

Installation

Require it in your Laravel project:, (*4)

composer require tremby/laravel-warning-translator

Comment out or delete the line in your app/config/app.php which loads the built in translation service provider:, (*5)

// 'Illuminate\Translation\TranslationServiceProvider',

Add a new similar line in its place or at the bottom of the providers array:, (*6)

'Tremby\WarningTranslator\WarningTranslationServiceProvider',

Use

Use translations as normal, as described in the Laravel documentation., (*7)

The Versions

06/11 2014

dev-master

9999999-dev

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

  Sources   Download

MIT

The Requires

 

by Bart Nagel

06/11 2014

v1.1

1.1.0.0

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

  Sources   Download

MIT

The Requires

 

by Bart Nagel

29/10 2014

dev-feature/exceptions

dev-feature/exceptions

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

  Sources   Download

MIT

The Requires

 

by Bart Nagel

29/10 2014

v1.0

1.0.0.0

A drop-in replacement for the Laravel translator which emits warnings and errors when translations had to fall back or were not found

  Sources   Download

MIT

The Requires

 

by Bart Nagel