Skip to content

Instantly share code, notes, and snippets.

View dhruv-2015's full-sized avatar
💭
I may be slow to respond.

Dhruv Chadasaniya dhruv-2015

💭
I may be slow to respond.
View GitHub Profile
@Jengas
Jengas / config.php
Created June 2, 2018 12:38
PHP + XML + COOKIES language system
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
// Languages used to generate menus and for template translations
$languages = [
['id' => 'en', 'title' => 'English', 'icon' => 'US'],
['id' => 'es', 'title' => 'ESPAÑOL'],
['id' => 'ru', 'title' => 'РУССКИЙ'],