Skip to content

Commit

Permalink
new language: uk (українська)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0m4r committed Dec 25, 2023
1 parent c9d60c9 commit 95bf805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lang.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

print_r($_SERVER['HTTP_ACCEPT_LANGUAGE']);

if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); echo $lang;
} else {
$lang = 'en';
}
Expand All @@ -10,7 +12,7 @@
{
case 'pl':
require("lang/pl.php"); break;
case 'ua':
case 'uk':
require("lang/ua.php"); break;
default:
require("lang/en.php"); break;
Expand Down
File renamed without changes.

0 comments on commit 95bf805

Please sign in to comment.