• Resolved e-commerce-concept

    (@e-commerce-concept)


    Hello,

    I’m using Virtue theme child and i want to translate in French with POEDIT.

    The file is ok and i put it in /virtue/lang and in /virtue-child/land and replace the default.mo and .po.

    The “Latest Posts” is always inline and not “Derniers articles”.

    Thanks for your help
    Patrick

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think you want to save new files as fr_FR.mo and fr_FR.po

    Then load wordpress with the language set to french.

    define (‘WPLANG’, ‘fr_FR’);

    The header “Latest Posts” is a page title defined in lib/utils.php and it has a text domain with it.
    Hope that helps,
    Kadence Themes

    Thread Starter e-commerce-concept

    (@e-commerce-concept)

    Hello, thanks for your quick response,

    The “Lastest Posts” is in your language theme :

    function kadence_title() {
      if (is_home()) {
        if (get_option('page_for_posts', true)) {
          echo get_the_title(get_option('page_for_posts', true));
        } else {
          _e('Latest Posts', 'virtue');
        }

    and when i translate this, i don’t see the good words on the home page.
    I want to change “READ MORE” and is not working to in default.po & .mo.

    Best regards
    Patrick

    Hey Patrick,
    I’m sorry this hasn’t been working out for you. Because I’ve had many people translate the theme without issue I can only guess it’s something with the set up of the .mo and .po files. Do you have experience translating themes? It’s hard for me to know what the problem is not seeing how you are doing it. Have you looked at tutorials on the correct way to use .po and .mo files?

    Wish I had more answers for you,

    Kadence themes

    Thread Starter e-commerce-concept

    (@e-commerce-concept)

    Hello,

    I understand and i work to translate your theme.
    I think . . if i edit the default.po all is good . . . ERROR

    I create a fr_FR.po and mo in your virtue/lang directory and it is OK,

    Thank you for you help.

    Patrick

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate "Latest Posts" in home page’ is closed to new replies.