Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Translate the term "Wallet" for Terrawallet integration in withdraw option
- This topic has 9 replies, 2 voices, and was last updated 5 years ago by CommunityCorals.
- AuthorPosts
- October 23, 2019 at 6:06 pm #88625CommunityCoralsParticipant
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 - November 5, 2019 at 4:18 pm #90765WCFM ForumMember
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
- November 5, 2019 at 10:11 pm #90903CommunityCoralsParticipant
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 - November 5, 2019 at 10:13 pm #90904CommunityCoralsParticipant
Attached the screenshot with “wallet” term.
Attachments:
You must be logged in to view attached files. - November 11, 2019 at 5:16 pm #91805WCFM ForumMember
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
- November 14, 2019 at 2:20 pm #92257CommunityCoralsParticipant
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. - November 22, 2019 at 11:32 am #93398WCFM ForumMember
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
- November 23, 2019 at 3:17 pm #93612CommunityCoralsParticipant
Still Wallet 🙁
- November 26, 2019 at 2:54 pm #94030WCFM ForumMember
I am debugging this in your staging site.
- December 2, 2019 at 1:35 pm #95474CommunityCoralsParticipant
Great, did you find the reason?
- AuthorPosts
- The topic ‘Translate the term "Wallet" for Terrawallet integration in withdraw option’ is closed to new replies.