跳到内容

模块:File link:修订间差异

添加1字节 、​ 2014年8月31日 (星期日)
中文化
Cquote>水思
(新模塊)
 
Cquote>Great Brightstar
(中文化)
第45行: 第45行:
else
else
error(string.format(
error(string.format(
"bad argument #1 to 'fileLink:format' ('%s' is not a valid 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(
"duplicate size argument detected in '%s'"
"发现重复的尺寸参数'%s'"
.. " ('upright' cannot be used in conjunction with height or width)",
.. "('upright'不能用来结合长度与宽度)",
methodName
methodName
), 3)
), 3)
第114行: 第114行:
else
else
error(string.format(
error(string.format(
"bad argument #1 to 'fileLink:location' ('%s' is not a valid location)",
"错误参数 #1 'fileLink:location'('%s'不是有效的地址)",
s
s
), 2)
), 2)
第138行: 第138行:
else
else
error(string.format(
error(string.format(
"bad argument #1 to 'fileLink:alignment' ('%s' is not a valid alignment)",
"错误参数 #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(
"bad argument #%d to '%s' (string or number expected, got %s)",
"错误参数 #%d '%s'(指定的字符串或数字 %s)",
pos,
pos,
funcName,
funcName,
第233行: 第233行:
-- Filename
-- Filename
if not data.theName then
if not data.theName then
error('fileLink:render: no filename was found')
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(
"fileLink object field '%s' is %s",
"-{zh-cn:文件链接;zh-tw:檔案連結}-对象字段 '%s' 是 %s",
tostring(key),
tostring(key),
restriction
restriction