Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6b73bb52
Commit
6b73bb52
authored
Nov 20, 2018
by
Julien Palard
Committed by
GitHub
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558)
parent
02e6bf7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Doc/tools/static/switchers.js
Doc/tools/static/switchers.js
+6
-0
No files found.
Doc/tools/static/switchers.js
View file @
6b73bb52
...
...
@@ -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
(
''
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment