Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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
    Michael

    #1088892

    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

    #1089065

    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

    #1089103

    Hi,

    You can install String Translation extension of WPML and search for the text in String Translation settings and translate it :)

    Best regards,
    Yigit

    #1089113

    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

    #1089156

    Hi,

    Glad we could help Michael! Thanks, you too enjoy your day! :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Pass language parameter in search form (translate labels)’ is closed to new replies.