Removing translation textdomain

I am working on a plugin for myself, so, it’s totally useless to load textdomain. But most of codes I copied from others are using the __(' ','')
I copied the codes from several plugins. So, even if I load textdomain, it’s going to be useless as well,posibly slow down the performence.
My question is– What’s going to happen when WP read those __(' ','') without a textdomain loaded ?
Will it become a problem?

Related posts

Leave a Reply

2 comments

  1. I’ve actually been in the exact situation you’re in before, all you need to do is drop the __()s and the _e()s and replace them with their first parameter, you can pretty easily do this by regex if there are a lot, and it’s quick to do by hand if there aren’t…I’m not sure what the performance penalty on them is, especially if they’re empty, but I’m a bit of a performance hound, so it wasn’t something I was going to risk.

  2. If you are not localizing your theme/plugin, then these functions are quite useless. Their main purpose is to search through the localization module for translated text.

    To answer your question, it will not become a problem I don’t believe, but is pretty useless if you are not translating your theme or plugin into a different language – but somebody else might want to if they get their hands on your plugin/theme, so it is good to include if your product is going out to the public.

    See here for more info on these:

    http://codex.wordpress.org/Translating_WordPress#Localization_Technology