XTools.i18n.php overhaul

I hope this time it's ok.