Rewrite and optimize language file