2017 © Pedro Peláez
 

library trans

simple translations

image

noroman/trans

simple translations

  • Wednesday, July 5, 2017
  • by noRoman
  • Repository
  • 0 Watchers
  • 0 Stars
  • 313 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 58 % Grown

The README.md

Simple translations

<?php
require_once __DIR__ . '/vendor/autoload.php'

$locale = 'ru';
// throw exceptions [optional] default: false
$strict = true;
$trans = new Trans([path-to-dir-dictionaries], $locale, $strict);

print_r($trans->get('Hello, World!'));

/**
 * Exception: not found dictionary
 * $trans->setLocale('de');
 * $trans->get('Hello, World!')
 */

// silent mode
$locale = 'de';
$trans = new Trans([path-to-dir-dictionaries], $locale);
// output: Hello, World!
print_r($trans->get('Hello, World!'));

The Versions

05/07 2017

dev-master

9999999-dev

simple translations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Novikov Roman

05/07 2017

v0.1.0

0.1.0.0

simple translations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Novikov Roman