Module:I18n/name

From Dharmawiki
Jump to navigation Jump to search

--[===[ 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', --[===[ first = {, ast = 'nome', bn = 'প্রথম নাম', ca = 'nom', de = 'Vorname', en = 'given name', fa = 'نام کوچک', fr = 'prénom', hu = 'keresztnév', it = 'prenome', mk = 'име', nl = 'voornaam', pl = 'Imię', ro = 'prenume', sl = 'ime', sv = 'förnamn', vi = 'tên chính', zh = '名字', ['zh-hans'] = '名字', ['zh-hant'] = '名字', }, ]===] middle = { ast = 'segundu apellíu', bn = 'মধ্য নাম', ca = 'segon nom', de = 'zweiter Vorname', en = 'middle name', fr = 'deuxième prénom', hu = 'második keresztnév', mk = 'средно име', it = 'secondo nome', nl = 'tweede voornaam', pl = 'drugie imię', ro = 'nume mijlociu', sl = 'drugo ime', sv = 'mellannamn', vi = 'tên đậm', zh = '中间名字', ['zh-hans'] = '中间名字', ['zh-hant'] = '中間名字', }, last = { ast = 'apellíu', 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', sl = 'priimek', sv = 'efternamn', vi = 'họ', zh = '姓', ['zh-hans'] = '姓', ['zh-hant'] = '姓', }, birth = { ast = 'nome de nacimientu', 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 = 'родено име', nds = 'Geboortsnaam', nl = 'geboren als', pl = 'imię chrzestne', ro = 'nume la naștere', ru = 'имя при рождении', sl = 'rojstno ime', sv = 'födelsenamn', vi = 'tên khai sinh', zh = '出生名', ['zh-hans'] = '出生名', ['zh-hant'] = '出生名', }, baptismal = { ast = 'nome de pila', bn = 'দীক্ষাগুরু নাম', ca = 'nom baptismal', de = 'Taufname', en = 'baptismal name', fr = 'nom de baptème', ga = 'ainm baiste', hu = 'keresztelési név', it = 'nome di battesimo', mk = 'крштално име', pt = 'nome de batismo', sv = 'döpelsenamn', vi = 'tên thánh', zh = '教名', ['zh-hans'] = '洗礼名', ['zh-hans'] = '洗禮名', }, legal = { ast = 'nome llegal', bn = 'আইনি নাম', ca = 'nom legal', de = 'offizieller Name', en = 'legal name', es = 'nombre legal', fa = 'نام قانونی', fr = 'nom légal', ga = 'ainm dlíthiúil', hu = 'hivatalos név', it = 'nome legale', mk = 'заведено име', nds = 'Naam na’n Utwies', nl = 'wettige naam', pl = 'legalne imię', pt = 'nome legal', ro = 'nume legal', sl = 'uradno ime', sv = 'borgerligt namn', vi = 'tên giấy tờ', zh = '合法名称', ['zh-hans'] = '合法名称', ['zh-hant'] = '合法名稱', }, chinese = { ast = 'apellíu y nome', bn = 'প্রথম ও শেষ নাম', ca = 'nom i cognom', de = 'Name und Vorname', en = 'surname and name', fa = 'نام خانوادگی و نام کوچک', fr = 'nom et prénom', it = 'cognome e nome', hu = 'család és utónév', mk = 'презиме и име', nl = 'naam en voornaam', ru = 'фамилия и имя', sl = 'priimek in ime', sv = 'kinesiska namn', zh = '姓名', ['zh-hans'] = '姓名', ['zh-hans'] = '姓名', }, artist = { ast = 'nome artísticu', 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 = '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 = '笔名', ['zh-hans'] = '笔名', }, pseudonym = 'Q61002', ['chinese pseudonym'] = { ast = 'seudónimu chinu', bn = 'ছদ্মনাম', en = 'pseudonym', de = 'Pseudonym', fr = 'pseudonyme', mk = 'псевдоним', it = 'pseudonimo cinese', nl = 'pseudoniem', ru = 'прозвание', sl = 'psevdonim', sv = 'kinesiska stilnamn', zh = '号', ['zh-hans'] = '号', ['zh-hant'] = '號', }, ['courtesy name'] = { ast = 'nome de cortesía chinu', bn = 'সৌজন্য নাম', ca = 'nom de cortesia', de = 'Hofname', en = 'courtesy name', mk = 'куртоазно име', fr = 'prénom social', it = 'nome di cortesia', nl = 'omgangsnaam', sv = 'kinesiska stilnamn', zh = '字', ['zh-hans'] = '字', }, -- ============================================================ --[==[ 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 = { ast = '$name el Vieyu', an = '$name o Biello', 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 = '$name id.', 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', }, younger = { ast = '$name el Nuevu', 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 = '$name ifjabb', 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', }, master = { 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', }, ['master of'] = { 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', }, ['circle of'] = { ast = 'círculu $of_name', bn = '$name-এর বৃত্ত', ca = 'cercle $of_name', de = 'Kreis d. $name', el = '$name (περίγυρος)', en = 'circle of $name', es = 'círculo de $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', }, ['school of'] = { ast = 'escuela $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', ru = 'из школы $name', sv = 'skola av $name', }, ['studio of'] = { ast = 'estudiu $of_name', bn = '$name-এর স্টুডিও', de = 'Studio von $name', en = 'studio of $name', fr = 'studio $of_name', mk = 'студио на $name', pl = '$name (lub jego studio)', }, ['workshop of'] = { ast = 'taller $of_name', bn = '$name-এর কর্মশালা', ca = 'taller $of_name', de = 'Atelier/Werkstatt von $name', en = 'workshop of $name', es = 'taller de $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)', sv = 'verkstad av $name', }, ['or workshop'] = { ast = '$name o taller', bn = '$name বা কর্মশালা', de = '$name oder Werkstatt', en = '$name or workshop', es = '$name o taller', fr = '$name ou atelier', it = '$name o bottega', mk = '$name или ателје', nl = '$name of atelier', pl = '$name lub jego warsztat', sv = '$name eller verkstad', }, ['and workshop'] = { ast = '$name y taller', bn = '$name ও কর্মশালা', de = '$name und Werkstatt', en = '$name and workshop', es = '$name y taller', fr = '$name et atelier', it = '$name e bottega', mk = '$name и ателје', nl = '$name en atelier', pl = '$name i jego warsztat', sv = '$name eller verkstad', }, ['and/or workshop'] = { ast = '$name y/o taller', bn = '$name ও/বা কর্মশালা', de = '$name und/oder Werkstatt', en = '$name and/or workshop', es = '$name y/o taller', fr = '$name et/ou atelier', it = '$name e/o bottega', mk = '$name и/или ателје', nl = '$name en/of atelier', pl = '$name i/lub jego warsztat', vi = '$name và/hoặc xưởng', }, ['follower of'] = { ast = 'siguidor $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', mk = 'следбеник на $name', nl = 'navolger van $name', pl = 'naśladowca $name', pt = 'seguidor de $name', ru = 'последователь $name', }, ['or follower'] = { 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', sv = '$name eller följare', vi = '$name hoặc môn đồ', }, ['manner of'] = { ast = 'manera $of_name', bn = '$name-এর রীতি', ca = 'manera $of_name', de = 'Stil von $name', en = 'manner of $name', et = 'kunstnik, kelle maneeri on järgitud: $name', fa = 'شیوهٔ $name', --[==[ '$name شیوه ای از', ]==] fr = 'manière $of_name', hu = '$name stílusa', it = 'maniera di $name', mk = 'во стилот на $name', nl = 'trant van $name', pl = 'w stylu $name', ro = 'maniera lui $name', ru = 'в стиле $name', sv = 'sättet av $name', }, ['painter of'] = { 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', sv = 'målare av $name', }, ['attributed to'] = { ast = 'atribuíu a $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', }, ['formerly attributed to'] = { 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', 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', }, near = { ast = 'atribuíu a un artista cercanu a $name', en = 'attributed to an artist close to $name', de = 'Künstler aus dem näheren Umfeld von $name', fr = 'attribué à un artiste proche $of_name', mk = 'припишано на уметник близок со $name' }, after = { -- (inspired by) ast= 'siguidor $of_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 = 'dopo $name', mk = 'според $name', nl = 'naar $name', pl = 'według $name', pt = 'após $name', ro = 'după $name', ru = 'автор оригинала — $name', sv = 'efter $name', }, probably = { ast = 'probablemente $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 = 'probabile $name', mk = 'веројатно $name', nl = 'waarschijnlijk $name', pl = 'prawdopodobnie $name', pt = 'provavelmente $name', ru = 'вероятно $name', sv = 'antagligen $name', }, possibly = { ast = 'posiblemente $name', bn = 'যথাসম্ভব $name', cs = 'možná $name', de = 'möglicherweise $name', en = 'possibly $name', eo = 'eble $name', el = 'πιθανόν $name', fa = 'احتمالاً $name', fr = 'peut-être $name', hu = 'talán $name', mk = 'можеби $name', nl = 'mogelijk $name', pl = 'być może $name', pt = 'possivelmente $name', ro = 'poate $name', ru = 'возможно $name', sv = 'möjligen $name', }, presumably = { -- see Q18122778 ast = 'presumiblemente $name', de = 'vermutlich $name', en = 'presumably $name', fr = 'présumé $name', it = 'presumibilmente $name', mk = 'се претпоставува $name', ru = 'предположительно $name', pl = 'przypuszczalnie $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', }, }