-
Notifications
You must be signed in to change notification settings - Fork 16
Flyout: better language switcher #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oops, I have opened this issue on the wrong repo? I agree that the readthedocs.org language switcher is great, I am looking for something similar in the Sphinx docs hosted by RTD. On my project, you need to click once to open the flyout (with no indication the language switcher is in there), then again on a language code (rather than a human-readable language name). I would like to get this in a more visible and user-friendly format. |
No, at all. I agree the language chooser needs to improve |
I would be interested in making a one-time donation or bounty to support this work :) |
Might be worth weighing in on this issue: readthedocs/readthedocs.org#3129. At the moment, I don't think we have a recommended bounty program in place. |
@RichardLitt, readthedocs/readthedocs.org#3129 is concerning a security bug bounty program. I believe @strophy is after something along the lines of https://www.bountysource.com/. |
@EdOverflow Good catch. You're right. |
Correct @EdOverflow - I'm looking to either directly fund or post a bounty for development of an improved language switcher in line with the RTD coding and style guidelines. I'm happy to post this on Bountysource, unless someone here can give an estimate and offer? Feel free to PM or email [email protected] |
@ICJR thanks for the interest in collaborating here! Beware that the issue is tagged as |
This is part of our theme, sphinx_rtd_theme. Feel free to suggest/mock up any design changes you're thinking of first. After we make a decision we can move on to a development phase. |
Thanks @agjohnson I suspected I might have the wrong repo here. Let me know if you want me to open another issue on the sphinx_rtd_theme repo instead. Regarding design:
|
I think something should be done with the floating footer too since not all projects use the rtd theme, so we inject the floating footer for them. Or maybe just make this change for the rtd theme? |
Sorry, I don't entirely understand - do you mean put the language changer in the footer only? Or have an option to inject it either there or in the header? I would strongly prefer an option to have it in the header, we have a lot of non-English speaking users and the option to read documentation in the native language (if available) needs to be easily visible. |
There are two ways of using rtd.
So, or we only modify the rtd theme, or we do it in both, the rtd theme and the floating footer. Or maybe another place. |
Understood, thanks! Waiting for design decision from RTD side. |
The top-right placement is a feature specific to documentation built with the latest version of our theme, so I'm -1 on that placement. It's also deviating from current pattern of implementing feature as flyout menu options. We have the flyout menu for this case -- dynamic content dropped into static documentation. I'd say that if you want this dropdown placement on your docs, you should override our theme layout with local theme overrides and apply the dropdown to your docs. If we implement a better language selector, it's most likely going to be in our flyout menu. I'm not certain what that looks like yet though, a dropdown selector is a deviation of style there, and doesn't fit with the current elements. |
Accepting for now, but not in it's current state. We need to find a pattern that works for our flyout menu instead of in-doc. |
Great to see this accepted, thank you! I think the flyout is an acceptable location, particularly if it makes sense from a design and logic point of view (dynamic vs. static content). But I would suggest some user-facing indication (e.g. globe icon) that settings such as this are actually available in the flyout menu. The current flyout is labelled |
Agreed, I like the idea of at least some indication of language. Even just including the language code would be a start: Ultimately, with a re-implemented flyout menu, I think we will add more visual guides, and likely remove usage of things like language locale codes in place of descriptive locale names. There are probably a few stages to upgrading the menu |
Hi, also interested in this improvement. As it looks like there hasn't been any activity for a while, I have two questions. Would it be possible for me to make this change to show *now is being very optimistic, at some point soonish but dependent on available time |
This would eventually be supported by #64 |
Read the Docs could benefit from a more user-friendly language switcher. I suspect the current language switcher is included in the code that generates the flyout, since its appearance is the same in both the RTD and Alabaster themes. Instead of listing lang_slug codes in the flyout, it would be preferable to offer a native language human readable language switcher according to best practices described here, and in a more visible (and configurable?) location.
The text was updated successfully, but these errors were encountered: