Module:Excerpt:修订间差异
删除的内容 添加的内容
getMessage 双 pcall 容错 |
消息本地化:TNT 降级时用中文 |
||
第38行:
-- Helper function to get localized messages
local excerptMessages = {
['this'] = '这个部分',
['section'] = '这个部分',
['excerpt'] = '摘自:',
['more'] = '阅读更多……',
}
function getMessage(key)
local ok, TNT = pcall(require, 'Module:TNT')
if
end
return excerptMessages[key] or key
end
| |||