PHP code example of fabriziocaldarelli / yii2-messages-translations-manager

1. Go to this page and download the library: Download fabriziocaldarelli/yii2-messages-translations-manager 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/ */

    

fabriziocaldarelli / yii2-messages-translations-manager example snippets


'components' => [
    
    'i18n' => [
        'translations' => [
            '*' => [
                'class' => 'yii\i18n\DbMessageSource',

                // Same table name of messagesTranslationsManager message table name
                'messageTable' => 'i18n_message',

                // Same table name of messagesTranslationsManager source message table name
                'sourceMessageTable' => 'i18n_source_message',
            ],
        ],
    ],	
        
],

'modules' => [
    'messagesTranslationsManager' => [
        'class' => 'sfmobile\ext\messagesTranslationsManager\Module',

        // Replace message table name
        'messageTable' => 'i18n_message',

        // Replace source message table name
        'sourceMessageTable' => 'i18n_source_message',

        // If you are using AdminLTE, you can activate right format of view files
        'isAdminLteLayout' => true,

        // List of supported languages
        'languages' => ['it', 'en'],
    ],
],    

php composer.phar