2017 © Pedro Peláez
 

library potomoco

Simple gettext compiler (.po to .mo)

image

trekksoft/potomoco

Simple gettext compiler (.po to .mo)

  • Monday, March 9, 2015
  • by trekksoft
  • Repository
  • 1 Watchers
  • 3 Stars
  • 12,325 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

potomoco (.po to .mo compiler)

potomoco is a gettext msgfmt implementation in PHP. It compiles .po files to binary .mo files., (*1)

Requirements

  • PHP 5.3+
  • PSR-0 autoloading

Use

<?php
use TrekkSoft\Potomoco\Compiler;

$compiler = new Compiler();

// Generates '/path/to/your/file.mo'
$compiler->compile('/path/to/your/file.po');

// Generates '/path/to/other/compiled.mo'
$compiler->compile('/path/to/your/file.po', '/path/to/other/compiled.mo');

You can also use your own parser (default parser is TrekkSoft\Potomoco\Parser)., (*2)

$compiler->setParser(new YourParser());

Custom parsers need to implement the TrekkSoft\Potomoco\ParserInterface and return an array with TrekkSoft\Potomoco\Message objects., (*3)

The Versions

09/03 2015

dev-master

9999999-dev https://github.com/bigwhoop/potomoco

Simple gettext compiler (.po to .mo)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

gettext

09/03 2015

1.0.0

1.0.0.0 https://github.com/bigwhoop/potomoco

Simple gettext compiler (.po to .mo)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

gettext