Ticket #12230: 01-trans_real.diff
File 01-trans_real.diff, 456 bytes (added by , 15 years ago) |
---|
-
trans_real.py
a b 40 40 if to_lower: 41 41 return language[:p].lower()+'_'+language[p+1:].lower() 42 42 else: 43 # Get correct locale for sr-latn 44 if len(language[p+1:]) > 2: 45 return language[:p].lower()+'_'+language[p+1].upper()+language[p+2:].lower() 43 46 return language[:p].lower()+'_'+language[p+1:].upper() 44 47 else: 45 48 return language.lower()