Editing selected words work together with WPML

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 WCFM Editing selected words work together with WPML

Viewing 1 reply thread
  • Author
    Posts
    • #113407
      info143
      Participant

      Hello,

      i want to rename the following words inside WCFM PERMANETLY:

      Product to Artwork
      Products to Artworks
      Seller/Vendor to Artist
      Sellers/Vedors to Artists

      How can i achieve this? And is it possible to make this working with WPML so i can easely translate this new words into another language?

      Hope you can help me out.

      Rhanks

      Hanna

    • #115234
      WCFM Forum
      Member

      Hi,

      Please add this code snippet to your site –

      function wcfm_custom_0404_translate_text( $translated ) {
      	$translated = str_ireplace( 'Product', 'Artwork', $translated );
      	$translated = str_ireplace( 'product', 'artwork', $translated );
      	$translated = str_ireplace( 'Vendor', 'Artist', $translated );
      	$translated = str_ireplace( 'vendor', 'artist', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_0404_translate_text');
      add_filter('ngettext', 'wcfm_custom_0404_translate_text');

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

Viewing 1 reply thread
  • You must be logged in to reply to this topic.