[wp-hackers] two-underscore function arguments?
kers at atdt.nu
Wed Dec 2 09:02:50 UTC 2009
On Wed, Dec 2, 2009 at 9:57 AM, Ghodmode <ghodmode at ghodmode.com> wrote:
> What's the syntax of the __() function? Can someone send me a link to
> the documentation that explains it?
The documentation for the function can be found at
http://codex.wordpress.org/Function_Reference/_2 - also look at
http://codex.wordpress.org/Translating_WordPress to get more insights on the
gettext-mechanism behind it.
> I'm looking through the code of an existing WP plugin and I hope to be
> able to change it to meet my needs. I've seen the __() function for the
> first time and I'm wondering exactly how it works. Here's an example:
> __('Duration', 'wpevents')
> Searching the web tells me it has something to do with translation, but
> all of the examples I've seen only have one argument. What's that
> second argument?
> Thank you.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Christian Bolstad: 0700-624351 | christian at bolstad.se | ICQ: 277707 | MSN:
cb at live.se
Box 937, 11479 Stockholm. Besöksadress: Kaplansbacken 5, Stockholm
More information about the wp-hackers