summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/locale.inc2
-rw-r--r--install.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 31c88317f..fbe8f6e0b 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -2385,7 +2385,7 @@ function _locale_get_predefined_list() {
"pi" => array("Pali"),
"pl" => array("Polish", "Polski"),
"ps" => array("Pashto", /* Left-to-right marker "‭" */ "پښتو", LANGUAGE_RTL),
- "pt" => array("Portuguese, Portugal", "Português"),
+ "pt-pt" => array("Portuguese, Portugal", "Português"),
"pt-br" => array("Portuguese, Brazil", "Português"),
"qu" => array("Quechua"),
"rm" => array("Rhaeto-Romance"),
diff --git a/install.php b/install.php
index 159761e78..6c01f1040 100644
--- a/install.php
+++ b/install.php
@@ -101,7 +101,7 @@ function install_main() {
// Locale selection
if (!empty($_GET['locale'])) {
- $install_locale = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['locale']);
+ $install_locale = preg_replace('/[^a-zA-Z_0-9\-]/', '', $_GET['locale']);
}
elseif (($install_locale = install_select_locale($profile)) !== FALSE) {
install_goto("install.php?profile=$profile&locale=$install_locale");