def METHOD_NAME(t, ui_list, ts_folder, fname=TRANSLATE_PRO):
    t.to_file()
    if not os.path.exists(ts_folder):
        print('No ts files found')
        return
    pro = pro_tmpl.format(
        ui_list=' \\\n\t'.join([str(p) for p in ui_list]),
        sources=TRANSLATABLES_PY,
        translatables=TRANSLATABLES)
    with open(fname, 'w') as fd:
        fd.write(pro)
    cmd = LUPDATE + [fname]
    subprocess.call(cmd)