Mark wagtailforms-date-filter-placeholder for translation

pull/3363/merge
Florian Vogt 2017-02-11 18:11:13 +01:00 zatwierdzone przez Matt Westcott
rodzic da067679cd
commit ff9ef9068b
4 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -6,6 +6,7 @@ Changelog
* Use minified versions of jQuery and jQuery UI in the admin. Total savings without compression 371 KB (Tom Dyson)
* Hooks can now specify the order in which they are run (Gagaro)
* Fix: Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
1.9 (xx.xx.xxxx) - IN DEVELOPMENT

Wyświetl plik

@ -210,6 +210,7 @@ Contributors
* Martey Dodoo
* David Ray
* Alasdair Nicol
* Vorlif
Translators
===========

Wyświetl plik

@ -20,6 +20,8 @@ Other features
Bug fixes
~~~~~~~~~
* Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
Upgrade considerations
======================

Wyświetl plik

@ -112,11 +112,11 @@ class FormBuilder(object):
class SelectDateForm(django.forms.Form):
date_from = django.forms.DateTimeField(
required=False,
widget=django.forms.DateInput(attrs={'placeholder': 'Date from'})
widget=django.forms.DateInput(attrs={'placeholder': _('Date from')})
)
date_to = django.forms.DateTimeField(
required=False,
widget=django.forms.DateInput(attrs={'placeholder': 'Date to'})
widget=django.forms.DateInput(attrs={'placeholder': _('Date to')})
)