0

I'm running Theme Check on a theme I've inherited and I've come across lots of recommendations like this one:

RECOMMENDED: Text domain problems in loop.php. The twentyten text domain is being used!

The site has no plans for being translated, so what's the best thing to do in this situation? Replace every reference to twentyten to my theme's text domain, or just remove all references of a text domain at all?

The WordPress documentation is a little confusing :-/

2

You can remove all the translation references if you don't plan on translating it. You can also leave it in place, it shouldn't hurt anything..

If you want to remove it, go through your theme files and find references to __(' Your Text', 'Domain') and just change it to the "Your Text" portion. (Sometimes, you may even see _e('Your Text, 'Domain')).

1

If you don't plan on translating it, you should be able to remove the text domain references without any trouble. They are not required.

2
  • 4
    ...but you will hate yourself if you ever change your mind – s_ha_dum Mar 21 '13 at 14:06
  • True. However, the question does indicate that there are no plans to do so (which generally means no foreseen reason to do so). – jfacemyer Mar 21 '13 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.