Tagged: x
-
AuthorPosts
-
August 22, 2016 at 2:09 am #1141067
maghrabi42ParticipantHello,
I need to translate the (return to shop) and (Your cart is currently empty)
my website is najdstore.com
thank youAugust 22, 2016 at 2:09 am #1141068
maghrabi42Participantattachment
August 22, 2016 at 2:26 am #1141081
ChristopherModeratorHi there,
Please follow this link https://community.theme.co/kb/translation and translate strings in x.pot file.
Hope it helps.
August 22, 2016 at 4:22 am #1141172
maghrabi42ParticipantHello,
i translate the pot file and uploaded by fz but nothing change on website
thank youAugust 22, 2016 at 4:41 am #1141206
ChristopherModeratorHi there,
Please provide us with FTP credentials.
Thanks.
August 22, 2016 at 5:03 am #1141232
maghrabi42ParticipantThis reply has been marked as private.August 22, 2016 at 5:16 am #1141249
ChristopherModeratorHi there,
I wasn’t able to connect to FTP due to following error :
Error: Could not connect to serverPlease check.
Thanks.
August 30, 2016 at 7:20 am #1153225
SimonParticipantThe same thing for me.
Your cart is currently empty. and return to shop can’t be translate with Poedit.
I try to test :
add_filter('gettext', 'x_translate_text' , 20, 3); function x_translate_text ( $translated_text, $text, $domain ) { $translation = array ( 'Your cart is currently empty.' => 'Votre panier est vide', 'Return To Shop' => 'Retourner à la boutique' ); if( isset( $translation[$text] ) ) { return $translation[$text]; } return $translated_text; }It doesn’t work.
An idea ?August 30, 2016 at 8:50 am #1153357
ThaiModeratorHi There,
Please provide your admin account also.
Thanks.
August 30, 2016 at 9:19 am #1153398
SimonParticipantThis reply has been marked as private.August 30, 2016 at 10:43 am #1153547
ThaiModeratorHi There,
Please try with this code instead:
add_filter('gettext', 'x_translate_text' , 20, 3); function x_translate_text ( $translated_text, $text, $domain ) { $translation = array ( 'Your cart is currently empty.' => 'Votre panier est vide', 'Return To Shop' => 'Retourner à la boutique' ); if( isset( $translation[$text] ) ) { return $translation[$text]; } return $translated_text; }Hope it helps 🙂
August 31, 2016 at 2:15 am #1154671
SimonParticipantHi Thai,
I tried this code found on a topic . But it does not work.
Another idea ?
Thanks
SimonAugust 31, 2016 at 3:02 am #1154719
ChristopherModeratorHi there,
Upon checking your site, string was translated successfully. Please see the attachment.
I couldn’t find ‘Return to shop’ link, please provide us with the URL of page in question.
Hope that helps.
August 31, 2016 at 7:41 am #1155029
SimonParticipantYes but not on the cart page.
August 31, 2016 at 2:59 pm #1155620
RadModeratorHi there,
I checked your site and that code isn’t added to your child theme’s functions.php
Please add it and make sure to clear caches before testing.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1141067 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
