/php-language

Php code for use .mo files as tranlate

Primary LanguagePHP

php-language

Simply and essential code to use .mo files as multilanguage system.

You can find the .pot file as template, more informationatrion regarding how made .pot file here.

##how it works

It' work by get language international code by get variable like that

example.php?locale=it_IT

here the locale code list

in page use the syntax

<?php echo(__('hello world')); ?>

with bouble underscore __ as funtion prefix.