              splited_lang_code = lang_code.split('-')[0]
              try:
                  return LANG_INFO[splited_lang_code]
              except KeyError:
                  raise KeyError("Unknown language code %r and %r." % (lang_code, splited_lang_code))
          raise KeyError("Unknown language code %r." % lang_code)
 
</s> remove         with self.assertRaisesRegexp(KeyError, "Unknown language code u\'xx-xx\' and u\'xx\'."):
 </s> add         with self.assertRaisesRegexp(KeyError, "Unknown language code xx-xx and xx."): </s> remove         with self.assertRaisesRegexp(KeyError, "Unknown language code u\'xx\'."):
 </s> add         with self.assertRaisesRegexp(KeyError, "Unknown language code xx."):
                raise KeyError("Unknown language code %s and %s." % (lang_code, splited_lang_code))
        raise KeyError("Unknown language code %s." % lang_code)
              splited_lang_code = lang_code.split('-')[0]
              try:
                  return LANG_INFO[splited_lang_code]
              except KeyError:
                raise KeyError("Unknown language code %s and %s." % (lang_code, splited_lang_code))
        raise KeyError("Unknown language code %s." % lang_code)
                raise KeyError("Unknown language code %s and %s." % (lang_code, splited_lang_code))
        raise KeyError("Unknown language code %s." % lang_code)
keep keep keep keep replace replace
 Changed %r to %s in get_language_info error message. 
django/utils/translation/__init__.py