Gazley Posted August 17, 2012 Share 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. Link to comment Share on other sites More sharing options...
Soma Posted August 17, 2012 Share 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 Link to comment Share on other sites More sharing options...
Gazley Posted August 17, 2012 Author Share Posted August 17, 2012 Thanks Soma! Link to comment Share on other sites More sharing options...
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