Connection of my translations

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!

Viewing 3 reply threads
  • Author
    Posts
    • #84364
      PATselov
      Participant

      The plugins use not very high quality translations. I made my own language files, put them in the wp-content / languages / plugins folder
      But I have a problem with these files.
      To connect translations in a child theme, I try to disconnect your file first, then connect mine and only then connect your file.
      Connection is obtained but disconnection does not work.
      How to fix a function in a child theme?

      
      add_action('init', 'unload_load_textdomain');
      function unload_load_textdomain(){
      	unload_textdomain('wc-multivendor-marketplace');
      	$locale = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
      	
      	load_textdomain( 'wc-multivendor-marketplace', ABSPATH . 'wp-content/languages/plugins/wc-multivendor-marketplace-ru_RU.mo');
      	load_textdomain( 'wc-multivendor-marketplace', ABSPATH . 'wp-content/plugins/wc-multivendor-marketplace/lang/wc-multivendor-marketplace-'.$locale.'.mo');
      }
      
    • #84524
      WCFM Forum
      Keymaster

      HI,

      Please use this translation tool – https://wordpress.org/plugins/loco-translate/

      You do not have to make any such adjustment from child theme.

      Thank You

    • #84549
      PATselov
      Participant

      Loco Translate plugin doesn’t suit me.
      I need a translation that this plugin cannot do. That’s why I do the translation myself.
      I need your file to load after my file.

    • #84971
      WCFM Forum
      Keymaster

      OK, still you do not have to write any such for this at child theme’s functions.php

      Just place you translation file here = WP_LANG_DIR . "/plugins/wc-multivendor-marketplace-$locale.mo"

      wc-multivendor-marketplace-$locale.mo – your translation file, “$locale” will be your lang code.

      Thank You

Viewing 3 reply threads
  • The topic ‘Connection of my translations’ is closed to new replies.