PHP code example of it-blaster / translation-bundle

1. Go to this page and download the library: Download it-blaster/translation-bundle 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/ */

    

it-blaster / translation-bundle example snippets

 bash
$ php composer.phar update it-blaster/translation-bundle
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new ItBlaster\TranslationBundle\ItBlasterTranslationBundle(),
    );
}
 bash

return \ItBlaster\TranslationBundle\Model\TranslationPeer::getListForLocale("LOCALE");
 bash

return \ItBlaster\TranslationBundle\Model\TranslationPeer::getListForLocale("en");
 bash
'php app/console translation:extract en --dir=./src/ --output-dir=./src/App/MainBundle/Resources/translations/ --exclude-name="*.php" --output-format="php"'
 bash
parameters:
    ...
    jms_translation.dumper.php_dumper.class: ItBlaster\TranslationBundle\Translation\Dumper\PhpDumper
    ...