Update setlang to display confirmation dialog to change language
setlang will now display a dialog to confirm with the user that they would like to change their interface language. The preferred language will only be updated if the user confirms. The dialog will be displayed if the setlang parameter is present in the query string and, * A user is logged in, and their preferred language is not the same as the one passed via setlang. * For an anonymous user if the wgULSAnonCanChangeLanguage is true, and the current interface language is not the same as the one passed via setlang. Bug: T63115 Change-Id: I882297d99a594fd82fd0aec3b4664e8bfd1eac3a
This commit is contained in:
24
resources/css/ext.uls.setlang.less
Normal file
24
resources/css/ext.uls.setlang.less
Normal file
@@ -0,0 +1,24 @@
|
||||
.uls-setlang-dialog {
|
||||
h4 {
|
||||
margin-bottom: 1em;
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.language-setlang-buttons {
|
||||
text-align: right;
|
||||
margin-top: 20px;
|
||||
|
||||
@media screen and ( max-width: 599px ) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.language-setlang-buttons button {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user