Translate the term "Wallet" for Terrawallet integration in withdraw option

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 Translate the term "Wallet" for Terrawallet integration in withdraw option

Viewing 9 reply threads
  • Author
    Posts
    • #88625
      CommunityCorals
      Participant

      Hello,

      we had this request some month ago. The withdraw option “wallet” can not be translated. It is possible to translate it in “wc-frontend-manager-de_DE.po” but it has no effect. Also the update to latest terra wallet version didn´t help. Is it possible that it is hard coded some where?

      Would be great if you could tell me how to translate this.

      Thanks
      Dominique

    • #90765
      WCFM Forum
      Member

      HI,

      Well, this string is not from WCFM so you can not translate this from WCFM translation file.

      Are you able to translate “wallet” word in other areas?

      You may use such snippet to add translation dynamically –

      function wcfm_custom_0511_translate_text( $translated ) {
      	$translated = str_ireplace( 'wallet', 'wallet', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_0511_translate_text');
      add_filter('ngettext', 'wcfm_custom_0511_translate_text');

      Thank You

    • #90903
      CommunityCorals
      Participant

      Hi, thanks. I am talking about the wallet term in vendor payment settings. This is not a WCFM string?

      Anyways – Where do I have to enter the translated term in the code please?

      Thanks
      Dominique

    • #90904
      CommunityCorals
      Participant

      Attached the screenshot with “wallet” term.

      Attachments:
      You must be logged in to view attached files.
    • #91805
      WCFM Forum
      Member

      HI,

      That term comes from wallet plugin, not from WCFM.

      Anyways – Where do I have to enter the translated term in the code please?

      – Add your translated word here in the code – https://ibb.co/Mk0pyWd

      Thank You

    • #92257
      CommunityCorals
      Participant

      Hello,

      unfortunately it doesn´t do the job. Still the payment options say “wallet”. See Screenshot. Below the snipet I use.

      function wcfm_custom_0511_translate_text( $translated ) {
      $translated = str_ireplace( ‘wallet’, ‘Guthaben für Einkäufe’, $translated );
      return $translated;
      }
      add_filter(‘gettext’, ‘wcfm_custom_0511_translate_text’);
      add_filter(‘ngettext’, ‘wcfm_custom_0511_translate_text’);

      Attachments:
      You must be logged in to view attached files.
    • #93398
      WCFM Forum
      Member

      HI,

      Add this code –

      function wcfm_custom_0511_translate_text( $translated ) {
      $translated = str_ireplace( 'Wallet', 'Guthaben für Einkäufe', $translated );
      return $translated;
      }
      add_filter('gettext', 'wcfm_custom_0511_translate_text');
      add_filter('ngettext', 'wcfm_custom_0511_translate_text');

      Thank You

    • #93612
      CommunityCorals
      Participant

      Still Wallet 🙁

    • #94030
      WCFM Forum
      Member

      I am debugging this in your staging site.

    • #95474
      CommunityCorals
      Participant

      Great, did you find the reason?

Viewing 9 reply threads
  • The topic ‘Translate the term "Wallet" for Terrawallet integration in withdraw option’ is closed to new replies.