Translation issues - by jeremy - on WordPress WooCommerce support

This topic has 26 replies, 4 voices, and was last updated 8 years, 2 months ago ago by Stan Russell

  • Avatar: tlgv
    jeremy
    Participant
    February 7, 2016 at 16:01

    Hello,

    I want to translate these elements, I tried to modify the english word in php file but it doesn’t work. Thank you.

    – woo.php:
    <?php
    } else {echo ‘<p class=”empty a-center”>’ . __(‘No products in the cart.‘, ETHEME_DOMAIN) . ‘</p>’;}
    => ‘Votre panier est vide.

    global $woocommerce;
    ?>
    <span class=’shop-text’><?php _e(‘Cart‘, ETHEME_DOMAIN) ?> : <span class=”total”><?php echo $woocommerce->cart->get_cart_subtotal(); ?></span></span>
    <?php}
    => ‘Panier :

    – theme-functions.php:
    author’ => ‘<div class=”form-group comment-form-author”>’.
    <label for=”author” class=”control-label”>’.__(‘Name‘, ETHEME_DOMAIN).’ ‘.($req ? $reqT : ”).'</label>’
    => ‘Votre nom

    <p class=”form-row right”>
    <input type=”hidden” name=”et_register” value=”1″>
    <button class=”btn btn-black big text-center submitbtn” type=”submit”><span><?php _e( “Register“, ETHEME_DOMAIN ) ?></span></button>
    </p>
    => ‘Je m’inscris !

    25 Answers
    Avatar: tlgv
    jeremy
    Participant
    February 7, 2016 at 17:28

    I add one more translation:
    <label for=”billing_postcode” class=””>Postcode / ZIP <abbr class=”required” title=”requis”>*</abbr></label>
    => Code postal

    Thank you.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 8, 2016 at 08:48

    Hello,

    Please read how to translate theme:
    https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate

    Best regards,
    Jack Richardson.

    Avatar: tlgv
    jeremy
    Participant
    February 8, 2016 at 19:54

    Hello,

    Yes I did exactly this process, it worked for all the words except these words…

    What can I do?

    Than you.

    Avatar: Eva
    Eva Kemp
    Support staff
    February 9, 2016 at 09:36

    Hello,

    I’ve updated translation files.
    Please clear browser cache and check your site now.

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 9, 2016 at 10:18

    Hello,

    Thanks a lot, could you explain me what exactly did you?

    Avatar: Eva
    Eva Kemp
    Support staff
    February 9, 2016 at 11:33

    Hello,

    I updated .po files as described in the article http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ (the section “Updating a .po (and .mo) file”).

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 9, 2016 at 20:49

    Hello,

    Thank you for this. But I still have 2 translation problems.
    – I can’t translate “No products were found” in .po, it doesn’t work…
    (themes/royal/woocommerce/loop/no-products-found.php)
    – I want to use another translation for the register-link in the top bar. When I change the translation in .po, the translation is changing on register-link and register-button. For the login, I can translate separately in .po the translation of the login-link (in top bar) and the login button. How can I fix that?

    Thank you.

    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2016 at 09:22

    Hello,

    1. Please check the translation now.

    2. Unfortunately there is no such possibility. You can do this only in the file wp-content/themes/royal/framework/theme-functions.php (lines 984, 1340).

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 09:28

    Hello,

    1. It doesn’t work, I still have “No products were found”.

    2. Ok.

    Thank you.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 09:46

    (I have checked deeply and your modifications have deleted many others elements which has been translated)

    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2016 at 10:26

    Hello,

    Please show a page where you see the text non-translated.

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 10:28

    Hello,

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2016 at 10:49

    Hello,

    Please clear browser cache and check the translation now.

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 10:59

    Hello,

    Thank you, it’s ok. Could you explain me the procedure in order to do it by myself in the future?

    Thank you.

    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2016 at 11:51

    Hello,

    You’re welcome.
    I updated .po file again as described here:
    http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 12:09

    Hello,

    I don’t understand, this process doesn’t work for me. Could you write me the process you did step by step? (and indicate me what .po file do you use for each step).

    Many thanks.

    Avatar: Eva
    Eva Kemp
    Support staff
    February 10, 2016 at 14:45

    Hello,

    I edited .po file in the directory wp-content/themes/royal/languages, clicked Catalog menu and selected “Update from POT file”:
    http://storage8.static.itmages.com/i/16/0210/h_1455111714_3059432_4124229e5f.png
    Then the translation was marked as Fuzzy http://storage6.static.itmages.com/i/16/0210/h_1455111866_1071836_b3c7bfa559.png , I disabled it clicking Fuzzy button.

    Regards,
    Eva Kemp.

    Avatar: tlgv
    jeremy
    Participant
    February 10, 2016 at 21:13

    Thank you very much. I have one question about updating. When the theme is updated, the modified .po is deleted? I have to put the .po in the child theme in order to keep safe modifications?

    Thank you.

    Avatar: stan
    Stan Russell
    Participant
    February 11, 2016 at 08:13

    Hello tlgv,

    only ‘default.po’ file will be overwritten on theme update. You do not need to move FR_fr.po file to child theme folder but we recommend you to make its copy as backup.

    Regards,
    Stan Russell.

  • 1 2
    Viewing 20 results - 1 through 20 (of 26 total)

The issue related to '‘Translation issues’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.