PHP code example of joel-depiltech / codeigniter-gettext
1. Go to this page and download the library: Download joel-depiltech/codeigniter-gettext 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/ */
joel-depiltech / codeigniter-gettext example snippets
class Your_controller extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library(
'gettext',
array(
'gettext_text_domain' => 'my-project',
'gettext_locale' => 'fr_FR.UTF-8',
'gettext_locale_dir' => 'language/gettext'
)
);
}
}