Browse Source
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558)
pull/10234/head
Julien Palard
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
Doc/tools/static/switchers.js
|
|
|
@ -49,6 +49,12 @@ |
|
|
|
else |
|
|
|
buf.push('<option value="' + language + '">' + title + '</option>'); |
|
|
|
}); |
|
|
|
if (!(current_language in all_languages)) { |
|
|
|
// In case we're browsing a language that is not yet in all_languages.
|
|
|
|
buf.push('<option value="' + current_language + '" selected="selected">' + |
|
|
|
current_language + '</option>'); |
|
|
|
all_languages[current_language] = current_language; |
|
|
|
} |
|
|
|
buf.push('</select>'); |
|
|
|
return buf.join(''); |
|
|
|
} |
|
|
|
|