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:
parent
e317d3014f
commit
53cdbd2528
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user