• abdessamad idrissi

    (@abdessamad-idrissi)


    Thanks for this nice plugin.

    I have noticed that loco translate sync button doesn’t take in charge strings found in HTML files. My approach so far is to generate a pot file using poedit (as it searches inside HTML files) and then use that pot inside of Loco.

    It would be great that loco translate goes inside those HTML files and syncs the code there.

    Why do I use HTML? Because I this makes it easy for me to not end up with spaghetti code (HTML mixed with PHP and JS!) and also helps programming inside my code editor (Sublime text) as it cleans the code (HTML beautifier etc..).

    https://wordpress.org/plugins/loco-translate/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Thanks for the feature request. Also on the todo list is searching for strings inside Javascript and other template formats, such as Twig.

    This may get implemented, but would have to be optional and there is no timeline for this change.

    Thread Starter abdessamad idrissi

    (@abdessamad-idrissi)

    For javascript there’s already wp_localize_script but allowing search inside HTML has more priority I guess 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sync should also search inside HTML files’ is closed to new replies.