ماڊيول:Wd/i18n
ڏيک
| هي سانچو ھزارين صفحن تي استعمال ٿئي ٿو، تنهنڪري ان ۾ ڪيل تبديليون وڏي پيماني تي نظر اچي سگهن ٿيون۔ تبديليون لاڳو ڪرڻ کان اڳ، مهرباني ڪري انهن کي سانچي جي /ريتخاني يا /آزمائشي حالتون وارن ذيلي صفحن ۾ آزمائي ڏسو، يا پنهنجي يوزر ذيلي صفحي ۾ جانچ ڪريو۔ تبديليون لاڳو ڪرڻ کان اڳ ڳالهيون صفحي تي بحث ڪرڻ تي پڻ غور ڪيو۔ |
ھي ذيلي ماڊيول ماڊيول:Wd پاران بين الاقوامي ڪرڻ (i18n) جي مقصدن لاءِ استعمال ڪيو ويندو آهي ۽ ان کي الڳ ڪيو ويو آهي ته جيئن ماڊيول جي منطق کي لوڪل کان آزاد نموني سان اپڊيٽ ڪري سگهجي۔
-- The values and functions in this submodule should be localized per wiki.
local p = {}
function p.init(aliasesP)
aliasesP = aliasesP or {}
local A = {
statedIn = aliasesP.statedIn or 'P248',
referenceURL = aliasesP.referenceURL or 'P854',
publicationDate = aliasesP.publicationDate or 'P577',
lastUpdate = aliasesP.lastUpdate or 'P5017',
retrieved = aliasesP.retrieved or 'P813',
title = aliasesP.title or 'P1476',
subjectNamedAs = aliasesP.subjectNamedAs or 'P1810',
archiveURL = aliasesP.archiveURL or 'P1065',
archiveDate = aliasesP.archiveDate or 'P2960',
language = aliasesP.language or 'P407',
author = aliasesP.author or 'P50',
authorNameString = aliasesP.authorNameString or 'P2093',
publisher = aliasesP.publisher or 'P123',
quote = aliasesP.quote or 'P1683',
pages = aliasesP.pages or 'P304',
publishedIn = aliasesP.publishedIn or 'P1433',
sectionVerseOrParagraph = aliasesP.sectionVerseOrParagraph or 'P958',
column = aliasesP.column or 'P3903',
chapter = aliasesP.chapter or 'P792'
}
p = {
["version"] = "8",
["errors"] = {
["unknown-data-type"] = "اڻڄاتل يا غير سهائتا يافته ڊيٽا قسم '%s'.",
["missing-required-parameter"] = "گهربل پيرا ميٽر بيان ٿيل نه آهن؛ گهٽ ۾ گهٽ هڪ گهربل آهي",
["extra-required-parameter"] = "پيرا ميٽر '%s' کي اختياري طور بيان ٿيڻ گهرجي",
["no-function-specified"] = "توهان کي سڏڻ لاءِ فنڪشن بيان ڪرڻو پوندو",
["main-called-twice"] = 'فنڪشن "main" ٻه ڀيرا سڏي نٿو سگهجي',
["no-such-function"] = 'فنڪشن "%s" موجود ناهي',
["no-such-reference-template"] = 'نقص: سانچو "%s"، جيڪو %s ۾ حوالا-output قسم "%s" لاءِ output سانچي طور مقرر ٿيل آهي، موجود ناهي',
["malformed-reference-header"] = '<span style="color:#dd3333">\nنقص: وڪيڊيٽا مان حوالو صحيح نموني ڏيکاري نٿو سگهجي. فني تفصيل:\n',
["malformed-reference-footer"] = "وڌيڪ تفصيل لاءِ [[Module:wd/doc#References|دستاويز]] ڏسو.\n</span>\n[[زمرو:ماڊيول:Wd حوالا نقص]]",
["template-failure-reason"] = "* {{tl|%s}} جي ناڪامي جو سبب: %s\n",
["missing-mandatory-param"] = 'output سانچي جي ڪال مان لازمي پيرا ميٽر <code>%s</code> غائب رهندو.',
["unknown-property-in-ref"] = 'وڪيڊيٽا حوالو پراپرٽي {{property|%s}} رکي ٿو، جيڪا هن سانچي جي ڪنهن به پيرا ميٽر سان لاڳاپيل ناهي.'
},
["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"] = "جولين ڪئلينڊر",
["julian"] = "جولين",
["BCE"] = "ق.م",
["CE"] = "عيسوي",
["common-era"] = "عام دور"
},
["coord"] = {
["latitude-north"] = "N",
["latitude-south"] = "S",
["longitude-east"] = "E",
["longitude-west"] = "W",
["degrees"] = "°",
["minutes"] = "'",
["seconds"] = '"',
["separator"] = ", "
},
["values"] = {
["unknown"] = "اڻڄاتل",
["none"] = "ڪوبه نه"
},
["cite"] = {
["output-types"] = {"web", "q"},
["param-mapping"] = {
["web"] = {
[A.statedIn] = "website",
[A.referenceURL] = "url",
[A.publicationDate] = "date",
[A.lastUpdate] = "date",
[A.retrieved] = "access-date",
[A.title] = "title",
[A.subjectNamedAs] = "title",
[A.archiveURL] = "archive-url",
[A.archiveDate] = "archive-date",
[A.language] = "language",
[A.author] = "author",
[A.authorNameString] = "author",
[A.publisher] = "publisher",
[A.quote] = "quote",
[A.pages] = "pages",
[A.publishedIn] = "website",
[A.sectionVerseOrParagraph] = "at"
},
["q"] = {
[A.statedIn] = "1",
[A.pages] = "pages",
[A.column] = "at",
[A.chapter] = "chapter",
[A.sectionVerseOrParagraph] = "section",
["external-id"] = "id",
[A.title] = "title",
[A.publicationDate] = "date",
[A.lastUpdate] = "date",
[A.retrieved] = "access-date"
}
},
["config"] = {
["web"] = {
["template"] = "Cite web",
["numbered-params"] = {"author"},
["mandatory-params"] = {"url"},
["prioritization"] = {
["date"] = {A.lastUpdate, A.publicationDate},
["title"] = {A.title, A.subjectNamedAs}
}
},
["q"] = {
["template"] = "Cite Q",
["raw-value-params"] = {"1"},
["mandatory-params"] = {"1"},
["prioritization"] = {
["date"] = {A.lastUpdate, A.publicationDate}
}
}
}
}
}
p.getOrdinalSuffix = function(num)
return ""
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