模块:File link:修订间差异
中文化
Cquote>水思 (新模塊) |
Cquote>Great Brightstar (中文化) |
||
| 第45行: | 第45行: | ||
else | else | ||
error(string.format( | error(string.format( | ||
" | "错误参数 #1 'fileLink:format'('%s'不是可用的格式)", | ||
s | s | ||
), 2) | ), 2) | ||
| 第55行: | 第55行: | ||
-- Used for formatting duplication errors in size-related methods. | -- Used for formatting duplication errors in size-related methods. | ||
error(string.format( | error(string.format( | ||
" | "发现重复的尺寸参数'%s'" | ||
.. " | .. "('upright'不能用来结合长度与宽度)", | ||
methodName | methodName | ||
), 3) | ), 3) | ||
| 第114行: | 第114行: | ||
else | else | ||
error(string.format( | error(string.format( | ||
" | "错误参数 #1 'fileLink:location'('%s'不是有效的地址)", | ||
s | s | ||
), 2) | ), 2) | ||
| 第138行: | 第138行: | ||
else | else | ||
error(string.format( | error(string.format( | ||
" | "错误参数 #1 'fileLink:alignment'('%s'不是正确的对齐方式)", | ||
s | s | ||
), 2) | ), 2) | ||
| 第191行: | 第191行: | ||
if argType ~= 'nil' and argType ~= 'string' and argType ~= 'number' then | if argType ~= 'nil' and argType ~= 'string' and argType ~= 'number' then | ||
error(string.format( | error(string.format( | ||
" | "错误参数 #%d '%s'(指定的字符串或数字 %s)", | ||
pos, | pos, | ||
funcName, | funcName, | ||
| 第233行: | 第233行: | ||
-- Filename | -- Filename | ||
if not data.theName then | if not data.theName then | ||
error('fileLink:render: | error('fileLink:render: 找不到文件名') | ||
end | end | ||
ret[#ret + 1] = 'File:' .. data.theName | ret[#ret + 1] = 'File:' .. data.theName | ||
| 第323行: | 第323行: | ||
local function restrictedFieldError(key, restriction) | local function restrictedFieldError(key, restriction) | ||
error(string.format( | error(string.format( | ||
" | "-{zh-cn:文件链接;zh-tw:檔案連結}-对象字段 '%s' 是 %s", | ||
tostring(key), | tostring(key), | ||
restriction | restriction | ||