Wrap the globalization block in a function so that it can be invoked mul...

...tiple times.

<!---
@huboard:{"order":1063.0,"milestone_order":1051,"custom_state":""}
-->