mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Automatic language detection
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.
This commit is contained in:
parent
def0f35141
commit
c8e0ca45fb
7 changed files with 79 additions and 28 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
if (!defined('LANGUAGE')) die('Direct access not allowed');
|
||||
|
||||
$LANG = array(
|
||||
$LANG['ru'] = array(
|
||||
'yes' => 'да',
|
||||
'no' => 'нет',
|
||||
'none' => 'нет',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue