This topic has 26 replies, 4 voices, and was last updated 8 years, 2 months ago ago by Stan Russell
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 !‘
I add one more translation:
<label for=”billing_postcode” class=””>Postcode / ZIP <abbr class=”required” title=”requis”>*</abbr></label>
=> Code postal
Thank you.
Hello,
Please read how to translate theme:
https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate
Best regards,
Jack Richardson.
Hello,
Yes I did exactly this process, it worked for all the words except these words…
What can I do?
Than you.
Hello,
I’ve updated translation files.
Please clear browser cache and check your site now.
Regards,
Eva Kemp.
Hello,
Thanks a lot, could you explain me what exactly did you?
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.
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.
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.
Hello,
1. It doesn’t work, I still have “No products were found”.
2. Ok.
Thank you.
(I have checked deeply and your modifications have deleted many others elements which has been translated)
Hello,
Please show a page where you see the text non-translated.
Regards,
Eva Kemp.
Hello,
Hello,
Please clear browser cache and check the translation now.
Regards,
Eva Kemp.
Hello,
Thank you, it’s ok. Could you explain me the procedure in order to do it by myself in the future?
Thank you.
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.
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.
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.
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.
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.
The issue related to '‘Translation issues’' has been successfully resolved, and the topic is now closed for further responses