-
AuthorPosts
-
April 5, 2019 at 12:17 pm #1087449
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
MichaelApril 9, 2019 at 9:42 pm #1088892Hi 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,
YigitApril 10, 2019 at 10:21 am #1089065Hi 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,
MichaelApril 10, 2019 at 12:05 pm #1089103Hi,
You can install String Translation extension of WPML and search for the text in String Translation settings and translate it :)
Best regards,
YigitApril 10, 2019 at 12:29 pm #1089113Hi 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
MichaelApril 10, 2019 at 3:31 pm #1089156 -
AuthorPosts
- The topic ‘Pass language parameter in search form (translate labels)’ is closed to new replies.
