689 posts
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
  • Collector Level 4
+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

55 posts
  • 1 Year of Membership
  • Trendsetter
  • Exclusive Author
  • Author Level 5
+2 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
  • Affiliate Level 1
  • Author Level 2
  • Collector Level 3
  • 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.

55 posts
  • 1 Year of Membership
  • Trendsetter
  • Exclusive Author
  • Author Level 5
+2 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