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

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

View File

@ -23,6 +23,9 @@ if (!isset($_SESSION["locale"])) {
case "it": case "it":
$locale = "it_IT.UTF-8"; $locale = "it_IT.UTF-8";
break; break;
case "pt":
$locale = "pt_BR.UTF-8";
break;
default: default:
$locale = "en_GB.UTF-8"; $locale = "en_GB.UTF-8";
break; break;
@ -32,7 +35,7 @@ if (!isset($_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 // Uncomment for testing
// $locale = "fr_FR.UTF-8"; // $locale = "pt_BR.UTF-8";
$_SESSION["locale"] = $locale; $_SESSION["locale"] = $locale;
// activate the locale setting // activate the locale setting