Loco Translate can’t find strings in functions or classes
-
Hey
I’ve been using gettext variables in my plugins but for some reason they are not visible in Loco Translates string gettext scan. I also created a dummy plugin to test this out and the result was that gettext variables inside a class wouldn’t be visible, and gettext variables in functions, would work every now and then.
I can see the issue with these strings:
<?php _e( 'First Name', 'somesite_registration' ) ?>
__( '<strong>ERROR</strong>: You must include your phone number.', 'somesite_registration' )
These are not the only strings having this issue. I’ve been reading on the WordPress I18n and used their functions, but I’m still stuck with the issue.
One of my plugins I translated fully manually and imported that data to Loco Translate. Pressing “Sync” would then remove all the strings except for the ones in plugin description, author etc.
WP_Debug is on, and not giving me any errors. Any ideas what could be causing this issue?
- The topic ‘Loco Translate can’t find strings in functions or classes’ is closed to new replies.