I use a front-end form for connecting posts.
I need to use different languages.
What is the best solution to translate "Search for a post" and "Please enter 3 or more characters"?
(image below)
Hi, at this time those two strings are untranslatable because they are hard-coded into the select2.js library. We use this 3rd party library to show a typeahead or predictive search in the select field. We have an internal ticket in place that will enhance this feature to allow translations, but unfortunately I don't have a timeline available for its delivery yet. If this is a major problem for your site, you can disable the typeahead feature by adding the use_select2 attribute to the relationship role shortcode in your Form editor:
[cred-relationship-role role="parent" use_select2="never"]
This will remove the typeahead feature and leave a standard select field for your Users.
Hi Christian,
Thanks for this answer, especially on a Sunday. 🙂
I tried and it doesn't seem to work.
(Image above)
xxx use_select2="never" xxx appears above the parent and doesn't change anything in the child choices presentation.
=====
"If this is a major problem for your site": yes and of course, it is.
Even if lots of people everywhere speak and write in English, it doesn't mean we wish to have English statements appearing here in there in everything we build! (No offense intended.)
=====
Can you copy + paste the entire Relationship Form code here for me to review? Wrap your code in code tags here in the reply to format it neatly. See the "Formatting instructions" link above the reply textarea.
Is it possible to communicate on another channel?
This one is public.
I suppose you know my email address.
Could you contact me by mail for us to continue to work on this solution?
I am unable do that, our support policy states that we must conduct all communication via the forum. I can enable a private reply field where you can share private credentials if you want me to log in and look in wp-admin. Only you and the support team will be able to see those credentials. In addition, all URLs you include in your public replies will be obscured in the public form. Only you and supporters will see the full URLs. You can also change any post types or field names to be something else, if your content is identifiable by those names. Let me know how you would like to proceed.
Thanks for your answer.
FYI, I already exchanged with some of your developers by mail in the past.
I don't agree with 2 things:
- discovering that your developers hard-code the front-end with English sentences, especially knowing that you belong to the same "family" then WPML.
- having to deal with "support tickets" on a public forum.
Please let me know when your developers find some time to solve this hardcoding issue they created in the first place.
On my side, I will try to find enough time in the next days to create a research and dev website where we can work together to find a bypass in case your developers have not solved it in the meantime.
This issue is not solved. So please don't close it before I come back to you.
I'll be glad to attach this ticket to our internal ticket and give you an update when the issue is fixed. However, I we can't guarantee a timeline for delivery of that feature. I am also marking this ticket as pending an update from you. The ticket will remain open for 30 days.
Hi,
Here is what writes your bot this morning:
"This is the support cleanup robot, making sure that nothing is left behind or forgotten. I see that you have an open support thread that’s been waiting for feedback for one week now. "
I can't see how this ticket could be magically solved by itself when the issue remains there until your developers deal with the hard-coding they have written themselves in the solution.
Please, could you teach your bot not to follow your customers when the next thing to do is on your side?
Instead, you could teach it to remind your developers they have a task to do.
Best,
Franck
You said you would try to create a research and dev website where we can work together to find a bypass in the meantime, so I marked this ticket as pending an update from you. I will be glad to update the status and the system will stop prompting you for an update.
Hello, we have released new versions of Types, Views, Forms and WooCommerce Views today. Those are available now for download at https://toolset.com/account/downloads and will be available for automatic update shortly. In the new versions, the strings you mentioned are now available for translation. You can manage these strings in WPML String Translation by searching for:
"Search for a post"
and
"Please enter %NUM% or more characters"
Special thanks to Amir who listened to me and did what was necessary to solve this issue! 🙂