Skip to content
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 stop add language in user-defined link in Menu ? #80

Closed
brucenan opened this Issue Mar 17, 2015 · 7 comments

Comments

Projects
None yet
2 participants
@brucenan
Copy link

brucenan commented Mar 17, 2015

In the menu config page, I add a link part, It's good for qTranslate to set the different language name for the link, but I want to use a same link without adding a /en or other language. Is it possible to stop this function. Thanks.

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Mar 17, 2015

Have you tried to read FAQ "How can I prevent URL of a custom menu item from being converted"?

@brucenan

This comment has been minimized.

Copy link
Author

brucenan commented Mar 17, 2015

Yes, but I've change the wordpress to solid link for friendly seo. How can I add lang=no attributes?

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Mar 17, 2015

Add query argument "setlang=no" to the URL of menu item. For example, if your URL is "http://example.com" change it to "http://example.com?setlang=no"

@brucenan

This comment has been minimized.

Copy link
Author

brucenan commented Mar 18, 2015

I've tried it. But it seems not work.

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Mar 18, 2015

Indeed, this feature got broken after auto-translation of meta data was enabled. Please, test the latest version from GitHub, which you can download with 'Download ZIP' button on GitHub page or press here for the sake of convenience. I hope you do not use "QTranslate Slug", do you?

@brucenan

This comment has been minimized.

Copy link
Author

brucenan commented Mar 18, 2015

Yes. The latest code is working. Thanks a lot!
Another question, can I set the totally different links for different languages in menu? Is it can be user-defined?

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Mar 18, 2015

No, such a feature is not implemented, but nothing prevents you from setting up a custom menu all together with any links you wish. I am closing this issue for now, we can still write to it and we can re-open if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.