mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 15:10:22 +00:00
Add locale support for sk_SK - thx @marek-guran
This commit is contained in:
parent
fd201207b4
commit
5cbc70cd6f
3 changed files with 1241 additions and 2 deletions
|
@ -75,6 +75,9 @@ if (empty($_SESSION['locale']) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2)
|
||||||
case "pl":
|
case "pl":
|
||||||
$locale = "pl_PL.UTF-8";
|
$locale = "pl_PL.UTF-8";
|
||||||
break;
|
break;
|
||||||
|
case "sk":
|
||||||
|
$locale = "sk_SK.UTF-8";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$locale = "en_GB.UTF-8";
|
$locale = "en_GB.UTF-8";
|
||||||
break;
|
break;
|
||||||
|
@ -117,10 +120,10 @@ function getLocales()
|
||||||
'pt_BR.UTF-8' => 'Português',
|
'pt_BR.UTF-8' => 'Português',
|
||||||
'ru_RU.UTF-8' => 'Русский',
|
'ru_RU.UTF-8' => 'Русский',
|
||||||
'ro_RO.UTF-8' => 'Română',
|
'ro_RO.UTF-8' => 'Română',
|
||||||
|
'sk_SK.UTF-8' => 'Slovenčina',
|
||||||
'sv_SE.UTF-8' => 'Svenska',
|
'sv_SE.UTF-8' => 'Svenska',
|
||||||
'tr_TR.UTF-8' => 'Türkçe',
|
'tr_TR.UTF-8' => 'Türkçe',
|
||||||
'vi_VN.UTF-8' => 'Tiếng Việt (Vietnamese)'
|
'vi_VN.UTF-8' => 'Tiếng Việt (Vietnamese)'
|
||||||
);
|
);
|
||||||
return $arrLocales;
|
return $arrLocales;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
locale/sk_SK/LC_MESSAGES/messages.mo
Normal file
BIN
locale/sk_SK/LC_MESSAGES/messages.mo
Normal file
Binary file not shown.
1236
locale/sk_SK/LC_MESSAGES/messages.po
Normal file
1236
locale/sk_SK/LC_MESSAGES/messages.po
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue