show raw error msg on web, fix #524, fix #636

This commit is contained in:
ffdfgdfg 2020-10-06 01:26:47 +08:00
parent b5c0b4d895
commit 2c3126c489
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ var postsubmit;
function langreply(langstr) {
var langobj = languages['content']['reply'][langstr.replace(/[\s,\.\?]*/g,"").toLowerCase()];
if ($.type(langobj) == 'undefined') return langobj
if ($.type(langobj) == 'undefined') return langstr
langobj = (langobj[languages['current']] || langobj[languages['default']] || langstr);
return langobj
}