• Resolved partha.rkl

    (@partharkl)


    Loco Translate can’t find strings in functions.

    Here is the sample code, but not able to translate Client, Skills, Duration

    
    function client_details(){
    $output = '';
    $output .= '<ul class="project-details-list">';		
    $output .= '<li><strong>'.__("Client: ", "apress").'</strong>'.__("Test ", "apress").' </li>';		
    $output .= '<li><strong>'.__("Skills: ", "apress").'</strong> '.__("Test ", "apress").'</li>';			
    $output .= '<li><strong>'.__("Duration: ", "apress").'</strong> '.__("Test ", "apress").'</li>';			
    $output .= '</ul>';		
    echo $output;
    }
    

    Calling as client_details(); but not translating.

    Let me know what I am doing wrong.

    Thanks

    • This topic was modified 7 years, 3 months ago by partha.rkl.
Viewing 1 replies (of 1 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Nothing wrong with the code. Loco Translate will find them when you extract a POT file, or sync an existing one. Have you done this?

Viewing 1 replies (of 1 total)
  • The topic ‘Loco Translate can’t find strings in functions’ is closed to new replies.