• Resolved akinator

    (@akinator)


    Hello it misses the string

    A link to set a new password will be sent to your email address.

    My solution:

    
    add_filter( 'gettext', 'bbloomer_translate_woocommerce_strings', 999, 3 );
      
    function bbloomer_translate_woocommerce_strings( $translated, $untranslated, $domain ) {
     
       if ( ! is_admin() && 'woocommerce' === $domain ) {
     
          switch ( $translated ) {
     
             case 'A link to set a new password will be sent to your email address.':
     
                $translated = 'Your translate :)';
                break;
           
          }
     
       }   
      
       return $translated;
     
    }
    
    • This topic was modified 2 years, 4 months ago by akinator.
    • This topic was modified 2 years, 4 months ago by akinator.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Bug Fix] Translation doesn’t translate everything’ is closed to new replies.