Add I18n function taking foreign classes/classloaders into accoutn for resource loading