Frequently in the templates, I see code like this:
<?php _e("by")?>
I understand what it's doing, but what exactly is _e? I didn't see that in the Template Tags, Conditional Tags or one other page about tags that I viewed in the Codex, and searching for "_e" doesn't result in anything. Where is this set? Thanks!
Used for language translatons, entiende?
_e('Category') = Categoria
leliathomas
Member
Posted 6 years ago #
Not a huge explanation, but from the Writing a Plugin page from the Codex:
_e($message, $domain)
Searches the localization module for the translation of $message, and passes the translation to the PHP echo statement. If no translation is found for $message, it just echoes $message.
__() is used when the message is passed as an argument to another function; _e() is used to write the message directly to the page.
Lelia Katherine Thomas
http://www.leliathomas.com
Thanks, all! Much appreciated!