-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add setting to disable hiding untranslated menu items #1063
Conversation
Thank you! The changes look good. I need to read all the story to understand the topic better. |
This is a common use case in smaller non-commercial collectives or associations: The website is written in one main language (for transnational collectives this is usually English), but a small number of important pages (such as the front page) are translated into other languages, so that people who don't speak the main language can still get a rough idea what the website is about. There are not enough resources to translate all content into all languages. |
Thank you for the summary. As the previous maintainer I also tend to limit the options as much as possible but yes, in that case it makes sense to give this possibility and this seems as the simplest way to do so. If there are many menus and languages we should not impose all the menus to be translated., which might take time and resources. I won't discuss the reasons nor the design for having too many menus, those choices are up to the responsible of the website. A few questions though.
|
|
|
I don't forget this, it's almost ready to merge but need a bit more time to check the third point. |
660b9d6
to
2369434
Compare
@cdauth Sorry this has been so long... I have updated the options naming and description but I keep it as a separate option item. About taxonomy it's another topic or a specific use case, so let's merge the new feature. The use case makes sense as your described it, it can be meaningful for many and it's possible to continue building on top of this. |
This pull request adds a setting to the admin page where users can configure whether menu items should be hidden when their label (with a fallback to the page title) is not translated into the current language.
The default behaviour in QTranslate was to show such items. The default behaviour in QTranslate-X and QTranslate-XT has been to hide such items. Because of this, the default setting is to hide them.
The issue has been discussed in more detail in #256.
It's my first time contributing to QTranslate-XT, so I'm not sure if I did everything right. In particular, I'm not sure whether/how I should recreate the qtranslate.pot file.