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

WYSIWYG can't translate internal links #38

Open
steva82 opened this issue Aug 16, 2023 · 4 comments
Open

WYSIWYG can't translate internal links #38

steva82 opened this issue Aug 16, 2023 · 4 comments
Assignees

Comments

@steva82
Copy link

steva82 commented Aug 16, 2023

  • Winter CMS Build: 1.2.2
  • Pages Plugin Version: 2.1.2
  • PHP Version: 8.1.21
  • Translate 2.1.3

Description:

I have different translated Pages.
Sometimes, I need to add a link between two of these Pages in the content with the editor by the "Link" icon.
When I am in the main language, everything works.
When I switch to the translated version of the content and click the "Link" icon, the search field is able to find only the page in the original language, not the right translated version.

Steps To Reproduce:

  1. select the main language (IT)
  2. add a second language (EN)
  3. create a Page in the main language ( page-italian)
  4. translated this page (page-english)
  5. create in the same way another page (page-italian-bis, page-english-bis)
  6. re-open "page-italian", select a word and add a link to "page-italian-bis"
  7. switch to the english version and try to add a link to "page-english-bis"

Thanks in advanced.

@mjauvin
Copy link
Member

mjauvin commented Aug 16, 2023

It would help to know what you see and what you actually expect to happen.

@steva82
Copy link
Author

steva82 commented Aug 17, 2023

Hi @mjauvin ,
thank you for your first comment.

When I am in the translated content (in english) and I want to insert a link to a Page, I would like to find the translated version of that link, not only the original one (in italian).


I hope these screenshots could help:

Here, I am writing in italian and I am looking for the link in the original language...
Screenshot 2023-08-17 at 09 54 11

...and the search field is able to find it, perfect!
Screenshot 2023-08-17 at 09 54 38

Then, after having switched to english (my second language), the search field finds again only italian version of the Pages...
Screenshot 2023-08-17 at 09 55 43

... and the link is in italian, instead of in english.
Screenshot 2023-08-17 at 09 56 04

So, I need to edit the content in the "Code" visualisation and edit the link manually (in order to have "/en/page-english-bis").
I would expect the link to be in English.

Thank you again.

@mjauvin
Copy link
Member

mjauvin commented Aug 17, 2023

Oh nice, much clearer now!

@LukeTowers
Copy link
Member

@mjauvin anything further we can do on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants