Archived

This topic is now archived and is closed to further replies.

  • 0

Translate "Load More Posts" Postpin section button


Question

Posted · Report post

Hello everyone,

I would like to translate the "Load More Posts" Postpin section button into French with the following words: "Afficher plus d'articles".

I identify the PHP file to edit (...wp-content/plugins/pagelines-sections/pagelines-postpins/section.php) and the two lines I have to modify:

  • jQuery('.fetchpins a').removeClass('loading').text('<?php _e('Load More Posts', 'pagelines');?>');
  • $next_url = sprintf('<div class="%s fetchlink" %s><a class="btn" href="%s">%s</a></div>', $class, $display, $u, __('Load More Posts', 'pagelines'));

The problem is there is an apostrophe in "Afficher plus d'articles" and of course I need to convert this apostrophe into text. Then I try to insert a backslash just before the apostrophe like this: "Afficher plus d'articles". That way the button displays the French words I want but the Postpin section doesn't work anymore.

For sure I miss something. Any help please?

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Thank you for your answer.

How can I close this topic now?

Share this post


Link to post
Share on other sites

Posted · Report post

You don't need to close this topic. We can just let it be. :)

Share this post


Link to post
Share on other sites