Allow a language to be chosen before installing WordPress. First pass.

* Checks WordPress.org for available languages.
* In get_locale(), starts using the WPLANG option that has existed in multisite since the MU days.
* Adds new argument to wp_install() for setting WPLANG.

see #28577. 


git-svn-id: https://develop.svn.wordpress.org/trunk@28774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-06-18 19:57:21 +00:00
parent 0688f9eb49
commit 39cf46851b
4 changed files with 128 additions and 7 deletions
+35
View File
@@ -311,3 +311,38 @@ body.rtl,
}
}
.language-chooser select {
margin: 1px;
padding: 8px;
width: 100%;
display: block;
border: 1px solid #ddd;
-webkit-border-radius: 0;
border-radius: 0; /* Reset mobile webkit's default element styling */
-webkit-transition: .05s border-color ease-in-out;
transition: .05s border-color ease-in-out;
outline: 0;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
background-color: #fff;
color: #333;
font-size: 16px;
font-family: inherit;
font-weight: inherit;
}
.language-chooser select:focus {
border-color: #5b9dd9;
-webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8);
box-shadow: 0 0 2px rgba(30,140,190,0.8);
}
.wp-core-ui .language-chooser .button.button-hero {
font-size: 30px;
line-height: 30px;
}
.language-chooser p {
text-align: right;
}