Searched refs:CanonicalLanguage (Results 1 – 2 of 2) sorted by relevance
46 self.failUnless(util.CanonicalLanguage('en') == 'en')47 self.failUnless(util.CanonicalLanguage('pt_br') == 'pt-BR')48 self.failUnless(util.CanonicalLanguage('pt-br') == 'pt-BR')49 self.failUnless(util.CanonicalLanguage('pt-BR') == 'pt-BR')50 self.failUnless(util.CanonicalLanguage('pt/br') == 'pt-BR')51 self.failUnless(util.CanonicalLanguage('pt/BR') == 'pt-BR')52 self.failUnless(util.CanonicalLanguage('no_no_bokmal') == 'no-NO-BOKMAL')
375 def CanonicalLanguage(code): function424 lang = CanonicalLanguage(lang)