Django

Code

Ticket #3088: patch.diff

File patch.diff, 0.7 kB (added by permon, 1 year ago)

fixed bug

  • django/utils/translation/trans_real.py

    old new  
    491491                    elif g[0] == "'": g = g.strip("'") 
    492492                    out.write(' gettext(%r) ' % g) 
    493493                elif bmatch: 
     494                    fmatches = constant_re.findall(t.contents) 
     495                    if fmatches: 
     496                        for fmatch in fmatches: 
     497                            out.write(' _(%s) ' % fmatch) 
    494498                    intrans = True 
    495499                    inplural = False 
    496500                    singular = []