PHP code example of jeyroik / extas-translate
1. Go to this page and download the library: Download jeyroik/extas-translate 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/ */
jeyroik / extas-translate example snippets
use extas\components\translates\helpers\Error;
echo Error::make('Access denied', 'ru'); // что-то вроде "jdhJPdg4b22nd945Nbb"
use extas\components\translates\TranslateCoder;
$coder = new TranslateCoder();
echo $coder->translate('jdhJPdg4b22nd945Nbb')->getText(); // "Доступ запрещён"