PHP Detect-language Resources