support 中文繁体

This commit is contained in:
lealife
2016-03-19 14:05:09 +08:00
parent f5538218bd
commit 2aa3f5a654
51 changed files with 1684 additions and 311 deletions

View File

@ -0,0 +1 @@
var MSG={"noTag":"無","saveSuccess":"保存成功","none":"無","like":"贊","unlike":"取消贊","delete":"刪除","cancel":"取消","confirm":"確認","chooseReason":"請選擇舉報理由","reportSuccess":"舉報成功, 我們處理後會通知作者, 感謝您的監督","error":"錯誤","reportComment?":"舉報該評論?","reportBlog?":"舉報該博客?","confirmDeleteComment":"確定刪除該評論?","scanQRCode":"打開微信掃壹掃二維碼","justNow":"剛剛","minutesAgo":"分鐘前","hoursAgo":"個小時前","daysAgo":"天前","weeksAgo":"周前","monthsAgo":"個月前"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}