installation de motranslator
via Composer
This commit is contained in:
19
translator_gettext.php
Normal file
19
translator_gettext.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require('vendor/autoload.php');
|
||||
|
||||
// Load compatibility layer
|
||||
PhpMyAdmin\MoTranslator\Loader::loadFunctions();
|
||||
|
||||
$langue = "fr_FR.utf8";
|
||||
// Configure
|
||||
_setlocale(LC_MESSAGES, $langue);
|
||||
_textdomain('sentier');
|
||||
_bindtextdomain('sentier', __DIR__ . '/Locale/');
|
||||
_bind_textdomain_codeset('sentier', 'UTF-8');
|
||||
|
||||
// Use functions
|
||||
echo _gettext('All photos');
|
||||
echo __('Aperture Priority');
|
||||
|
||||
echo _gettext('motranslator');
|
||||
?>
|
||||
Reference in New Issue
Block a user