Gazley Posted August 17, 2012 Posted August 17, 2012 Hi there, Looking at the BlogProfile and noticed the following: if(count($page->categories)) $subnav .= renderNav(__('Related Categories'), $page->categories); renderNav is a function and the first argument (above) starts with two underscores __ followed by ('Related Categories') What kind of value is that? I haven't seen that before and would appreciate an explanation. Is it some kind of PHP 'magic' thingy? Thanks.
Soma Posted August 17, 2012 Posted August 17, 2012 It's multi language domain translation function. Makes text in templates and modules and admin translateable. http://processwire.com/api/multi-language-support/ 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now