Added support for pt_BR, thx @dalmago

This commit is contained in:
billz 2018-05-28 20:36:08 +00:00
parent e317d3014f
commit 53cdbd2528
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ if (!isset($_SESSION["locale"])) {
case "it":
$locale = "it_IT.UTF-8";
break;
case "pt":
$locale = "pt_BR.UTF-8";
break;
default:
$locale = "en_GB.UTF-8";
break;
@ -32,7 +35,7 @@ if (!isset($_SESSION["locale"])) {
// Note: the associated locale must be installed on the RPi
// Use: 'sudo raspi-configure' and select 'Localisation Options'
// Uncomment for testing
// $locale = "fr_FR.UTF-8";
// $locale = "pt_BR.UTF-8";
$_SESSION["locale"] = $locale;
// activate the locale setting