Skip to content
Mariusz Łączak edited this page Feb 15, 2014 · 6 revisions

Example usage

Easy translation, just place messages at __() function and after changing language the strings will be automatically translated to eg. PL lang from common/i18n/pl.php file.

<?php
echo __('The base application in PhalconPHP');
echo __('Hello :user', array(':user' => 'mruz'));
Also available in volt engine
{{ __('Hello :user', [':user' : 'mruz']) }}
Clone this wiki locally