From b4c3fe1bd310658189d16cf368369b4d44cf42e0 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 29 May 2018 22:19:27 +0000 Subject: [PATCH] Added locale support for sv_SE --- includes/locale.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/locale.php b/includes/locale.php index 02b93809..5433bf4a 100755 --- a/includes/locale.php +++ b/includes/locale.php @@ -26,6 +26,9 @@ if (empty($_SESSION['locale'])) { case "pt": $locale = "pt_BR.UTF-8"; break; + case "sv": + $locale = "sv_SE.UTF-8"; + break; default: $locale = "en_GB.UTF-8"; break; @@ -35,8 +38,6 @@ if (empty($_SESSION['locale'])) { // Note: the associated locale must be installed on the RPi // Use: 'sudo raspi-configure' and select 'Localisation Options' -// Uncomment for testing -// $locale = "pt_BR.UTF-8"; // activate the locale setting putenv("LANG=" . $_SESSION['locale']);