2017 © Pedro Peláez
 

library translation

image

bleicker/translation

  • Saturday, May 16, 2015
  • by pumatertion
  • Repository
  • 1 Watchers
  • 0 Stars
  • 100 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

Usage

Create your class

<?php

    use Bleicker\Translation\AbstractTranslate;

    class TranslateAble extends AbstractTranslate {

        /**
         * @var string
         */
        protected $foo;
    }

Start to translate

<?php

    $object = new TranslateAble();

    $translation1 = new Translation('English', 'en', 'EN');
    $translation2 = new Translation('German', 'de', 'DE');
    $translation3 = new Translation('Austrian', 'de', 'AU');

    $object
        ->addTranslation($translation1, 'foo')
        ->addTranslation($translation2, 'foo')
        ->addTranslation($translation3, 'foo');

Getting a translation

<?php

    $object->filterTranslationsFor('foo', 'de', 'DE');
    $object->filterTranslationsFor('foo', 'de');
    $object->filterTranslationsFor('foo');

The Versions

16/05 2015
30/04 2015

0.1.0

0.1.0.0

  Sources   Download

The Requires

 

The Development Requires

by Carsten Bleicker

30/04 2015

0.0.2

0.0.2.0

  Sources   Download

The Requires

 

The Development Requires

by Carsten Bleicker

30/04 2015

0.0.1

0.0.1.0

  Sources   Download

The Requires

 

The Development Requires

by Carsten Bleicker