Home Support Total Change "read more" (english) button into "en savoir plus" (french)

This topic contains 5 replies, has 3 voices, and was last updated by  plimfec 9 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #2432



    How can I change the “read more” (english) button into “en savoir plus” (french) ? I’m talking about all the posts and not about the homepage. Thank you !



    You can do it by translating it to your language using this plugin https://wordpress.org/plugins/loco-translate/

    Please check the documentation of the plugin to find out how it works.



    Thank you 🙂



    @ Myrian:
    Did you try already? And did you succeed?

    Here it’s not working at all. I’m able to edit the files using the plugin mentioned above, but the changes don’t show at the front of the website.

    So, the next step was trying to change the language file (total.pot) using the program Poedit (like I use to do with other themes), but that’s not working either. No changes visible at the front.

    I tried all locations on the server to put the language file. In my child theme, in the original Total folder, even in the WordPress folder: ‘wp-content\languages\themes’ (sometimes this works, like it does for the old Twenty Eleven theme).

    I’m out of ideas, so any help is highly appreciated.

    Btw Poedit gives a syntax error concerning ‘nplurals=INTEGER; plural=EXPRESSION;’ when I try to save the language file after changing it. I replaced it with the right one (I suppose):

    nplurals=2; plural=(n != 1);

    … and the error disappeared.

    But still no luck with the language file.
    Are we sure everything is allright with that file?



    @plimfec The loco translate plugins should work. or you can make a copy of content-summary.php file in your child theme and then change the text in the code file.

    You will have to create a folder template_parts and then content-summary.php file. Copy the content of content-summary.php from parent theme to child theme and then edit the text.



    I’m aware of the option to change the ‘read more’ text through the php file, but I prefer to change the language file instead. And I’d love to use the program Poedit for it, because this would prevent the necessity of adding another plugin to the WordPress backoffice.

    Also: I’d like to translate all kind of English words and phrases throughout the website, not just that particular button text. Changing all of these through the code files, would result in a too big child theme.

    But thank you for the suggestion, for translating just one button text, it would certainly do.

    I think i’ll give the Loco translate plugin another try. I must have overlooked something I suppose..

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.