Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1399105

    Hello,

    I can’t find the translation of the “Read more link” in the post slider.
    I use WPML and have tried everything. It is also not found in the String Translator.

    My website is in German and I need English

    • This topic was modified 1 year, 7 months ago by markmade.
    #1399229

    Hey Markus,

    The page you linked to is password protected, please provide that password as well.

    Best regards,
    Rikard

    #1399244

    PW

    #1399245

    What do you mean by: can’t find in the post slider.
    the place in postslider.php is set as : __( 'Read more', 'avia_framework' )
    and this indicates that the string is translatable via lang files.
    All translations are in the lang files (po/mo) in enfold/lang/ folder – on German there are two versions one with formal “Sie” the other informal “Du”

    I know the WPML is setting the lang attribute on html the correct way. So – if you change the language there is on html the lang mentioned:
    lang=”en-US” or lang=”en-GB” – lang=”de-DE” etc.
    if these are set – Enfold will use the corresponding lang file from lang folder.

    #1399247

    I do not understand that. I installed wpml correctly.
    I can translate everything except the Read more link.
    I have sent the access data. Please look at this directly. Thanks

    #1399253

    i’m participant as you – so i do not see private content messages.
    But you can inspect your page in developer tools of your browser – if on html tag the languages are present for each of your translated pages

    then the enfold lang files will be taken to this corresponding setting. I work with WPML a long time – and i do know that they will place it in that manner.
    And you are shure that this read more link comes from enfold – and not from a third party plugin?

    So sorry – then you had to wait til a mod looks into your page.

    #1399255

    Thanks Guenni007, yes I use Enfold’s built-in post slider.

    Rikard please look at the page and the problem

    #1399329

    Hi,
    Thanks for the login to your site, I found this script in your child theme functions.php that was changing the post slider read more text:

    function custom_more_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".more-link").text("Mehr erfahren!");
      });
      })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_more_script');

    This was also changing the English version of the text, I adjusted to this to account for each language:

    
    function custom_more_script(){
      ?>
      <script>
    (function($){
      $('html[lang="de-DE"] .more-link').text('Mehr erfahren!');
      $('html[lang="en-US"] .more-link').text('Learn more!');
      }(jQuery));
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_more_script');

    Please clear your browser cache and check.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.