Show More
@@ -1,11 +1,11 b'' | |||
|
1 | 1 | from django import forms |
|
2 |
from django.utils.translation import ugettext_lazy as _ |
|
|
3 | ||
|
2 | from django.utils.translation import ugettext_lazy as _ | |
|
4 | 3 | |
|
5 | 4 | ATTRIBUTE_PLACEHOLDER = 'placeholder' |
|
6 | 5 | ATTRIBUTE_ROWS = 'rows' |
|
7 | 6 | |
|
8 | 7 | URL_ROWS = 2 |
|
8 | URL_PLACEHOLDER = _('Insert URLs on separate lines.') | |
|
9 | 9 | |
|
10 | 10 | |
|
11 | 11 | class MultipleFileInput(forms.FileInput): |
@@ -50,7 +50,7 b' class UrlFileWidget(forms.MultiWidget):' | |||
|
50 | 50 | widgets = ( |
|
51 | 51 | MultipleFileInput(attrs={'accept': 'file/*'}), |
|
52 | 52 | forms.Textarea(attrs={ |
|
53 |
ATTRIBUTE_PLACEHOLDER: |
|
|
53 | ATTRIBUTE_PLACEHOLDER: URL_PLACEHOLDER, | |
|
54 | 54 | ATTRIBUTE_ROWS: URL_ROWS, |
|
55 | 55 | }), |
|
56 | 56 | ) |
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -565,3 +565,5 b' msgstr "\xd0\x90\xd0\xba\xd1\x82\xd0\xb8\xd0\xb2\xd0\xbd\xd1\x8b\xd0\xb5 \xd1\x82\xd0\xb5\xd0\xbc\xd1\x8b:"' | |||
|
565 | 565 | msgid "No active threads today." |
|
566 | 566 | msgstr "Сегодня нет активных тем." |
|
567 | 567 | |
|
568 | msgid "Insert URLs on separate lines." | |
|
569 | msgstr "Вставляйте ссылки на отдельных строках." |
General Comments 0
You need to be logged in to leave comments.
Login now