Ticket #12230: 01-trans_real.diff

File 01-trans_real.diff, 456 bytes (added by janos, 5 years ago)
  • trans_real.py

    a b  
    4040        if to_lower:
    4141            return language[:p].lower()+'_'+language[p+1:].lower()
    4242        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()
    4346            return language[:p].lower()+'_'+language[p+1:].upper()
    4447    else:
    4548        return language.lower()
Back to Top