fix notice warning
fail early if language is empty