Hi there
I am using the latest version of Enfold and WPML.
The search form labels are already altered from English to German, but if I switch to French now it is still German, for example this section in the file search.php:
<div class='page-heading-container clearfix'>
<section class="search_form_field">
<?php
echo "<h4>".__('Erneut versuchen','avia_framework')."</h4>";
echo "<p>".__('Wenn Sie mit den folgenden Suchresultaten nicht zufrieden sind, versuchen Sie es bitte mit einem anderen Begriff.','avia_framework')."</p>";
get_search_form();
echo "<span class='author-extra-border'></span>";
?>
</section>
</div>
How do I pass a language parameter there to detect the current language and therefore to display the labels in the correct language?
Any help is very appreciated.
Thanks a lot
Michael
Hi Michael,
Could you please install this plugin – https://wordpress.org/plugins/loco-translate/ and check if those strings are translated? I checked it on my local installation and text is displayed in corresponding language :)
Best regards,
Yigit
Hi Yigit
Thanks a lot.
So it is not possible to solve my issue directly with Enfold & WPML?
I don’t want to install a second translation plugin.
Best,
Michael
Hi,
You can install String Translation extension of WPML and search for the text in String Translation settings and translate it :)
Best regards,
Yigit
Hi Yigit
Oh boy – thank you so much. That was exactly what I was looking for.
Did not know this feature from WPML, that’s great!
You may close this thread now. Enjoy your day.
Best
Michael