Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › I can't translate Store Hours & Vacation, why?
Tagged: Store Hours, Translate, Vacation
- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by HERMES ALVES SOUZA.
Viewing 4 reply threads
- AuthorPosts
- April 19, 2020 at 5:49 am #120500HERMES ALVES SOUZAParticipant
Even translating the po, mo file, it remains in English. I’m trying to put it in Portuguese but it doesn’t work.
Attachments:
You must be logged in to view attached files. - April 19, 2020 at 8:45 pm #120661Sarmistha ChakrabortyMember
Hello,
To translate “Store Hours & Vacation” please use “Loco Translate” plugin https://localise.biz/wordpress/plugin/beginners
Loco Translate -> Plugins -> WCFM – WooCommerce Frontend Manager -> select string and translateThanks.
- April 20, 2020 at 6:26 pm #120988HERMES ALVES SOUZAParticipant
Before asking here on the forum I did it, but I did it again to test.
See the print(attached) that proves what I did, and see that it didn’t work.
Attachments:
You must be logged in to view attached files. - April 21, 2020 at 8:43 pm #121434Sarmistha ChakrabortyMember
Hi,
Try this code in your theme’s functions.php
function my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Store Hours & Vacation' : $translated_text = __( 'Store Hours & Vacationzzz!', 'woocommerce' ); //replace your text break; } return $translated_text; } add_filter( 'gettext', 'my_text_strings', 20, 3 );
Thanks.
- April 22, 2020 at 6:19 pm #121823HERMES ALVES SOUZAParticipant
Thanks, works 😉
- AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.