1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Added locale support for sv_SE

This commit is contained in:
billz 2018-05-29 22:19:27 +00:00
parent 14ac92b33e
commit b4c3fe1bd3

View File

@ -26,6 +26,9 @@ if (empty($_SESSION['locale'])) {
case "pt": case "pt":
$locale = "pt_BR.UTF-8"; $locale = "pt_BR.UTF-8";
break; break;
case "sv":
$locale = "sv_SE.UTF-8";
break;
default: default:
$locale = "en_GB.UTF-8"; $locale = "en_GB.UTF-8";
break; break;
@ -35,8 +38,6 @@ if (empty($_SESSION['locale'])) {
// Note: the associated locale must be installed on the RPi // Note: the associated locale must be installed on the RPi
// Use: 'sudo raspi-configure' and select 'Localisation Options' // Use: 'sudo raspi-configure' and select 'Localisation Options'
// Uncomment for testing
// $locale = "pt_BR.UTF-8";
// activate the locale setting // activate the locale setting
putenv("LANG=" . $_SESSION['locale']); putenv("LANG=" . $_SESSION['locale']);