Improved handling of language labels for resources