Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
include __DIR__ . '/../vendor/autoload.php';
$lang = isset($_GET['lang']) ? $_GET['lang'] : 'en';
/** @var Zend\I18n\Translator\Translator $translator */
$translator = include __DIR__ . '/../src/translator.php';
<!DOCTYPE html>
<meta charset="utf-8">
<p><?php echo $translator->translate('Hello my friend'); ?></p>
<p><?php echo $translator->translate('How are you?'); ?></p>
<p><?php echo $translator->translate('My name is Adam Crik'); ?></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.