-
Notifications
You must be signed in to change notification settings - Fork 147
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
How to show only available languages for page #303
Comments
This seems like a request for new feature, I updated https://qtranslatexteam.wordpress.com/desirable/. If you decide to do coding, please let us know your plan before going too deeply. The problem with this one is that information about languages available is not easily available at front end. We need then to implement some kind of caching, otherwise it will be too much of performance overhead. |
I could do that, but I need some basic information :) How to check if page have specific translation for example. |
Great. Why don't you make a function qtranxf_getPageAvailableLanguages() and make use of it instead of If option 'Hide Content which is not available for the selected language' is on and if we are on a single post or page (figure out those "if"s), then we will return only available languages. I will put the code to fetch the available languages then in. I have an idea how to do that caching mechanism, and it would be too much to explain in words. |
This could be also affine to my request #297 (sorry but I haven't had time to check out the commit @johnclause made). |
@johnclause we already implemented this by ourselves. Check pull request 👍 |
Hi, I truly apologize, @dopesong, for disappearing, I hurt my back and was immobilized for a while. Very good, that you found a way. I will take a look at your p r, and am closing this issue, we can still write into it or may reopen it if needed. Thanks a lot! |
I want in language switcher only to show languages into which that page is translated. How I can do that?
The text was updated successfully, but these errors were encountered: