[wp-hackers] two-underscore function arguments?
Ghodmode
ghodmode at ghodmode.com
Wed Dec 2 09:10:20 UTC 2009
Wow! You guys are fast! :)
On Wed, 2009-12-02 at 10:02 +0100, Christian Bolstad wrote:
> 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.
That's exactly what I was looking for, but I also found something else
after I sent the email...
http://codex.wordpress.org/I18n_for_WordPress_Developers#Choosing_and_loading_a_domain
Thank you.
> > 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.
> >
> > --
> > Ghodmode
> > http://www.ghodmode.com
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
More information about the wp-hackers
mailing list