Lines Matching refs:localename
365 def normalize(localename): argument
382 if isinstance(localename, _unicode):
383 localename = localename.encode('ascii')
384 code = localename.translate(_ascii_lower_map)
447 return localename
449 def _parse_localename(localename): argument
463 code = normalize(localename)
477 raise ValueError, 'unknown locale: %s' % localename
538 localename = lookup(variable,None)
539 if localename:
541 localename = localename.split(':')[0]
544 localename = 'C'
545 return _parse_localename(localename)
561 localename = _setlocale(category)
562 if category == LC_ALL and ';' in localename:
564 return _parse_localename(localename)