Wiki macro code

Zelgadis has made a great work on the automatic localization of categorized pages. But when the category has one more than one work it doesn’t seems to work.

Anyone knows how to modify the code of the template to allow language extension when the category has more than one word?