Module:I18n/name
Jump to navigation
Jump to search
Lua
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules
Internationalization page for Module:Name.
Code
--[[
Return a map from each type of name to a localized description:
* a string refering to a Wikidata item identifier ('Qnnn') to get its translated labels (does not depend on name parameter),
* an array indexed by language code and whose value is either a string for the description, or a function of name in parameter for derived types
]]
return {
-- ======================================================
-- === Name type: name format ===========================
-- ======================================================
first = 'Q202444',
middle = {
ar = 'الاسم الأوسط',
ast = 'segundu apellíu',
bn = 'মধ্য নাম',
ca = 'segon nom',
de = 'zweiter Vorname',
en = 'middle name',
fa = '[[:w:fa:نام میانی|نام میانی]]',
fr = 'deuxième prénom',
hu = 'második keresztnév',
mk = 'средно име',
it = 'secondo nome',
nl = 'tweede voornaam',
pl = 'drugie imię',
pt = 'nome do meio',
ro = 'nume mijlociu',
sl = 'drugo ime',
sv = 'mellannamn',
vi = 'tên đậm',
['zh-hans'] = '中间名',
['zh-hant'] = '中間名',
},
last = {
ar = 'الكنية',
ast = 'apellíu',
['be-tarask'] = 'прозьвішча',
bn = 'বংশ নাম',
ca = 'cognom',
de = 'Nachname',
en = 'last name',
fa = 'نام خانوادگی',
fr = 'nom de famille', --[==[ 'patronyme' ]==]
ga = 'sloinne',
hu = 'vezetéknév',
it = 'cognome',
mk = 'презиме',
nl = 'achternaam',
ro = 'nume de familie',
pl = 'nazwisko',
pt = 'sobrenome',
sl = 'priimek',
sv = 'efternamn',
vi = 'họ',
['zh-hans'] = '姓',
['zh-hant'] = '姓',
},
birth = {
ar = 'الاسم بعد الولادة',
ast = 'nome de nacimientu',
be = 'імя пры нараджэнні',
['be-tarask'] = 'імя пры нараджэньні',
bn = 'জন্ম নাম',
ca = 'nom de naixement',
de = 'Geburtsname',
en = 'birth name',
es = 'nombre de nacimiento',
fa = 'نام اصلی',
fr = 'nom de naissance',
ga = 'ainm bhreithe',
hu = 'születési név',
it = 'nome di nascita',
mk = '[[:mk:Родено име|родено име]]',
nds = '[[:nds:Geboortsnaam|Geboortsnaam]]',
nl = 'geboren als',
pl = 'imię chrzestne',
pt = 'nome de nascimento',
ro = 'nume la naștere',
ru = '[[:ru:Имя при рождении|имя при рождении]]',
sl = 'rojstno ime',
sv = 'födelsenamn',
vi = 'tên khai sinh',
['zh-hans'] = '出生名',
['zh-hant'] = '出生名',
},
baptismal = {
ar = 'الاسم المسيحي',
ast = 'nome de pila',
bn = 'দীক্ষাগুরু নাম',
ca = 'nom baptismal',
de = 'Taufname',
en = 'baptismal name',
fa = '[[:fa:نام مسیحی|نام مسیحی]]',
fr = 'nom de baptème',
ga = 'ainm baiste',
hu = 'keresztelési név',
it = 'nome di battesimo',
mk = 'крштално име',
nl = 'christelijke naam',
pt = '[[:pt:Nome de batismo|nome de batismo]]',
sv = 'döpelsenamn',
vi = 'tên thánh',
['zh-hans'] = '洗礼名',
['zh-hans'] = '洗禮名',
},
legal = 'Q666791',
chinese = {
ar = 'الاسم الصيني',
ast = 'apellíu y nome',
bn = 'প্রথম ও শেষ নাম',
ca = 'nom i cognom',
de = '[[:de:Chinesischer Name|Name und Vorname]]',
en = '[[:en:Chinese name|surname and name]]',
fa = '[[:fa:نام چینی|نام خانوادگی و نام کوچک]]',
fr = '[[:fr:Nom chinois|nom et prénom]]',
it = '[[:it:Nome cinese|cognome e nome]]',
hu = '[[:hu:Kínai névadás|család- és utónév]]',
mk = '[[:mk:Кинеско име|презиме и име]]',
nl = '[[:nl:Chinese namen|naam en voornaam]]',
pt = 'nome chinês',
ru = 'фамилия и имя',
sl = 'priimek in ime',
sv = '[[:sv:Kinesiska namn|kinesiska namn]]',
['zh-hans'] = '[[:zh:漢族人名|中文姓名]]',
['zh-hant'] = '[[:zh:漢族人名|中文姓名]]',
},
artist = {
ar = 'الاسم الفني',
ast = 'nome artísticu',
['be-tarask'] = 'творчы псэўданім',
bn = 'শিল্পী নাম',
ca = 'nom artístic',
de = 'Künstlername',
en = 'artist name',
fa = 'تخلص',
fr = 'nom d’artiste',
ga = 'ainm ealaíontóra',
hu = 'művésznév',
it = 'nome d’arte',
mk = 'име на уметникот',
nds = 'künstlernaam',
nl = '[[:nl:Pseudoniem|artiestennaam]]',
ro = 'nume de artist',
ru = 'творческий псевдоним',
pl = 'imię artysty',
pt = 'nome artístico',
sl = 'umetniško ime',
sv = 'artistnamn',
vi = 'tên họa sĩ',
['zh-hans'] = '艺名',
['zh-hans'] = '藝名',
},
pseudonym = 'Q61002',
['chinese pseudonym'] = {
ar = 'الاسم المستعار',
ast = 'seudónimu chinu',
bn = 'ছদ্মনাম',
de = '[[:de:Chinesischer Name|Pseudonym]]',
en = '[[:en:Hào|pseudonym]]',
fa = 'تخلص',
fr = '[[:fr:Système traditionnel et historique des noms chinois|pseudonyme]]',
mk = '[[:mk:Куртоазно име|псевдоним]]',
it = 'pseudonimo cinese',
nl = '[[:nl:Chinese namen|pseudoniem]]',
pt = 'pseudónimo',
ru = 'прозвание',
sl = 'psevdonim',
sv = 'kinesiska stilnamn',
['zh-hans'] = '[[:zh:号|号]]',
['zh-hant'] = '[[:zh:号|號]]',
},
['courtesy name'] = {
ar = 'اللقب',
ast = 'nome de cortesía chinu',
bn = 'সৌজন্য নাম',
ca = 'nom de cortesia',
de = '[[:de:Chinesischer Name|Hofname]]',
en = '[[:en:Chinese style name|courtesy name]]',
fa = '[[:fa:نام محترم|نام محترم]]',
fr = '[[:fr:Prénom social|prénom social]]',
it = '[[:it:Nome cinese di cortesia|nome di cortesia]]',
mk = '[[:mk:Куртоазно име|куртоазно име]]',
nl = '[[:nl:Chinese namen|omgangsnaam]]',
pt = 'nome de cortesia',
sv = 'kinesiska stilnamn',
['zh-hans'] = '[[:zh:表字|字]]',
['zh-hant'] = '[[:zh:表字|字]]',
},
-- ============================================================
--[[ Formated composite names:
$name - will be replaced with the provided base name of the person
$of_name - the base name of the person as it would be show up in a
'workshop of X' phrase $of_name will be replaced with 'of X' part
So far only implemented in French and Catalan (for name-dependant mutations of the adverb),
but may be also used to infer a genitive form of the name in parameter
--]]
-- ============================================================
elder = {
ar = '$name الأجداد',
ast = '$name el Vieyu',
an = '$name o Biello',
['be-tarask'] = '$name Старэйшы',
bg = '$name Стари',
bn = '$name অগ্রজ',
ca = '$name el Vell',
cs = '$name starší',
da = '$name den Ældre',
de = '$name der Ältere',
en = '$name the Elder',
es = '$name el Viejo',
fa = '$name بزرگ',
fr = '$name l’Ancien',
fi = '$name vanhempi',
gl = '$name o Vello',
hr = '$name stariji',
hu = 'id. $name',
it = '$name il Vecchio',
lv = '$name Vecākais',
mk = '$name Постариот',
nds = '$name de Ole',
nl = '$name de Oude',
no = '$name den eldre',
nn = '$name den eldre',
pl = '$name Starszy',
pt = '$name o Velho',
ro = '$name cel Bătrân',
ru = '$name Старший',
sh = '$name Stariji',
sk = '$name Starší',
sl = '$name starejši',
sr = '$name Старији',
sv = '$name den äldre',
th = '$name (ผู้พ่อ)',
uk = '$name Старший',
vi = '$name cha',
['zh-hans'] = '老$name',
['zh-hant'] = '老$name',
},
younger = {
ar = '$name الأحفاد',
ast = '$name el Nuevu',
['be-tarask'] = '$name Малодшы',
br = '$name yaouank',
bg = '$name Младши',
bn = '$name ছোট',
ca = '$name el Jove',
cs = '$name mladší',
cy = '$name yr Ieuaf',
da = '$name den yngre',
de = '$name der Jüngere',
en = '$name the Younger',
es = '$name el Joven',
eo = '$name la malpliaĝa',
fa = '$name کوچک',
fi = '$name nuorempi',
fr = '$name le Jeune',
fy = '$name de Jongere',
gl = '$name o Novo',
hr = '$name mlađi',
hu = 'ifj. $name',
it = '$name il Giovane',
is = '$name yngri',
la = '$name Iunior',
lv = '$name Jaunākais',
mk = '$name Помладиот',
nn = '$name d.y.',
nl = '$name de Jonge',
no = '$name den yngre',
pl = '$name Młodszy',
pt = '$name o Jovem',
ro = '$name cel Tânăr',
ru = '$name Младший',
sh = '$name Mlađi',
sr = '$name Млађи',
sl = '$name mlajši',
sv = '$name d.y.',
th = '$name (ผู้ลูก)',
uk = '$name Молодший',
vi = '$name con',
['zh-hans'] = '小$name',
['zh-hant'] = '小$name',
},
master = {
ar = 'درس على يد $name',
ast = 'Maestru $name',
br = 'Meister $name',
bn = 'গুরু $name',
ca = 'Mestre $name',
de = 'Meister $name',
en = 'Master $name',
es = 'Maestro $name',
fa = 'استاد $name',
fr = 'Maître $name',
hu = '$name mester',
it = 'Maestro $name',
mk = 'Мајстор $name',
nds = 'Meester $name',
nl = 'Meester $name',
pl = 'Mistrz $name',
pt = 'Mestre $name',
ro = 'Maestrul $name',
sv = 'Mästare $name',
vi = 'Cậu $name',
['zh-hans'] = '$name师傅',
['zh-hant'] = '$name師傅',
},
['master of'] = {
ar = 'أستاذ في $name',
ast = 'Maestru $of_name',
bn = '$name-এর গুরু',
ca = 'Mestre $of_name',
de = 'Meister des/von $name',
en = 'Master of $name',
es = 'Maestro de $name',
fa = 'استاد $name',
fr = 'Maître $of_name',
hu = '$name mestere',
it = 'Maestro del $name',
mk = 'Мајстор од $name',
nds = 'Meester von $name',
nl = 'Meester van $name',
pl = 'Mistrz $name',
pt = 'Mestre de $name',
ro = 'Maestrul din $name',
sv = 'Mästare av $name',
['zh-hans'] = '$name的师傅',
['zh-hant'] = '$name的師傅',
},
['circle of'] = {
ar = 'دفعة $name',
ast = 'círculu $of_name',
['be-tarask'] = 'з кола $of_name',
bn = '$name-এর বৃত্ত',
ca = 'cercle $of_name',
de = 'Kreis d. $name',
el = '$name (περίγυρος)',
en = 'circle of $name',
es = 'círculo de $name',
fa = 'حلقهٔ $name',
fr = 'entourage $of_name',
hu = '$name köre',
it = 'cerchia di $name',
mk = 'кругот на $name',
nl = 'omgeving van $name',
pl = '$name (lub jego krąg)',
pt = 'séquito de $name',
ru = 'из круга $name',
sv = 'cirkel av $name',
['zh-hans'] = '$name圈',
['zh-hant'] = '$name圈',
},
['school of'] = {
ar = 'مدرسة $name',
ast = 'escuela $of_name',
['be-tarask'] = 'з школы $of_name',
bn = '$name-এর বিদ্যালয়',
ca = 'escola $of_name',
de = 'Schule von $name',
en = 'school of $name',
es = 'escuela de $name',
fa = 'مکتب $name',
fr = 'école $of_name',
hu = '$name iskolája',
it = 'scuola di $name',
mk = 'школа на $name',
nl = 'school van $name',
pl = 'szkoła $name',
pt = 'escola de $name',
ru = 'из школы $name',
sv = 'skola av $name',
['zh-hans'] = '$name的学校',
['zh-hant'] = '$name的學校',
},
['studio of'] = {
ar = 'استوديو $name',
ast = 'estudiu $of_name',
bn = '$name-এর স্টুডিও',
de = 'Studio von $name',
en = 'studio of $name',
fa = 'استودیوی $name',
fr = 'studio $of_name',
it = 'studio di $name',
mk = 'студио на $name',
nl = 'studio door $name',
pl = '$name (lub jego studio)',
pt = 'estúdio de $name',
['zh-hans'] = '$name的工作室',
['zh-hant'] = '$name的工作室',
},
['workshop of'] = {
ar = 'ورشة $name',
ast = 'taller $of_name',
bn = '$name-এর কর্মশালা',
ca = 'taller $of_name',
de = 'Atelier/Werkstatt von $name',
en = 'workshop of $name',
es = 'taller de $name',
fa = 'کارگاه $name',
fr = 'atelier $of_name',
hu = '$name műhelye',
it = 'bottega di $name',
mk = 'ателје на $name',
nds = 'Warkstuuv vun $name',
nl = 'atelier van $name',
pl = '$name (lub jego warsztat)',
pt = 'oficina de $name',
sv = 'verkstad av $name',
['zh-hans'] = '$name的工坊',
['zh-hant'] = '$name的工坊',
},
['or workshop'] = {
ar = '$name أو ورشة',
ast = '$name o taller',
bn = '$name বা কর্মশালা',
de = '$name oder Werkstatt',
en = '$name or workshop',
es = '$name o taller',
fa = '$name یا کارگاه',
fr = '$name ou atelier',
it = '$name o bottega',
mk = '$name или ателје',
nl = '$name of atelier',
pl = '$name lub jego warsztat',
pt = '$name ou oficina',
sv = '$name eller verkstad',
['zh-hans'] = '$name或工坊',
['zh-hant'] = '$name的工坊',
},
['and workshop'] = {
ar = '$name وورشة',
ast = '$name y taller',
bn = '$name ও কর্মশালা',
de = '$name und Werkstatt',
en = '$name and workshop',
es = '$name y taller',
fa = '$name و کارگاه',
fr = '$name et atelier',
it = '$name e bottega',
mk = '$name и ателје',
nl = '$name en atelier',
pl = '$name i jego warsztat',
pt = '$name e oficina',
sv = '$name eller verkstad',
['zh-hans'] = '$name及工坊',
['zh-hant'] = '$name與工坊',
},
['and/or workshop'] = {
ar = '$name و/أو ورشة',
ast = '$name y/o taller',
bn = '$name ও/বা কর্মশালা',
de = '$name und/oder Werkstatt',
en = '$name and/or workshop',
es = '$name y/o taller',
fa = '$name و/یا کارگاه',
fr = '$name et/ou atelier',
it = '$name e/o bottega',
mk = '$name и/или ателје',
nl = '$name en/of atelier',
pl = '$name i/lub jego warsztat',
pt = '$name e/ou oficina',
vi = '$name và/hoặc xưởng',
['zh-hans'] = '$name和/或工坊',
['zh-hant'] = '$name和/或工坊',
},
['follower of'] = {
ar = 'تلميذ لـ $name',
ast = 'siguidor $of_name',
['be-tarask'] = 'пасьлядоўнік $of_name',
bn = '$name-এর অনুসরণকারী',
ca = 'seguidor $of_name',
de = 'Nachahmer von $name',
en = 'follower of $name',
es = 'seguidor de $name',
fa = 'پیرو $name',
fr = 'suiveur $of_name',
hu = '$name követője',
it = 'seguace di $name',
mk = 'следбеник на $name',
nl = 'navolger van $name',
pl = 'naśladowca $name',
pt = 'seguidor de $name',
ru = 'последователь $name',
['zh-hans'] = '$name的追随者',
['zh-hant'] = '$name的追隨者',
},
['or follower'] = {
ar = '$name أو تلميد لـ',
ast = '$name o siguidor',
bn = '$name বা অনুসরণকারী',
de = '$name oder Nachahmer',
en = '$name or follower',
fa = '$name یا پیرو',
fr = '$name ou suiveur',
it = '$name o allievi',
mk = '$name или следбеник',
nl = '$name of navolger',
pl = '$name lub naśladowca',
pt = '$name ou seguidor',
sv = '$name eller följare',
vi = '$name hoặc môn đồ',
['zh-hans'] = '$name或追随者',
['zh-hant'] = '$name或追隨者',
},
['manner of'] = {
ar = 'طريقة $name',
ast = 'manera $of_name',
bn = '$name-এর রীতি',
ca = 'manera $of_name',
de = 'Stil von $name',
en = 'manner of $name',
es = 'a la manera de $name',
et = 'kunstnik, kelle maneeri on järgitud: $name',
fa = 'شیوهٔ $name', --[==[ '$name شیوهای از', ]==]
fi = 'tapaan $name',
fr = 'manière $of_name',
hu = '$name stílusa',
it = 'maniera di $name',
mk = 'во стилот на $name',
nl = 'trant van $name',
pl = 'w stylu $name',
pt = 'à maneira de $name',
ro = 'maniera lui $name',
ru = 'в стиле $name',
sv = 'sättet av $name',
['zh-hans'] = '$name风格',
['zh-hant'] = '$name風格',
},
['painter of'] = {
ar = 'رسام لـ $name',
ast = 'pintor $of_name',
bn = '$name-এর চিত্রকর',
ca = 'pintor $of_name',
de = 'Maler von $name',
el = 'ζωγράφος του $name',
en = 'painter of $name',
es = 'pinter de $name',
fa = 'نقاش $name',
fr = 'peintre $of_name',
hu = '$name festője',
it = 'pittore di $name',
mk = 'сликар на $name',
nl = 'schilder van $name',
pt = 'pintor de $name',
sv = 'målare av $name',
['zh-hans'] = '$name的涂画者',
['zh-hant'] = '$name的塗畫者',
},
['attributed to'] = {
ar = 'يُنسب له $name',
ast = 'atribuíu a $name',
['be-tarask'] = 'прыпісваецца: $name',
bn = '$name-এর উপর আরোপিত',
ca = 'atribuït a $name',
cs = 'připisováno $name',
da = 'tilskrives $name',
de = '$name zugeschrieben',
el = 'αποδίδεται σε $name',
en = 'attributed to $name',
es = 'atribuido a $name',
fa = 'منسوب به $name',
fr = function(name)
local pre = mw.ustring.lower(mw.ustring.sub(name, 1, 6))
if pre == 'peintr' or pre == 'maitre' or pre == 'maître' then
return 'attribué au ' .. name
end
return 'attribué à ' .. name
end,
hu = 'feltehetőleg $name műve',
it = 'attribuito a $name',
mk = 'припишано на $name',
nl = 'toegeschreven aan $name',
pl = 'przypisywany $name',
pt = 'atribuído a $name',
ro = 'atribuit lui $name',
ru = 'приписывается: $name',
sv = 'tillskrivs: $name',
['zh-hans'] = '传$name',
['zh-hant'] = '傳$name',
},
['formerly attributed to'] = {
ar = 'يُنسب سابقاً لـ $name',
ast = 'anteriormente atribuíu a $name',
bn = 'পূর্বে $name-এর উপর আরোপিত',
ca = 'abans atribuït a $name',
cs = 'původně připisováno $name',
da = 'tidligere tilskrevet $name',
de = 'ehemals zugeschrieben an $name',
el = 'αποδιδόταν προηγούμενα: $name',
en = 'formerly attributed to $name',
es = 'anteriormente atribuida a $name',
fa = 'پیشتر منسوب به $name',
fr = function(name)
local pre = mw.ustring.lower(mw.ustring.sub(name, 1, 6))
if pre == 'peintr' or pre == 'maitre' or pre == 'maître' then
return 'anciennement attribué au ' .. name
end
return 'anciennement attribué à ' .. name
end,
hu = 'korábban $name művének tulajdonították',
it = 'già attribuito a $name',
ja = 'かつては$nameの作とされていた。',
mk = 'порано припишувано на $name',
nds = 'vörmaals $name',
nl = 'voorheen toegeschreven aan $name',
pt = 'antigamente atribuído a $name',
ro = 'anterior atribuit lui $name',
ru = 'ранее приписывалось $name',
['zh-hans'] = '旧传$name',
['zh-hant'] = '舊傳$name',
},
near = {
ar = 'قرب $name',
ast = 'atribuíu a un artista cercanu a $name',
de = 'Künstler aus dem näheren Umfeld von $name',
en = 'attributed to an artist close to $name',
fa = 'منتسب به یک هنرمند نزدیک به $name',
fr = 'attribué à un artiste proche $of_name',
it = 'attribuito ad un artista vicino a $name',
nl = 'kunstenaars uit de omgeving van $name',
pt = 'atribuído a um artista próximo de $name',
['zh-hans'] = '归属于与$name相关的艺术家',
['zh-hant'] = '歸屬於與$name相關的藝術家',
},
after = { -- (inspired by)
ar = 'بعد $name',
ast= 'siguidor $of_name',
['be-tarask'] = 'паводле $name',
bn = '$name-এর পর',
ca = 'segons $name',
cs = 'podle $name',
da = 'efter $name',
de = 'nach $name',
en = 'after $name',
eo = 'post $name',
es = 'según $name',
et = 'originaali autor: $name',
fa = 'پس از $name',
fr = 'd’après $name',
hu = '$name után',
it = 'da $name',
mk = 'според $name',
nl = 'naar $name',
pl = 'według $name',
pt = 'após $name',
ro = 'după $name',
ru = 'автор оригинала — $name',
sv = 'efter $name',
['zh-hans'] = '仿$name',
['zh-hant'] = '仿$name',
},
probably = {
ar = 'ربما $name',
ast = 'probablemente $name',
['be-tarask'] = 'імаверна $name',
bn = 'সম্ভবত $name',
ca = 'probablement $name',
cs = 'pravděpodobně $name',
de = 'wahrscheinlich $name',
el = 'πιθανόν $name',
en = 'probably $name',
eo = 'probable $name',
es = 'probable $name',
fa = 'احتمالاً $name',
fr = 'probablement $name',
he = 'כפי הנראה $name',
hu = 'feltehetőleg $name',
it = 'probabilmente $name',
mk = 'веројатно $name',
nl = 'waarschijnlijk $name',
pl = 'prawdopodobnie $name',
pt = 'provavelmente $name',
ru = 'вероятно $name',
sv = 'antagligen $name',
['zh-hans'] = '可能是$name',
['zh-hant'] = '可能是$name',
},
possibly = {
ar = 'يُحتمَل أنه $name',
ast = 'posiblemente $name',
bn = 'যথাসম্ভব $name',
cs = 'možná $name',
de = 'möglicherweise $name',
en = 'possibly $name',
eo = 'eble $name',
es = 'posible $name',
el = 'πιθανόν $name',
fa = 'احتمالاً $name',
fi = 'mahdollisesti $name',
fr = 'peut-être $name',
hu = 'talán $name',
it = 'forse $name',
mk = 'можеби $name',
nl = 'mogelijk $name',
pl = 'być może $name',
pt = 'possivelmente $name',
ro = 'poate $name',
ru = 'возможно $name',
sv = 'möjligen $name',
['zh-hans'] = '或许是$name',
['zh-hant'] = '或許是$name',
},
presumably = { -- see Q18122778
ar = 'يُفترض أنه $name',
ast = 'presumiblemente $name',
['be-tarask'] = 'меркавана $name',
de = 'vermutlich $name',
en = 'presumably $name',
es = 'presumiblemente $name',
fa = 'به احتمال قوی $name',
fi = 'luultavasti $name',
fr = 'présumé $name',
it = 'presumibilmente $name',
mk = 'се претпоставува $name',
nl = 'waarschijnlijk $name',
ru = 'предположительно $name',
pl = 'przypuszczalnie $name',
pt = 'presumivelmente $name',
['zh-hans'] = '大概是$name',
['zh-hant'] = '大概是$name',
},
-- ===========================================================
-- === Language-specific function assembling Chinese names ===
-- ===========================================================
Chinese_name = {
-- functions with following parameters:
-- 1) trad - name in traditional Chinese
-- 2) simp - name in simplified Chinese
-- 3) PY - name using Pinyin romanization
en = function(trad, simp, PY)
if trad == '' then trad = null end
if simp == '' then simp = null end
if PY == '' then PY = null end
if trad and simp and trad ~= simp then
if PY then
return string.format('%s (%s/%s)', PY, simp, trad)
else
return string.format('%s/%s', simp, trad)
end
elseif simp then
if PY then
return string.format('%s (%s)', PY, simp)
else
return simp
end
elseif trad then
if PY then
return string.format('%s (%s)', PY, trad)
else
return trad
end
else
return PY or ''
end
end,
['zh-hans'] = function(trad, simp, PY)
if trad == '' then trad = null end
if simp == '' then simp = null end
if PY == '' then PY = null end
if trad and simp and trad ~= simp then
return string.format('%s (繁体字:%s)', simp, trad)
else
return simp or trad or PY or ''
end
end,
['zh-hant'] = function(trad, simp, PY)
if trad == '' then trad = null end
if simp == '' then simp = null end
if PY == '' then PY = null end
if trad and simp and trad ~= simp then
return string.format('%s (簡體字:%s)', trad, simp)
else
return trad or simp or PY or ''
end
end,
},
-- ==========================================================
-- === Alternative parameter names ===
-- === list of aliases for various 'operation' parameters ===
-- ==========================================================
Aliases = {
attributed = 'attributed to',
bapstismal = 'baptismal',
born = 'birth',
christian = 'baptismal',
circle = 'circle of',
courtesy = 'courtesy name',
given = 'first',
hao = 'chinese pseudonym',
meister = 'master',
older = 'elder',
painter = 'painter of',
school = 'school of',
second = 'middle',
studio = 'studio of',
workshop = 'workshop of',
zi = 'courtesy name',
['(i)'] = 'elder',
['(ii)'] = 'younger',
['d. ä.'] = 'elder',
['d. j.'] = 'younger',
['der ältere'] = 'elder',
['der jüngere'] = 'younger',
["l'Ancien"] = 'elder',
['l’Ancien'] = 'elder',
['le Jeune'] = 'elder',
['the elder'] = 'elder',
['the younger'] = 'younger',
['জন্ম'] = 'birth',
},
}