Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1291376
    Simon
    Participant

    Hi X team,

    I have a translation problem. I can’t translate “regular price” by “prix”. Attached is the screenshot.

    An idea to reach my goal?
    Simon

    #1291686
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1299145
    Simon
    Participant

    Hi,

    I can’t i work on an localhost.

    I’ll do it differently.

    Thanks

    #1299157
    Lely
    Moderator

    Hi There,

    Ok then. You might want to try adding the following code on your child theme functions.php file:

    add_filter('gettext', 'translate_text' );
    function translate_text($translated) { 
      $translated = str_ireplace('Regular Price', 'Regular Price TRANSLATION', $translated);
    
      return $translated; 
    }

    Hope this helps.

    #1300314
    Simon
    Participant

    Thanks Lely,

    Simon

    #1300350
    Lely
    Moderator

    You’re welcome Simon!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1291376 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>