모듈:Wd/i18n
보이기
< 모듈:Wd
이 모듈의 자세한 설명은 en:Module:Wd/i18n/doc 항목을 참고하십시오.
-- The values and functions in this submodule should be localized per wiki.
local p = {}
function p.init(aliasesP)
p = {
["version"] = "8", -- increment this each time the below parameters are changed to avoid reference conflict errors
["errors"] = {
["unknown-data-type"] = "'%s' 틀은 알 수 없거나 지원하지 않습니다.",
["missing-required-parameter"] = "필수 변수가 정의되어 있지 않습니다. 적어도 하나는 필요합니다.",
["extra-required-parameter"] = "'%s' 변수는 선택적으로 지정해야 합니다",
["no-function-specified"] = "호출할 함수를 지정해야 합니다", -- equal to the standard module error message
["main-called-twice"] = '"main" 함수는 두 번 호출할 수 없습니다',
["no-such-function"] = '"%s" 함수가 존재하지 않습니다', -- equal to the standard module error message
["no-such-reference-template"] = 'Error: template "%s", which is set in %s as the output template for the citation-output type "%s", does not exist',
-- Parts of the error message signalling a malformed reference.
["malformed-reference-header"] = "<span style=\"color:#dd3333\">\nError: Unable to display the reference from Wikidata properly. Technical details:\n",
["malformed-reference-footer"] = "See [[:en:Module:wd/doc#References|the documentation]] for further details.\n</span>",
["template-failure-reason"] = "* Reason for the failure of {{tl|%s}}: %s\n",
["missing-mandatory-param"] = 'The output template call would miss the mandatory parameter <code>%s</code>.',
["unknown-property-in-ref"] = 'The Wikidata reference contains the property {{property|%s}}, which is not assigned to any parameter of this template.'
},
["info"] = {
["edit-on-wikidata"] = "위키데이터에서 편집하기"
},
["numeric"] = {
["decimal-mark"] = ".",
["delimiter"] = ","
},
["datetime"] = {
["prefixes"] = {
["decade-period"] = ""
},
["suffixes"] = {
["decade-period"] = "년대",
["millennium"] = "천 세기",
["century"] = "세기",
["million-years"] = "백만 년",
["billion-years"] = "억 년",
["year"] = "년",
["years"] = "년"
},
["julian-calendar"] = "율리우스력", -- linked page title
["julian"] = "율리우스력",
["BCE"] = "BCE", -- 기원전으로 번역 안 함?
["CE"] = "CE", -- 기원후로 번역 안 함?
["common-era"] = "공통 기원" -- linked page title
},
["coord"] = {
["latitude-north"] = "북위",
["latitude-south"] = "남위",
["longitude-east"] = "동경",
["longitude-west"] = "서경",
["degrees"] = "°",
["minutes"] = "'",
["seconds"] = '"',
["separator"] = ", "
},
["values"] = {
["unknown"] = "알 수 없음",
["none"] = "없음"
},
["cite"] = {
["output-types"] = {"web", "q"}, -- In this order, the output types will be tried
["param-mapping"] = {
["web"] = {
-- <= left side: all allowed reference properties for *web page sources* per https://www.wikidata.org/wiki/Help:Sources
-- => right side: corresponding parameter names in (equivalent of) [[:en:Template:Cite web]] (if non-existent, keep empty i.e. "")
[aliasesP.statedIn] = "웹사이트",
[aliasesP.referenceURL] = "url",
[aliasesP.publicationDate] = "날짜",
[aliasesP.lastUpdate] = "날짜",
[aliasesP.retrieved] = "확인날짜",
[aliasesP.title] = "제목",
[aliasesP.subjectNamedAs] = "제목",
[aliasesP.archiveURL] = "보존url",
[aliasesP.archiveDate] = "보존날짜",
[aliasesP.language] = "언어",
[aliasesP.author] = "저자",
[aliasesP.authorNameString] = "저자",
[aliasesP.publisher] = "출판사",
[aliasesP.quote] = "인용문",
[aliasesP.pages] = "pages", -- extra option
[aliasesP.publishedIn] = "웹사이트",
[aliasesP.sectionVerseOrParagraph] = "쪽기타"
},
["q"] = {
-- <= left side: all allowed reference properties for *sources other than web pages* per https://www.wikidata.org/wiki/Help:Sources
-- => right side: corresponding parameter names in (equivalent of) [[:en:Template:Cite Q]] (if non-existent, keep empty i.e. "")
[aliasesP.statedIn] = "1",
[aliasesP.pages] = "pages",
[aliasesP.column] = "at",
[aliasesP.chapter] = "chapter",
[aliasesP.sectionVerseOrParagraph] = "section",
["external-id"] = "id", -- used for any type of database property ID
[aliasesP.title] = "title",
[aliasesP.publicationDate] = "date",
[aliasesP.lastUpdate] = "date",
[aliasesP.retrieved] = "access-date"
}
},
["config"] = {
-- supported fields:
-- - template: name of the template used for output
-- - numbered-params: citation params accepting an arbitrary number of values by numbering the params (e.g. author1, author2)
-- - raw-value-params: params taking a raw value (which means the property is rendered with getValue with raw=true)
-- - mandatory-params: params that are required be in the template call (after potentially appending numbers to params listed in numbered-params)
-- - prioritization: table associating a list of properties, in the order in which they are preferred, to template parameters;
-- properties not mentioned here have the lowest priority;
-- prioritization of properties handled through additionalProcessedProperties is unsupported;
-- no key of this table can be from numbered-params
-- Leaving out the "template" field causes the output type to be ignored.
["web"] = {
["template"] = "웹 인용",
["numbered-params"] = {"저자"},
["mandatory-params"] = {"url"},
["prioritization"] = {
["date"] = {aliasesP.lastUpdate, aliasesP.publicationDate},
["title"] = {aliasesP.title, aliasesP.subjectNamedAs}
}
},
["q"] = {
["template"] = "Cite Q",
["raw-value-params"] = {"1"}, -- the first, unnamed parameter of CiteQ takes a QID, not the name of the item cited
["mandatory-params"] = {"1"},
["prioritization"] = {
["date"] = {aliasesP.lastUpdate, aliasesP.publicationDate}
}
}
}
}
}
p.getOrdinalSuffix = function(num)
if tostring(num):sub(-2,-2) == '1' then
return "번째" -- 10th, 11th, 12th, 13th, ... 19th
end
num = tostring(num):sub(-1)
if num == '1' then
return "번째"
elseif num == '2' then
return "번째"
elseif num == '3' then
return "번째"
else
return "번째"
end
end
p.addDelimiters = function(n)
local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$")
if left and num and right then
return left .. (num:reverse():gsub("(%d%d%d)", "%1" .. p['numeric']['delimiter']):reverse()) .. right
else
return n
end
end
return p
end
return p