Ticket #1397: i18n.patch

File i18n.patch, 0.6 kB (added by tlg, 1 year ago)
  • turbogears/command/i18n.py

    old new  
    231231        messages = [] 
    232232        tags_to_ignore = ['script', 'style'] 
    233233        keys = [] 
    234         kid_expr_re = re.compile(r"_\(('(?P<texta>[^']*)'|\"(?P<textb>[^\"]*)\")\)") 
     234        kid_expr_re = re.compile(r"_\((u?'(?P<texta>[^']*)'|u?\"(?P<textb>[^\"]*)\")\)") 
    235235        for fname in files: 
    236236            print 'working on', fname 
    237237            tree = None