Loco Translate can’t find strings in functions
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loco Translate can’t find strings in functions’ is closed to new replies.