• Resolved rosvaldas

    (@rosvaldas)


    Hi,

    would it be possible to change/edit some strings of plugin where the text comes up as “Wallet”? I need to change this to something else and would be glad to do so.

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • add_filter(‘gettext’, ‘translate_text’);
    add_filter(‘ngettext’, ‘translate_text’);

    function translate_text($translated) {
    // $translated = str_ireplace(‘ target text ‘, ‘what you want’, $translated);
    $translated = str_ireplace(‘Wallet credit through purchase #’, ‘Money added to wallet #’, $translated);

    $translated = str_ireplace(‘Leave a Reply ‘, ‘Leave a comment’, $translated);

    return $translated;
    }

    add this code in function.php of your theme

    • This reply was modified 4 years, 4 months ago by roghithsam.
    Thread Starter rosvaldas

    (@rosvaldas)

    Does this work for anything on the site, or what?

    Thread Starter rosvaldas

    (@rosvaldas)

    It actually breakes the site. ??

    Plugin Author Subrata Mal

    (@subratamal)

    @rosvaldas Yes you can change any string in our plugin using Loco translator plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing some strings such as “wallet”’ is closed to new replies.