I can't translate Store Hours & Vacation, why?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace I can't translate Store Hours & Vacation, why?

Viewing 4 reply threads
  • Author
    Posts
    • #120500
      HERMES ALVES SOUZA
      Participant

      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.
    • #120661

      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 translate

      Thanks.

    • #120988
      HERMES ALVES SOUZA
      Participant

      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.
    • #121434

      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.

    • #121823
      HERMES ALVES SOUZA
      Participant

      Thanks, works 😉

Viewing 4 reply threads
  • You must be logged in to reply to this topic.