Question: Using PHP to Echo Headers Rather Than Plain Text

Does anyone know what benefits echoing a header with PHP has to just using plain text?

Example

Some WordPress themes (including Sandbox) use something similar to the following in the sidebar.

<h3><?php _e('Subscribe:'); ?></h3>

What makes this better than:

<h3>Subscribe:</h3>

Any takers?

2 Comments

  1. It’s for internationalising the theme. When you use this syntax instead of plain text, you can easily make a translation using POEDIT.

    Please, when you create a superb theme do code it that way, so we can translate it soon to french…

  2. Pierre K. - Thank you for the explanation. I will try to keep this in mind and check my themes in the next updates.

    BTW, Stephane has translated the latest versions of IAMWW w2 DnD and Moo-Point to French.