-
Notifications
You must be signed in to change notification settings - Fork 110
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
Taxonomy term title doesn't get saved properly when the translated title is the same in multiple languages #1215
Comments
What is the "title" of a taxonomy term? Do you mean the |
Ok, it happens when the translation is the same for all languages. |
Your fix does seem to do the trick, thank you for your help.
I also figured this out but the problem would have been the customer. Some of the sites I worked on have up to 4-5 different languages so I'm pretty positive that some customers wouldn't like this solution as it might not seem intuitive at the first glance for them. I'll mark this issue as closed. |
This worked already fine for post titles, so the bug is specific to terms. I re-open the ticket. |
For clarification, the fix proposed in #1230 appears to work for the user with the taxonomy edit. But I will not merge it as it creates some regression with the data storage for all ML content, for example post title. When the content is the same for all languages, everything should be fused without ML tags. This issue is specific to taxonomy and there is surely a bug in qtx_admin_taxonomy. I have observed there's something wrong here: qtranslate-xt/admin/qtx_admin_taxonomy.php Line 145 in 98f8a8e
If the term is not multilingual, the sanitization retrieves some older ML translations and assign them to |
Yes, this condition in |
Looks good now! Updated fix merged in master. |
Hi,
I've searched all over the internet and didn't find any thread related to this specific issue.
So lets say I have French and German as languages and I have a taxonomy term with the title "Test" in french and "TestDE" in german.
Whenever I try to change the german title back to "Test" it doesn't get saved properly and it always keeps the old title "TestDE".
This issue only occurs when I pick exactly the same title as in the other language. For example if I try to change it to "TestDE2" it works.
One workaround is to use [:fr]Test[:de]Test[:] but it isn't always easy for the customer to use.
I'm also using the latest version of qtranslate-xt.
I hope anyone could help me here, many thanks in advance.
The text was updated successfully, but these errors were encountered: