php - What do the __'s mean in this context? -


throw new exception(__('exception')); 

what __'s do? called? i've seen in several implementations , common throughout magento codebase.

thanks

__ common name localization function. __ valid function name other.

function __($text) {     // return localized text } 

how works depends on framework in question.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -