505 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
Gareth_Gillman says

I am having an issue with the WP theme check plugin, it’s saying I should be adding “text domain” to all my inputs (which I know) but I already have them e.g.

Line 43: <?php __( 'Save All Changes' ); ?>

According to the WP codex, that is the code I should be using, so why is the theme check plugin still saying it’s not right?

Any help is appreciated as I would like to remove the message (currently got 65 of them, although I am using the text domain…arghhh).

3069 posts
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
  • Romania
wickedpixel says

Your example does not contain the domain, which is the second parameter for the __ function

3192 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says
<?php __( 'Save All Changes', 'your_text_domain' ); ?>
505 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
Gareth_Gillman says

<?php __( 'Save All Changes', 'your_text_domain' ); ?>

Ha oops, I blame it on tired eyes :D

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says


<?php __( 'Save All Changes', 'your_text_domain' ); ?>
Ha oops, I blame it on tired eyes :D

Oh I’ve been there plenty of times, eyes so tired you can’t see what’s right in front you.

For future reference here’s a list of localization functions you can use: http://codex.wordpress.org/L10n

by
by
by
by
by
by