Translations
De ZanPHP
ZanPHP implements two forms of translation, the first using GetText and the second one manually.
The way to translate Gettext is used as follows:
<?php print __(_("Some text to translate")); ?>
To make the translation need to install a program called PoEdit (http://www.poedit.net) and translate our files .PO which are located in the folder www/lib/languages/gettext.
If we use the traditional way of translation, we set the constant _translation which is on file www/config/config.basics.php and put a value of "normal".
For this type of translation is only necessary to use the function __().
<?php print __("Some text to translate"); ?>
Then you need to add the translation in the following file www/lib/languages/language.spanish.php, it must be added as follows:
function translation($text) { switch($text) { case "Some text to translate": return "Algún texto para traducir"; break; } return $text; }