






function polyglotLIBdemo.onTranslateSomething()


local hU=this.getUser()
local l="ruRU"


if polyglot.isLanguageAvailable(l)then
log.message("AVAIL "..l..": true")


local sTrans=polyglot.translate(l,"CONTEXT_CLASS_GODDESS",0)
log.message("SINGLE: "..sTrans)


sTrans=polyglot.translate(l,"I like CONTEXT_CLASS_GODDESS and CONTEXT_CLASS_PRINCESS",0)
log.message("COMPOUND: "..sTrans)
else
log.message("AVAIL "..l..": false")
end


end
