installation de motranslator

via Composer
This commit is contained in:
2024-12-13 06:44:07 +01:00
parent 3ee1a9eaf6
commit db9f05f6f6
249 changed files with 29788 additions and 0 deletions

19
translator_gettext.php Normal file
View 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');
?>