i18n: localize the date format placeholders
For instance, when using French, display the date input placeholder as "jj/mm/aaaa" (instead of "dd/mm/yyyy"). This doesn't change the way dates are actually parsed – only what is displayed to the user changes.
This commit is contained in:
parent
c9382973ca
commit
78714069f0
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Deiziad deraouiñ",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Gallout a rit diuzañ 4 miz d'ar muiañ",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "dd/vv/bbbb"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Ere embann ar sontadeg \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Data d'inici",
|
||||
"Y-m-d": "Y-m-d",
|
||||
"You can select at most 4 months": "Pots seleccionar com a màxim 4 mesos",
|
||||
"yyyy-mm-dd": "yyyy-mm-dd"
|
||||
"yyyy-mm-dd": "yyyy-mm-dd",
|
||||
"yyyy-mm-dd-for-humans": "aaaa-mm-dd"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Edita l'enllaç de l'enquesta \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Startdatum",
|
||||
"Y-m-d": "d-m-Y",
|
||||
"You can select at most 4 months": "Es können maximal 4 Monate ausgewählt werden",
|
||||
"yyyy-mm-dd": "dd-mm-yyyy"
|
||||
"yyyy-mm-dd": "dd-mm-yyyy",
|
||||
"yyyy-mm-dd-for-humans": "tt-mm-jjjj"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Link für die Abstimmung \"%s\" bearbeiten",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Start date",
|
||||
"Y-m-d": "Y-m-d",
|
||||
"You can select at most 4 months": "You can select at most 4 months",
|
||||
"yyyy-mm-dd": "yyyy-mm-dd"
|
||||
"yyyy-mm-dd": "yyyy-mm-dd",
|
||||
"yyyy-mm-dd-for-humans": "yyyy-mm-dd"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Edit link for poll \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Fecha de Inicio",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Puede seleccionar como máximo 4 meses",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "dd/mm/aaaa"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Enlace para edición de encuesta \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Date de début",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Vous pouvez sélectionner au maximum 4 mois",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "jj/mm/aaaa"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Lien d'édition du sondage \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Kezdő dátum",
|
||||
"Y-m-d": "Y.m.d.",
|
||||
"You can select at most 4 months": "Legfeljebb 4 hónapot válaszhatsz",
|
||||
"yyyy-mm-dd": "yyyy.mm.dd."
|
||||
"yyyy-mm-dd": "yyyy.mm.dd.",
|
||||
"yyyy-mm-dd-for-humans": "éééé.hh.nn."
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "A(z) „%s” szavazás hivatkozásának szerkesztése",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Data iniziale",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Potete selezionare al massimo 4 mesi",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "gg/mm/aaaa"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Modifica il link del sondaggio \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Begindatum",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Je kan maximaal 4 maanden selecteren",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "dd/mm/jjjj"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Bewerkingslink voor de poll \"%s\"",
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
"Start date": "Data de debuta",
|
||||
"Y-m-d": "d/m/Y",
|
||||
"You can select at most 4 months": "Podètz pas causir mai de 4 meses",
|
||||
"yyyy-mm-dd": "dd/mm/yyyy"
|
||||
"yyyy-mm-dd": "dd/mm/yyyy",
|
||||
"yyyy-mm-dd-for-humans": "jj/mm/aaaa"
|
||||
},
|
||||
"EditLink": {
|
||||
"Edit link for poll \"%s\"": "Ligam de modificacion del sondatge \"%s\"",
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="col-md-8">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
|
||||
<input type="text" id="newdate" data-date-format="{__('Date', 'yyyy-mm-dd')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{__('Date', 'yyyy-mm-dd')}" />
|
||||
<input type="text" id="newdate" data-date-format="{__('Date', 'yyyy-mm-dd')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{__('Date', 'yyyy-mm-dd-for-humans')}" />
|
||||
</div>
|
||||
<span id="dateformat" class="sr-only">({__('Date', 'yyyy-mm-dd')})</span>
|
||||
</div>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar text-info"></i></span>
|
||||
<input type="text" class="form-control" id="day{$i}" title="{__('Generic', 'Day')} {$i+1}"
|
||||
data-date-format="{__('Date', 'yyyy-mm-dd')}" aria-describedby="dateformat{$i}" name="days[]" value="{$day_value}"
|
||||
size="10" maxlength="10" placeholder="{__('Date', 'yyyy-mm-dd')}" autocomplete="off"/>
|
||||
size="10" maxlength="10" placeholder="{__('Date', 'yyyy-mm-dd-for-humans')}" autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-2 col-sm-1">
|
||||
|
@ -149,7 +149,7 @@
|
|||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar text-info"></i></span>
|
||||
<input type="text" class="form-control" id="range_start"
|
||||
data-date-format="{__('Date', 'yyyy-mm-dd')}" size="10" maxlength="10"
|
||||
placeholder="{__('Date', 'yyyy-mm-dd')}"/>
|
||||
placeholder="{__('Date', 'yyyy-mm-dd-for-humans')}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
|
@ -158,7 +158,7 @@
|
|||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar text-info"></i></span>
|
||||
<input type="text" class="form-control" id="range_end"
|
||||
data-date-format="{__('Date', 'yyyy-mm-dd')}" size="10" maxlength="10"
|
||||
placeholder="{__('Date', 'yyyy-mm-dd')}"/>
|
||||
placeholder="{__('Date', 'yyyy-mm-dd-for-humans')}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<div class="col-sm-6">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar text-info"></i></span>
|
||||
<input type="text" class="form-control" id="enddate" data-date-format="{__('Date', 'yyyy-mm-dd')}" aria-describedby="dateformat" name="enddate" value="{$end_date_str}" size="10" maxlength="10" placeholder="{__('Date', 'yyyy-mm-dd')}" />
|
||||
<input type="text" class="form-control" id="enddate" data-date-format="{__('Date', 'yyyy-mm-dd')}" aria-describedby="dateformat" name="enddate" value="{$end_date_str}" size="10" maxlength="10" placeholder="{__('Date', 'yyyy-mm-dd-for-humans')}" />
|
||||
</div>
|
||||
</div>
|
||||
<span id="dateformat" class="sr-only">{__('Date', 'yyyy-mm-dd')}</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user