PHP code example of intelligenia / behistun
1. Go to this page and download the library: Download intelligenia/behistun 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/ */
intelligenia / behistun example snippets
// For example we are going to translate to Spanish and French
$LANGUAGES = ["es_ES", "fr_FR"];
// Call Translator class with the language code you want to translate the texts
// this code only should be executed once, when you have a selected language that is
// different from the default language (e.g. English if your web is for English-speaking people)
$translator = new Translator($LANGUAGE);
sh
php vendor/intelligenia/behistun/behistun/bin/update_translations.php <template-path> <language> [purge]