From: Bartosz Dziewoński Date: Tue, 4 Aug 2015 20:37:26 +0000 (+0200) Subject: mw.widgets.DateInputWidget: Display a translateable placeholder X-Git-Tag: 1.31.0-rc.0~10521^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=09cef2b190f01a88d181e5de44596ad0aa761f88;p=lhc%2Fweb%2Fwiklou.git mw.widgets.DateInputWidget: Display a translateable placeholder The translations are sourced from UploadWizard's messages 'mwe-upwiz-tooltip-date' and 'mwe-upwiz-error-date', minus the ones where the translation was identical to English, there were two different translations, or the translation looked otherwise suspicious. Change-Id: I0db3163cbf2a99616fae4ac993f49c69e9e755ba --- diff --git a/languages/i18n/af.json b/languages/i18n/af.json index 923e65ef00..7a6bc77e65 100644 --- a/languages/i18n/af.json +++ b/languages/i18n/af.json @@ -3052,5 +3052,7 @@ "special-characters-group-devanagari": "Devanagari", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM" } diff --git a/languages/i18n/an.json b/languages/i18n/an.json index 79d4200995..a3d10dc452 100644 --- a/languages/i18n/an.json +++ b/languages/i18n/an.json @@ -2658,5 +2658,7 @@ "special-characters-group-gujarati": "Gujaratí", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Laosiano", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/languages/i18n/ast.json b/languages/i18n/ast.json index c0ccbb332d..f59489d904 100644 --- a/languages/i18n/ast.json +++ b/languages/i18n/ast.json @@ -3361,6 +3361,8 @@ "special-characters-title-endash": "guión curtiu", "special-characters-title-emdash": "guión llargu", "special-characters-title-minus": "signu menos", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "la páxina inda nun esiste", "mw-widgets-titleinput-description-redirect": "redirixir a $1" } diff --git a/languages/i18n/bcl.json b/languages/i18n/bcl.json index 010629d284..1b0e2ed8b9 100644 --- a/languages/i18n/bcl.json +++ b/languages/i18n/bcl.json @@ -2958,5 +2958,7 @@ "expand_templates_remove_comments": "Tanggalon an mga komento", "expand_templates_remove_nowiki": "Pugulan an mga taktak na sa resulta", "expand_templates_generate_xml": "Ipahiling an panlunhay na kahoy nin XML", - "expand_templates_preview": "Patânaw" + "expand_templates_preview": "Patânaw", + "mw-widgets-dateinput-placeholder-day": "TTTT-BB-AA", + "mw-widgets-dateinput-placeholder-month": "TTTT-BB" } diff --git a/languages/i18n/be-tarask.json b/languages/i18n/be-tarask.json index 93ca5fb5eb..88dec3288d 100644 --- a/languages/i18n/be-tarask.json +++ b/languages/i18n/be-tarask.json @@ -3333,5 +3333,7 @@ "special-characters-title-endash": "кароткі працяжнік", "special-characters-title-emdash": "доўгі працяжнік", "special-characters-title-minus": "мінус", + "mw-widgets-dateinput-placeholder-day": "ГГГГ-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "ГГГГ-ММ", "mw-widgets-titleinput-description-new-page": "старонка яшчэ не існуе" } diff --git a/languages/i18n/bg.json b/languages/i18n/bg.json index e931c0dcc2..5f71422fad 100644 --- a/languages/i18n/bg.json +++ b/languages/i18n/bg.json @@ -3032,5 +3032,7 @@ "special-characters-group-khmer": "кхмерски", "special-characters-title-endash": "средно тире", "special-characters-title-emdash": "дълго тире", - "special-characters-title-minus": "знак минус" + "special-characters-title-minus": "знак минус", + "mw-widgets-dateinput-placeholder-day": "ГГГГ-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "ГГГГ-ММ" } diff --git a/languages/i18n/ca.json b/languages/i18n/ca.json index f171f040c8..5f122486e9 100644 --- a/languages/i18n/ca.json +++ b/languages/i18n/ca.json @@ -3409,6 +3409,8 @@ "special-characters-title-endash": "guió curt", "special-characters-title-emdash": "guió llarg", "special-characters-title-minus": "signe menys", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "la pàgina no existeix encara", "mw-widgets-titleinput-description-redirect": "redirigeix a $1" } diff --git a/languages/i18n/cs.json b/languages/i18n/cs.json index 6f15117844..eb515b8e9c 100644 --- a/languages/i18n/cs.json +++ b/languages/i18n/cs.json @@ -3432,6 +3432,8 @@ "special-characters-title-endash": "krátká pomlčka", "special-characters-title-emdash": "dlouhá pomlčka", "special-characters-title-minus": "znaménko minus", + "mw-widgets-dateinput-placeholder-day": "RRRR-MM-DD", + "mw-widgets-dateinput-placeholder-month": "RRRR-MM", "mw-widgets-titleinput-description-new-page": "stránka zatím neexistuje", "mw-widgets-titleinput-description-redirect": "přesměrování na $1" } diff --git a/languages/i18n/cy.json b/languages/i18n/cy.json index b67d4a6f10..20b56244d8 100644 --- a/languages/i18n/cy.json +++ b/languages/i18n/cy.json @@ -3144,5 +3144,7 @@ "special-characters-group-khmer": "Chmereg", "special-characters-title-endash": "heiffen en", "special-characters-title-emdash": "heiffen em", - "special-characters-title-minus": "arwydd minws" + "special-characters-title-minus": "arwydd minws", + "mw-widgets-dateinput-placeholder-day": "BBBB-MM-DD", + "mw-widgets-dateinput-placeholder-month": "BBBB-MM" } diff --git a/languages/i18n/da.json b/languages/i18n/da.json index 0f8b6ce4f1..affb47364f 100644 --- a/languages/i18n/da.json +++ b/languages/i18n/da.json @@ -3208,5 +3208,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "tankestreg", "special-characters-title-emdash": "lang tankestreg", - "special-characters-title-minus": "minustegn" + "special-characters-title-minus": "minustegn", + "mw-widgets-dateinput-placeholder-day": "ÅÅÅÅ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "ÅÅÅÅ-MM" } diff --git a/languages/i18n/de.json b/languages/i18n/de.json index 7b26497f42..b9367f9c8d 100644 --- a/languages/i18n/de.json +++ b/languages/i18n/de.json @@ -3458,6 +3458,8 @@ "special-characters-title-emdash": "Geviertstrich", "special-characters-title-minus": "Minus", "mw-widgets-dateinput-no-date": "Kein Datum ausgewählt", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-TT", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM", "mw-widgets-titleinput-description-new-page": "Seite ist noch nicht vorhanden", "mw-widgets-titleinput-description-redirect": "Weiterleitung nach $1" } diff --git a/languages/i18n/diq.json b/languages/i18n/diq.json index 5db0c35a2a..445e27cb83 100644 --- a/languages/i18n/diq.json +++ b/languages/i18n/diq.json @@ -3192,5 +3192,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "tira kılme", "special-characters-title-emdash": "tira derge", - "special-characters-title-minus": "işaretê kemiye" + "special-characters-title-minus": "işaretê kemiye", + "mw-widgets-dateinput-placeholder-day": "SSSS-AA-RR", + "mw-widgets-dateinput-placeholder-month": "SSSS-AA" } diff --git a/languages/i18n/el.json b/languages/i18n/el.json index d31783817d..cb617702dc 100644 --- a/languages/i18n/el.json +++ b/languages/i18n/el.json @@ -3295,5 +3295,7 @@ "special-characters-group-khmer": "καμποτζιανά", "special-characters-title-endash": "παύλα", "special-characters-title-emdash": "διπλή παύλα", - "special-characters-title-minus": "σύμβολο πλην" + "special-characters-title-minus": "σύμβολο πλην", + "mw-widgets-dateinput-placeholder-day": "ΕΕΕΕ-ΜΜ-ΗΗ", + "mw-widgets-dateinput-placeholder-month": "ΕΕΕΕ-ΜΜ" } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 48ea02cb7b..2633eddd35 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -3806,6 +3806,8 @@ "special-characters-title-emdash": "em dash", "special-characters-title-minus": "minus sign", "mw-widgets-dateinput-no-date": "No date selected", + "mw-widgets-dateinput-placeholder-day": "YYYY-MM-DD", + "mw-widgets-dateinput-placeholder-month": "YYYY-MM", "mw-widgets-titleinput-description-new-page": "page does not exist yet", "mw-widgets-titleinput-description-redirect": "redirect to $1" } diff --git a/languages/i18n/eo.json b/languages/i18n/eo.json index 5b08fa08ec..f86e4e7cfb 100644 --- a/languages/i18n/eo.json +++ b/languages/i18n/eo.json @@ -3402,5 +3402,7 @@ "special-characters-group-khmer": "kmera", "special-characters-title-endash": "mallonga streketo", "special-characters-title-emdash": "longa streketo", - "special-characters-title-minus": "minus-signo" + "special-characters-title-minus": "minus-signo", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-TT", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM" } diff --git a/languages/i18n/es.json b/languages/i18n/es.json index 517b5886bd..7927e7d93a 100644 --- a/languages/i18n/es.json +++ b/languages/i18n/es.json @@ -3485,6 +3485,8 @@ "special-characters-title-emdash": "raya", "special-characters-title-minus": "signo de resta", "mw-widgets-dateinput-no-date": "Ninguna fecha seleccionada", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "la página aún no existe", "mw-widgets-titleinput-description-redirect": "redirigir a $1" } diff --git a/languages/i18n/et.json b/languages/i18n/et.json index bd1233198e..160ed7389e 100644 --- a/languages/i18n/et.json +++ b/languages/i18n/et.json @@ -3377,6 +3377,8 @@ "special-characters-title-endash": "mõttekriips", "special-characters-title-emdash": "pikk mõttekriips", "special-characters-title-minus": "miinusmärk", + "mw-widgets-dateinput-placeholder-day": "AAAA-KK-PP", + "mw-widgets-dateinput-placeholder-month": "AAAA-KK", "mw-widgets-titleinput-description-new-page": "lehekülge pole veel", "mw-widgets-titleinput-description-redirect": "ümbersuunamine leheküljele \"$1\"" } diff --git a/languages/i18n/fi.json b/languages/i18n/fi.json index 5ce31d9638..e85c816bdb 100644 --- a/languages/i18n/fi.json +++ b/languages/i18n/fi.json @@ -3413,6 +3413,8 @@ "special-characters-title-endash": "ajatusviiva", "special-characters-title-emdash": "pitkä ajatusviiva", "special-characters-title-minus": "miinusmerkki", + "mw-widgets-dateinput-placeholder-day": "VVVV-KK-PP", + "mw-widgets-dateinput-placeholder-month": "VVVV-KK", "mw-widgets-titleinput-description-new-page": "sivua ei ole olemassa vielä", "mw-widgets-titleinput-description-redirect": "ohjaus kohteeseen $1" } diff --git a/languages/i18n/fo.json b/languages/i18n/fo.json index 319c398a88..230c12db40 100644 --- a/languages/i18n/fo.json +++ b/languages/i18n/fo.json @@ -2387,5 +2387,7 @@ "duration-centuries": "$1 {{PLURAL:$1|øld|øldir}}", "expand_templates_output": "Úrslit", "expand_templates_ok": "Í lagi", - "expand_templates_preview": "Forskoðan" + "expand_templates_preview": "Forskoðan", + "mw-widgets-dateinput-placeholder-day": "ÁÁÁÁ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "ÁÁÁÁ-MM" } diff --git a/languages/i18n/fr.json b/languages/i18n/fr.json index 1d780053dc..b2ffc9a281 100644 --- a/languages/i18n/fr.json +++ b/languages/i18n/fr.json @@ -3575,6 +3575,8 @@ "special-characters-title-endash": "tiret demi-cadratin", "special-characters-title-emdash": "tiret cadratin", "special-characters-title-minus": "signe moins", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-JJ", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "la page n’existe pas encore", "mw-widgets-titleinput-description-redirect": "redirection vers $1" } diff --git a/languages/i18n/frp.json b/languages/i18n/frp.json index 2c94b4737b..7f610674f5 100644 --- a/languages/i18n/frp.json +++ b/languages/i18n/frp.json @@ -2885,5 +2885,7 @@ "special-characters-group-khmer": "C’mère", "special-characters-title-endash": "terèt anglès", "special-characters-title-emdash": "terèt èm", - "special-characters-title-minus": "segno muens" + "special-characters-title-minus": "segno muens", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-JJ", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/languages/i18n/gl.json b/languages/i18n/gl.json index 377f1f24fe..d42402ffaf 100644 --- a/languages/i18n/gl.json +++ b/languages/i18n/gl.json @@ -3371,6 +3371,8 @@ "special-characters-title-endash": "guión", "special-characters-title-emdash": "raia", "special-characters-title-minus": "signo menos", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "a páxina aínda non existe", "mw-widgets-titleinput-description-redirect": "redirección cara a $1" } diff --git a/languages/i18n/gsw.json b/languages/i18n/gsw.json index f87ed5244b..6302baa3ef 100644 --- a/languages/i18n/gsw.json +++ b/languages/i18n/gsw.json @@ -2942,5 +2942,7 @@ "special-characters-group-devanagari": "Devanagari", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-TT", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM" } diff --git a/languages/i18n/hr.json b/languages/i18n/hr.json index 8a0887e801..343da3d912 100644 --- a/languages/i18n/hr.json +++ b/languages/i18n/hr.json @@ -3102,5 +3102,7 @@ "special-characters-group-thai": "Tajlandski (tajski) znakovi", "special-characters-group-lao": "laoski znakovi", "special-characters-group-khmer": "kmerski", + "mw-widgets-dateinput-placeholder-day": "GGGG-MM-DD", + "mw-widgets-dateinput-placeholder-month": "GGGG-MM", "mw-widgets-titleinput-description-redirect": "preusmjeravanje na $1" } diff --git a/languages/i18n/hsb.json b/languages/i18n/hsb.json index 38b4f8d007..6436f232ca 100644 --- a/languages/i18n/hsb.json +++ b/languages/i18n/hsb.json @@ -3205,5 +3205,7 @@ "special-characters-group-khmer": "Khmeršćina", "special-characters-title-endash": "krótka ležaca smužka", "special-characters-title-emdash": "dołha ležaca smužka", - "special-characters-title-minus": "minusowe znamjeÅ¡ko" + "special-characters-title-minus": "minusowe znamjeÅ¡ko", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-TT", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM" } diff --git a/languages/i18n/hu.json b/languages/i18n/hu.json index 5b5c92143e..b43727988e 100644 --- a/languages/i18n/hu.json +++ b/languages/i18n/hu.json @@ -3383,6 +3383,8 @@ "special-characters-title-emdash": "hosszú kötőjel", "special-characters-title-minus": "minusz jel", "mw-widgets-dateinput-no-date": "Nincs kiválasztott dátum", + "mw-widgets-dateinput-placeholder-day": "ÉÉÉÉ-HH-NN", + "mw-widgets-dateinput-placeholder-month": "ÉÉÉÉ-HH", "mw-widgets-titleinput-description-new-page": "a lap még nem létezik", "mw-widgets-titleinput-description-redirect": "átirányítás ide: $1" } diff --git a/languages/i18n/ia.json b/languages/i18n/ia.json index 7c88e3dc9a..51f6b4fa4c 100644 --- a/languages/i18n/ia.json +++ b/languages/i18n/ia.json @@ -3264,5 +3264,7 @@ "special-characters-group-thai": "Thailandese", "special-characters-group-lao": "Laotiano", "special-characters-group-khmer": "Cambodgiano", - "special-characters-title-minus": "signo minus" + "special-characters-title-minus": "signo minus", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/languages/i18n/id.json b/languages/i18n/id.json index 9a0c69c3d1..83f90fab21 100644 --- a/languages/i18n/id.json +++ b/languages/i18n/id.json @@ -3332,5 +3332,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "en dash", "special-characters-title-emdash": "em dash", - "special-characters-title-minus": "tanda kurang" + "special-characters-title-minus": "tanda kurang", + "mw-widgets-dateinput-placeholder-day": "TTTT-BB-HH", + "mw-widgets-dateinput-placeholder-month": "TTTT-BB" } diff --git a/languages/i18n/ilo.json b/languages/i18n/ilo.json index 53653c4871..0fc53ab0ba 100644 --- a/languages/i18n/ilo.json +++ b/languages/i18n/ilo.json @@ -3243,6 +3243,8 @@ "special-characters-title-endash": "en dash", "special-characters-title-emdash": "em dash", "special-characters-title-minus": "senial a panagkissay", + "mw-widgets-dateinput-placeholder-day": "TTTT-BB-AA", + "mw-widgets-dateinput-placeholder-month": "TTTT-BB", "mw-widgets-titleinput-description-new-page": "awan pay ti panid", "mw-widgets-titleinput-description-redirect": "ibaw-ing iti $1" } diff --git a/languages/i18n/it.json b/languages/i18n/it.json index b623469f01..82c6acc11f 100644 --- a/languages/i18n/it.json +++ b/languages/i18n/it.json @@ -3449,6 +3449,8 @@ "special-characters-title-endash": "lineetta enne", "special-characters-title-emdash": "lineetta emme", "special-characters-title-minus": "segno meno", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-GG", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "questa pagina non esiste ancora", "mw-widgets-titleinput-description-redirect": "reindirizzamento a $1" } diff --git a/languages/i18n/ka.json b/languages/i18n/ka.json index a8c052be1c..58c5ed70d7 100644 --- a/languages/i18n/ka.json +++ b/languages/i18n/ka.json @@ -3415,6 +3415,8 @@ "special-characters-title-endash": "ტირე", "special-characters-title-emdash": "გრძელი ტირე", "special-characters-title-minus": "მინუსის ნიშანი", + "mw-widgets-dateinput-placeholder-day": "წწწწ-თთ-დდ", + "mw-widgets-dateinput-placeholder-month": "წწწწ-თთ", "mw-widgets-titleinput-description-new-page": "გვერდი ჯერ არ არსებობს", "mw-widgets-titleinput-description-redirect": "გადამისამართება $1-ზე" } diff --git a/languages/i18n/kk-cyrl.json b/languages/i18n/kk-cyrl.json index de035f1078..a3d5478888 100644 --- a/languages/i18n/kk-cyrl.json +++ b/languages/i18n/kk-cyrl.json @@ -3361,6 +3361,8 @@ "special-characters-title-endash": "дефис", "special-characters-title-emdash": "сызықша", "special-characters-title-minus": "минус белгісі", + "mw-widgets-dateinput-placeholder-day": "ЖЖЖЖ-АА-КК", + "mw-widgets-dateinput-placeholder-month": "ЖЖЖЖ-АА", "mw-widgets-titleinput-description-new-page": "бет жоқ екен", "mw-widgets-titleinput-description-redirect": "$1 дегенге бағыттату" } diff --git a/languages/i18n/lb.json b/languages/i18n/lb.json index 7784783a11..c815397abd 100644 --- a/languages/i18n/lb.json +++ b/languages/i18n/lb.json @@ -3225,6 +3225,8 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-minus": "Minus-Zeechen", "mw-widgets-dateinput-no-date": "Keen Datum erausgesicht", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM", "mw-widgets-titleinput-description-new-page": "Säit gëtt et nach net", "mw-widgets-titleinput-description-redirect": "viruleeden op $1" } diff --git a/languages/i18n/li.json b/languages/i18n/li.json index 6fd2b5ec98..896496b60d 100644 --- a/languages/i18n/li.json +++ b/languages/i18n/li.json @@ -2667,5 +2667,7 @@ "special-characters-group-devanagari": "Devanagari", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Cambodzjaans" + "special-characters-group-khmer": "Cambodzjaans", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM" } diff --git a/languages/i18n/lus.json b/languages/i18n/lus.json index 88cae64b8b..1345043eca 100644 --- a/languages/i18n/lus.json +++ b/languages/i18n/lus.json @@ -1459,5 +1459,7 @@ "feedback-message": "Thu", "feedback-cancel": "Sûtna", "searchsuggest-search": "Zawnna", - "searchsuggest-containing": "hemi thu telna hi..." + "searchsuggest-containing": "hemi thu telna hi...", + "mw-widgets-dateinput-placeholder-day": "KKKK-TT-NN", + "mw-widgets-dateinput-placeholder-month": "KKKK-TT" } diff --git a/languages/i18n/mk.json b/languages/i18n/mk.json index 214fd0b94a..82d796e834 100644 --- a/languages/i18n/mk.json +++ b/languages/i18n/mk.json @@ -3513,6 +3513,8 @@ "special-characters-title-emdash": "тире", "special-characters-title-minus": "минус", "mw-widgets-dateinput-no-date": "Немате одбрано датум", + "mw-widgets-dateinput-placeholder-day": "ГГГГ-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "ГГГГ-ММ", "mw-widgets-titleinput-description-new-page": "страницата сè уште не постои", "mw-widgets-titleinput-description-redirect": "пренасочување кон $1" } diff --git a/languages/i18n/mt.json b/languages/i18n/mt.json index 326496371c..361049cd94 100644 --- a/languages/i18n/mt.json +++ b/languages/i18n/mt.json @@ -3150,5 +3150,7 @@ "special-characters-group-devanagari": "Devanagari", "special-characters-group-thai": "Tajlandiż", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "SSSS-XX-Ä Ä ", + "mw-widgets-dateinput-placeholder-month": "SSSS-XX" } diff --git a/languages/i18n/nb.json b/languages/i18n/nb.json index 0f1aad03bd..630cb5b865 100644 --- a/languages/i18n/nb.json +++ b/languages/i18n/nb.json @@ -3373,5 +3373,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "tankestrek", "special-characters-title-emdash": "lang tankestrek", - "special-characters-title-minus": "minustegn" + "special-characters-title-minus": "minustegn", + "mw-widgets-dateinput-placeholder-day": "ÅÅÅÅ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "ÅÅÅÅ-MM" } diff --git a/languages/i18n/nl.json b/languages/i18n/nl.json index 3437e414e2..4fe0d8e64e 100644 --- a/languages/i18n/nl.json +++ b/languages/i18n/nl.json @@ -3430,6 +3430,8 @@ "special-characters-title-endash": "liggend streepje", "special-characters-title-emdash": "gedachtenstreepje", "special-characters-title-minus": "minteken", + "mw-widgets-dateinput-placeholder-day": "JJJJ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "JJJJ-MM", "mw-widgets-titleinput-description-new-page": "pagina bestaat nog niet", "mw-widgets-titleinput-description-redirect": "doorverwijzing naar $1" } diff --git a/languages/i18n/nn.json b/languages/i18n/nn.json index 542b26e99c..ab7404e17a 100644 --- a/languages/i18n/nn.json +++ b/languages/i18n/nn.json @@ -3047,5 +3047,7 @@ "special-characters-group-bangla": "Bengali", "special-characters-group-telugu": "Telugu", "special-characters-group-sinhala": "Singalesisk", - "special-characters-group-gujarati": "Gujarati" + "special-characters-group-gujarati": "Gujarati", + "mw-widgets-dateinput-placeholder-day": "ÅÅÅÅ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "ÅÅÅÅ-MM" } diff --git a/languages/i18n/pl.json b/languages/i18n/pl.json index a63fa5ed3d..930b78c8b7 100644 --- a/languages/i18n/pl.json +++ b/languages/i18n/pl.json @@ -3445,6 +3445,8 @@ "special-characters-title-emdash": "pauza", "special-characters-title-minus": "minus", "mw-widgets-dateinput-no-date": "Nie wybrano daty", + "mw-widgets-dateinput-placeholder-day": "RRRR-MM-DD", + "mw-widgets-dateinput-placeholder-month": "RRRR-MM", "mw-widgets-titleinput-description-new-page": "strona jeszcze nie istnieje", "mw-widgets-titleinput-description-redirect": "przekierowanie do $1" } diff --git a/languages/i18n/pms.json b/languages/i18n/pms.json index 0536304e7e..9b3450e03b 100644 --- a/languages/i18n/pms.json +++ b/languages/i18n/pms.json @@ -3344,5 +3344,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "tratin en", "special-characters-title-emdash": "tratin em", - "special-characters-title-minus": "segn meno" + "special-characters-title-minus": "segn meno", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/languages/i18n/pt-br.json b/languages/i18n/pt-br.json index 459e3e5db3..613a05e28d 100644 --- a/languages/i18n/pt-br.json +++ b/languages/i18n/pt-br.json @@ -3386,5 +3386,7 @@ "special-characters-group-khmer": "Cambojano", "special-characters-title-endash": "traço", "special-characters-title-emdash": "travessão", - "special-characters-title-minus": "sinal de menos" + "special-characters-title-minus": "sinal de menos", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/languages/i18n/pt.json b/languages/i18n/pt.json index 6701aed506..9233f638e7 100644 --- a/languages/i18n/pt.json +++ b/languages/i18n/pt.json @@ -3365,6 +3365,8 @@ "special-characters-title-endash": "hífen", "special-characters-title-emdash": "travessão", "special-characters-title-minus": "sinal de subtração", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-DD", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM", "mw-widgets-titleinput-description-new-page": "a página ainda não existe.", "mw-widgets-titleinput-description-redirect": "redirecionar para $1" } diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 865f3b8572..e881aa7032 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -3977,6 +3977,8 @@ "special-characters-title-emdash": "Title tooltip for the em dash character (—); See https://en.wikipedia.org/wiki/Dash", "special-characters-title-minus": "Title tooltip for the minus sign character (−), not to be confused with a hyphen", "mw-widgets-dateinput-no-date": "Label of a date input field when no date has been selected.", + "mw-widgets-dateinput-placeholder-day": "[[File:DateInputWidget active, empty.png|frame|Screenshot]]\nPlaceholder displayed in a date input field when it's empty, representing a date format with 4 digits for year, 2 digits for month, and 2 digits for day, separated with hyphens. This should be uppercase, if possible, and must not include any additional explanations. If there is no good way to translate it, make this message blank.", + "mw-widgets-dateinput-placeholder-month": "Placeholder displayed in a date input field when it's empty, representing a date format with 4 digits for year and 2 digits for month, separated with hyphens (without a day). This should be uppercase, if possible, and must not include any additional explanations. If there is no good way to translate it, make this message blank.", "mw-widgets-titleinput-description-new-page": "Description label for a new page in the title input widget.", "mw-widgets-titleinput-description-redirect": "Description label for a redirect in the title input widget." } diff --git a/languages/i18n/ro.json b/languages/i18n/ro.json index 2f012537c8..f3eae63213 100644 --- a/languages/i18n/ro.json +++ b/languages/i18n/ro.json @@ -3367,6 +3367,8 @@ "special-characters-title-emdash": "linie de pauză (em dash)", "special-characters-title-minus": "semnul minus", "mw-widgets-dateinput-no-date": "Nicio dată selectată", + "mw-widgets-dateinput-placeholder-day": "AAAA-LL-ZZ", + "mw-widgets-dateinput-placeholder-month": "AAAA-LL", "mw-widgets-titleinput-description-new-page": "pagina nu există încă", "mw-widgets-titleinput-description-redirect": "redirecționare către $1" } diff --git a/languages/i18n/ru.json b/languages/i18n/ru.json index fa19c15f8c..99ae6d5840 100644 --- a/languages/i18n/ru.json +++ b/languages/i18n/ru.json @@ -3509,6 +3509,8 @@ "special-characters-title-endash": "среднее тире", "special-characters-title-emdash": "длинное тире", "special-characters-title-minus": "знак минус", + "mw-widgets-dateinput-placeholder-day": "ГГГГ-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "ГГГГ-ММ", "mw-widgets-titleinput-description-new-page": "страница ещё не существует", "mw-widgets-titleinput-description-redirect": "перенаправление на $1" } diff --git a/languages/i18n/rue.json b/languages/i18n/rue.json index 98ffb27dcb..8946049efc 100644 --- a/languages/i18n/rue.json +++ b/languages/i18n/rue.json @@ -2945,5 +2945,7 @@ "special-characters-group-gujarati": "Ґуджараті", "special-characters-group-thai": "Тайськы", "special-characters-group-lao": "Лаоськы", - "special-characters-group-khmer": "Кгмерськы" + "special-characters-group-khmer": "Кгмерськы", + "mw-widgets-dateinput-placeholder-day": "РРРР-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "РРРР-ММ" } diff --git a/languages/i18n/sk.json b/languages/i18n/sk.json index e6b5f972eb..5a4c68805d 100644 --- a/languages/i18n/sk.json +++ b/languages/i18n/sk.json @@ -3177,5 +3177,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "pomlčka", "special-characters-title-emdash": "dlhá pomlčka", - "special-characters-title-minus": "mínus" + "special-characters-title-minus": "mínus", + "mw-widgets-dateinput-placeholder-day": "RRRR-MM-DD", + "mw-widgets-dateinput-placeholder-month": "RRRR-MM" } diff --git a/languages/i18n/sl.json b/languages/i18n/sl.json index f611256529..e68324451c 100644 --- a/languages/i18n/sl.json +++ b/languages/i18n/sl.json @@ -3358,6 +3358,8 @@ "special-characters-title-emdash": "dolgi pomiÅ¡ljaj", "special-characters-title-minus": "znak za minus", "mw-widgets-dateinput-no-date": "Datum ni izbran", + "mw-widgets-dateinput-placeholder-day": "LLLL-MM-DD", + "mw-widgets-dateinput-placeholder-month": "LLLL-MM", "mw-widgets-titleinput-description-new-page": "stran Å¡e ne obstaja", "mw-widgets-titleinput-description-redirect": "preusmeritev na $1" } diff --git a/languages/i18n/sq.json b/languages/i18n/sq.json index 25606f58e4..d26b0524eb 100644 --- a/languages/i18n/sq.json +++ b/languages/i18n/sq.json @@ -2767,5 +2767,7 @@ "special-characters-group-gujarati": "Guxharati", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "VVVV-MM-DD", + "mw-widgets-dateinput-placeholder-month": "VVVV-MM" } diff --git a/languages/i18n/sr-ec.json b/languages/i18n/sr-ec.json index 0cd1692347..5456efb627 100644 --- a/languages/i18n/sr-ec.json +++ b/languages/i18n/sr-ec.json @@ -3389,6 +3389,8 @@ "special-characters-group-thai": "тајландски", "special-characters-group-lao": "лаоски", "special-characters-group-khmer": "кмерски", + "mw-widgets-dateinput-placeholder-day": "ГГГГ-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "ГГГГ-ММ", "mw-widgets-titleinput-description-new-page": "страница још увек не постоји", "mw-widgets-titleinput-description-redirect": "преусмерава на $1" } diff --git a/languages/i18n/sr-el.json b/languages/i18n/sr-el.json index 3c225e51d6..f893bce58c 100644 --- a/languages/i18n/sr-el.json +++ b/languages/i18n/sr-el.json @@ -3338,6 +3338,8 @@ "special-characters-group-thai": "tajlandski", "special-characters-group-lao": "laoski", "special-characters-group-khmer": "kmerski", + "mw-widgets-dateinput-placeholder-day": "GGGG-MM-DD", + "mw-widgets-dateinput-placeholder-month": "GGGG-MM", "mw-widgets-titleinput-description-new-page": "stranica joÅ¡ uvek ne postoji", "mw-widgets-titleinput-description-redirect": "preusmerava na $1" } diff --git a/languages/i18n/sv.json b/languages/i18n/sv.json index 0b23105158..790ed8f2ba 100644 --- a/languages/i18n/sv.json +++ b/languages/i18n/sv.json @@ -3422,6 +3422,8 @@ "special-characters-title-emdash": "lÃ¥ngt tankstreck", "special-characters-title-minus": "minustecken", "mw-widgets-dateinput-no-date": "Inget valt datum", + "mw-widgets-dateinput-placeholder-day": "ÅÅÅÅ-MM-DD", + "mw-widgets-dateinput-placeholder-month": "ÅÅÅÅ-MM", "mw-widgets-titleinput-description-new-page": "sidan existerar inte ännu", "mw-widgets-titleinput-description-redirect": "omdirigerar till $1" } diff --git a/languages/i18n/tl.json b/languages/i18n/tl.json index 338fa0bb68..5ae0a43025 100644 --- a/languages/i18n/tl.json +++ b/languages/i18n/tl.json @@ -3025,5 +3025,7 @@ "special-characters-group-devanagari": "Devanagari", "special-characters-group-thai": "Thai", "special-characters-group-lao": "Lao", - "special-characters-group-khmer": "Khmer" + "special-characters-group-khmer": "Khmer", + "mw-widgets-dateinput-placeholder-day": "TTTT-BB-AA", + "mw-widgets-dateinput-placeholder-month": "TTTT-BB" } diff --git a/languages/i18n/uk.json b/languages/i18n/uk.json index 3daefe5e4a..914893dcac 100644 --- a/languages/i18n/uk.json +++ b/languages/i18n/uk.json @@ -3562,6 +3562,8 @@ "special-characters-title-emdash": "довге тире", "special-characters-title-minus": "мінус", "mw-widgets-dateinput-no-date": "Дати не вибрано", + "mw-widgets-dateinput-placeholder-day": "РРРР-ММ-ДД", + "mw-widgets-dateinput-placeholder-month": "РРРР-ММ", "mw-widgets-titleinput-description-new-page": "сторінка ще не існує", "mw-widgets-titleinput-description-redirect": "перенаправлення на $1" } diff --git a/languages/i18n/vec.json b/languages/i18n/vec.json index df2b2bae9e..8f009cafcf 100644 --- a/languages/i18n/vec.json +++ b/languages/i18n/vec.json @@ -2890,5 +2890,7 @@ "special-characters-group-khmer": "Khmer", "special-characters-title-endash": "lineeta ene", "special-characters-title-emdash": "lineeta eme", - "special-characters-title-minus": "segno meno" + "special-characters-title-minus": "segno meno", + "mw-widgets-dateinput-placeholder-day": "AAAA-MM-GG", + "mw-widgets-dateinput-placeholder-month": "AAAA-MM" } diff --git a/resources/Resources.php b/resources/Resources.php index 3fad66e578..45240a7ebb 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -1804,6 +1804,8 @@ return array( ), 'messages' => array( 'mw-widgets-dateinput-no-date', + 'mw-widgets-dateinput-placeholder-day', + 'mw-widgets-dateinput-placeholder-month', 'mw-widgets-titleinput-description-new-page', 'mw-widgets-titleinput-description-redirect', ), diff --git a/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js b/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js index 9771e02f3c..8d952e5a76 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js @@ -71,14 +71,30 @@ * while the widget is inactive. Should be as unambiguous as possible (for example, prefer to * spell out the month, rather than rely on the order), even if that makes it longer. When not * given, the default is language-specific. + * @cfg {string} [placeholder] User-visible date format string displayed in the textual input + * field when it's empty. Should be the same as `inputFormat`, but translated to the user's + * language. When not given, defaults to a translated version of 'YYYY-MM-DD' or 'YYYY-MM', + * depending on `precision`. */ mw.widgets.DateInputWidget = function MWWDateInputWidget( config ) { // Config initialization - config = config || {}; + config = $.extend( { precision: 'day' }, config ); + + var placeholder; + if ( config.placeholder ) { + placeholder = config.placeholder; + } else if ( config.inputFormat ) { + // We have no way to display a translated placeholder for custom formats + placeholder = ''; + } else { + // Messages: mw-widgets-dateinput-placeholder-day, mw-widgets-dateinput-placeholder-month + placeholder = mw.msg( 'mw-widgets-dateinput-placeholder-' + config.precision ); + } // Properties (must be set before parent constructor, which calls #setValue) this.handle = new OO.ui.LabelWidget(); this.textInput = new OO.ui.TextInputWidget( { + placeholder: placeholder, validate: this.validateDate.bind( this ) } ); this.calendar = new mw.widgets.CalendarWidget( {