mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-09-08 08:18:40 +02:00
Added automatic language detection based on HTTP_ACCEPT_LANGUAGE header. New function _translate, that translates string to required language. New file: setlang.php?l=language_code - sets session language.
9 lines
146 B
PHP
9 lines
146 B
PHP
<?php
|
|
/*
|
|
* Just sets language
|
|
*/
|
|
session_start();
|
|
$_SESSION['language'] = strtolower(substr((string)$_GET['l'],0,2));
|
|
header("Location: /");
|
|
?>
|