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

Question: Possible to use get_page_link($id) or get_permalink($id) to get a link for a target language? #118

Closed
herrvigg opened this issue Jun 21, 2018 · 2 comments
Labels
legacy issue Legacy issue imported from original repo need info The submitter must provide more info

Comments

@herrvigg
Copy link
Collaborator

herrvigg commented Jun 21, 2018

Issue by alancwoo
Monday Apr 06, 2015 at 12:30 GMT
Originally opened as qTranslate-Team/qtranslate-x#118


As the title explains, I was wondering if there's a way to use get_page_link($id) or get_permalink($id) to get a link in a target language?

For example, on a German page, to have a link to another page that is in English.

(The use case here is a splash page with a choice of languages that takes you to another page in either German or English)

@herrvigg herrvigg added enhancement New feature or request legacy issue Legacy issue imported from original repo labels Jun 21, 2018
@herrvigg herrvigg changed the title Feature Suggestion for v3.3: previous language Question: Possible to use get_page_link($id) or get_permalink($id) to get a link for a target language? Jun 23, 2018
@herrvigg herrvigg reopened this Jun 23, 2018
@herrvigg herrvigg added need info The submitter must provide more info and removed enhancement New feature or request labels Jun 23, 2018
@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Tuesday Apr 07, 2015 at 16:36 GMT


You can pass URL through qtranxf_get_url_for_language($url,$lang,true); to get it in language needed. Is this what you meant?

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Friday Apr 10, 2015 at 17:44 GMT


I assume it is closed, we can still write to closed issue, and may reopen it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy issue Legacy issue imported from original repo need info The submitter must provide more info
Projects
None yet
Development

No branches or pull requests

1 participant