PHP code example of saeven / circlical-po-editor

1. Go to this page and download the library: Download saeven/circlical-po-editor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

saeven / circlical-po-editor example snippets


$po = new Circlical\PoEditor( 'file.po' );
$po->parse();

$po = new Circlical\PoEditor( 'file.po' );
$po->parse();
$po->getBlock( 'welcome' )->setMsgstr( "hola" );
$po->compile();