INNER CODE UNIT · Python

getString

schwabe/ics-openvpn · main/misc/genFAQ.py:15

def getString(strid,lang):
    ostr=""
    if strid in strres[lang]:
        ostr=strres[lang][strid]
    else:
        ostr=strres["default"][strid]

    ostr = ostr.replace("&lt;","<")
    ostr = ostr.replace("&gt;",">")
    ostr = ostr.replace("\\\"","\"")
    ostr = ostr.replace("\\'","'")
    ostr = ostr.replace("\\n","<p>")
    ostr= HTMLParser.HTMLParser().unescape(ostr)
    return ostr

def genPage(javafile, lang):
    #{R.string.faq_howto_title, R.string.faq_howto},
    out =""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…