added getResources function for different languages