oito/php-micro-plugin-translation

Symfony Translation plugin for Oito PHP Microframework

v1.0.0 2014-03-01 18:24 UTC

README

Uses the libraries

About

This plugin enables you to use the Symfony Translation library to translate pages to multiple languages.

Usage

<?php

$app = new \Oito\Micro\Application();

// the plugin will be available as: "translation"
$app->addPlugin(new \Oito\Micro\Plugin\Translation());

$app->translation->trans('...');