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:
@@ -65,5 +65,12 @@
|
||||
"ext-uls-compact-link-info": "All languages (initial selection from common choices by you and others)",
|
||||
"prefs-languages": "Languages",
|
||||
"ext-uls-compact-language-links-preference": "Use a [[$1|compact language list]], with languages relevant to you.",
|
||||
"ext-uls-compact-no-results": "This page is not available in the language you searched for."
|
||||
"ext-uls-compact-no-results": "This page is not available in the language you searched for.",
|
||||
"ext-uls-setlang-error": "There was an error while updating your preferred language. Error: $1",
|
||||
"ext-uls-setlang-unknown-error": "Unknown error",
|
||||
"ext-uls-setlang-message": "The link you followed requested the interface to be shown in <strong>$1 ($2)</strong>",
|
||||
"ext-uls-setlang-heading": "Change interface language?",
|
||||
"ext-uls-setlang-accept": "Accept change",
|
||||
"ext-uls-setlang-loading": "Applying...",
|
||||
"ext-uls-setlang-cancel": "Don't change"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user