685 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
UBLThemes
says

Just thought I would chime in :D

I have used html within our translation a few times,

Our latest we accidently used:

__("<li>Please enter an e-mail address.</li>","textdomain");

We had this there for about a month until a buyer pointed it out, then we changed it, this was a mistake but it still worked.

The only difference I have is that I have used double quotes which may or may not be making it work.

* EDIT *

Envato please sort our the pre tags, it drives me made that you can not use them correctly within comments and forums :(

I have had to show code with the html name instead of the < etc etc. :(

A simple algorithm sorts this out

43 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Has sold $10,000+ on Envato Market
  • Attended one of our Meetups around the world
+1 more
haintheme
says

I got the same problem with theme check plugin.

But I found that it’s not my theme, it’s node_module folder of grunt. When I removed it, theme check worked well. I guess that it’s related to translation string. Hope my solution can help other people.

378 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh
says

I got the same problem with theme check plugin. But I found that it’s not my theme, it’s node_module folder of grunt. When I removed it, theme check worked well. I guess that it’s related to translation string. Hope my solution can help other people.

In some ways, it makes the most sense to use Theme Check to test a theme that’s been prepared for release, rather than while it’s still in development. (e.g. the `build` rather than the `src`.)

So you wouldn’t have `node_modules` in `build` anyway.

43 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Has sold $10,000+ on Envato Market
  • Attended one of our Meetups around the world
+1 more
haintheme
says


I got the same problem with theme check plugin. But I found that it’s not my theme, it’s node_module folder of grunt. When I removed it, theme check worked well. I guess that it’s related to translation string. Hope my solution can help other people.

In some ways, it makes the most sense to use Theme Check to test a theme that’s been prepared for release, rather than while it’s still in development. (e.g. the `build` rather than the `src`.)

So you wouldn’t have `node_modules` in `build` anyway.
Yes, you’re right. I will create 2 branch, 1 for development, another for production. :)
by
by
by
by
by
by