2017 © Pedro Peláez
 

library laravel-translation

A Laravel 5 package that implements the Symfony Po-Translation lib.

image

astrotomic/laravel-translation

A Laravel 5 package that implements the Symfony Po-Translation lib.

  • Thursday, September 29, 2016
  • by Gummibeer
  • Repository
  • 2 Watchers
  • 4 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Translation

GitHub Author GitHub release GitHub license GitHub issues, (*1)

Travis branch StyleCI Code Climate Code Climate Code Climate, (*2)

This is a laravel wrapper for the Symfony PoTranslator. It comes with two global helper functions __() and _n()., (*3)

Installation

composer.json "astrotomic/laravel-translation": "dev-master", (*4)

config/app.php, (*5)

return [
    ...
    'providers' => [
        Astrotomic\Laravel\Translation\TranslatorServiceProvider::class,
    ],
    ...
    'aliases' => [
        'Trans' => Astrotomic\Laravel\Translation\Facades\TranslatorFacade::class,
    ],
    ...
];

console, (*6)

composer update
artisan vendor:publish

Usage

To generate the po files you first have to compile all your views, PoEdit can't handle blade, to do this use the artisan command artisan view:compile. After this you can generate the po files and the proper header with artisan trans:po. To collect and translate all the strings use PoEdit., (*7)

The Versions

29/09 2016

dev-master

9999999-dev

A Laravel 5 package that implements the Symfony Po-Translation lib.

  Sources   Download

MIT

The Requires

 

by Avatar Gummibeer

29/09 2016

v0.1-alpha

0.1.0.0-alpha

A Laravel 5 package that implements the Symfony Po-Translation lib.

  Sources   Download

MIT

The Requires

 

by Avatar Gummibeer

29/09 2016

dev-analysis-zRYPrD

dev-analysis-zRYPrD

A Laravel 5 package that implements the Symfony Po-Translation lib.

  Sources   Download

MIT

The Requires

 

by Avatar Gummibeer