php-gettext / Gettext

PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
MIT License
687 stars 134 forks source link

Gettext\Loader\PoLoader doesn't exist #239

Closed Stephirio closed 4 years ago

Stephirio commented 4 years ago

When I try to use this code:

require_once __DIR__ . "/vendor/autoload.php";

use Gettext\Loader\PoLoader;

$loader = new PoLoader();

$dir = "/app/";

$t = $loader->loadFile($dir . "languages/it.po");

print_r($t . "YE::::);

it doesn't show anything on the page. Also "YE:::::" doesn't show up.

Sorry for ignorance, I'm a beginner of PHP.

oscarotero commented 4 years ago

The code is wrong, you miss the final quote in print_r($t . "YE::::);

Stephirio commented 4 years ago

The code is wrong, you miss the final quote in print_r($t . "YE::::);

Oh, sorry, I'm a noob.