# HG changeset patch # User neko259 # Date 2016-12-29 21:15:29 # Node ID ae6e7d4cb40478ed387cab66be288a73bf1d1b2e # Parent 271906c835a60e97d63c7fb49db72d2331b887f6 Updated placeholder for the URL input to be more user-friendly diff --git a/boards/forms/fields.py b/boards/forms/fields.py --- a/boards/forms/fields.py +++ b/boards/forms/fields.py @@ -1,11 +1,11 @@ from django import forms -from django.utils.translation import ugettext_lazy as _, ungettext_lazy - +from django.utils.translation import ugettext_lazy as _ ATTRIBUTE_PLACEHOLDER = 'placeholder' ATTRIBUTE_ROWS = 'rows' URL_ROWS = 2 +URL_PLACEHOLDER = _('Insert URLs on separate lines.') class MultipleFileInput(forms.FileInput): @@ -50,7 +50,7 @@ class UrlFileWidget(forms.MultiWidget): widgets = ( MultipleFileInput(attrs={'accept': 'file/*'}), forms.Textarea(attrs={ - ATTRIBUTE_PLACEHOLDER: 'http://example.com/image.png', + ATTRIBUTE_PLACEHOLDER: URL_PLACEHOLDER, ATTRIBUTE_ROWS: URL_ROWS, }), ) diff --git a/boards/locale/ru/LC_MESSAGES/django.mo b/boards/locale/ru/LC_MESSAGES/django.mo index cf234602dd8080368dbee794f050ab0e580fe459..e0fe14ec3e48c89828f560bdd0eff7057d397f94 GIT binary patch literal 10671 zc$~#pYiu0Xb-r$tHfBVT6dg;{E0>Wdk+yb4%64O~9u_50vMN%NNy@Gh*Yc1%B*)sF zS%cDHoxled%e|38^^-!u3tGk#IMjH|B~xtoFLQi*z*x3^yG?FF_1p9Ho5KLcC?eASGfu9tPc zXWB#a{_}d#``_`i1bF8Xv2!_a1#s;WiOY7={z=n5vP9-jED=9_9=II%$`a8hZ^nNI z*arMQa0A)7MC@y6ka@a6*1re%Yvk_+v1?0%$luW*<9mT)zyZ@g+aU74+aP}VfsymW z28r+AnfHHakT|?&#w~7?{<|7Q&lQa#=blE9`#__tmuM9Ix*H`9`%V8~qxk6wU_kM2 z6#x9VQRM%tk#|Rv;Nm9X&oW>$t4YiQj+LB>Mh`X}@!+_`6}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EHu7CI3_XW3Onc=qWQ;>t5oy?}-v9Roml{34dwrfntYs2vKn^s60)#xCP9nNapIn4 z$Ir@=a3>cjVl}orqSOVZHyM3}s%4}U%jB3)EvYQ6m&9FEVW1fAyv168D4d~0x+Hl) zPNgMo660#^=@NSM!$-v=L9gK{0$m(Yo&4nj=J_kGOV!a(7K9->5wE9Oi!()&+M~%@ z9?iwLJdP}a8G-n5V8S^ntdl0MW+NI=8TfKIgCDMZrodxEW4^pa1e#YE%Dsy1Q%haG z%B!D(f}D@0=yJyu$%3-4a@x+Q%t8nv7MTOhBvEhi0+U#9PLgZ>LF0e8;<^9p75^LS zeYtE@*><(yz*k*aS!;fwE_Q$+lqt3HLb7aj{|}3z692C*dx>(Qc$7O|`rp&SGRnsW zv+2;pTO3e6-Y9I|+8iD7tP1TLmkg_~nIpxFIoN{Tl$|pWbc)YH3wC45CFT=zLr#^v z+b%epmUE5vXWGB`fWn(?VS+Y6bI_rTiBi0{sh1su=u@FIy!^4oNwa);Ic=J=8qN;X z#1av$1t-|*-;#Xjz@ciIomM=>#LJGr6{q3q$I~dBXZe6yaeyQ8RB=(6^T|nHH6PI7 zo6Mx^^9mLjc~cI3OjVwSosoQ{!awD2gE?OBx_n|>pdj#(DAIwlze>|Qi>^szibrnn z;Kf=tT{Pu>k_z6-+!O5(3lC_d`b)ICBQ&q_QF4xbJPhH6XXITxyHYjd3QZa z1w~c+-@uL1_g?k?+0@!lYkXAI9DS2*V~?1%t81xC|5R1{nSF+(Op`KLpvosil|x3A zfALTy!vFvP diff --git a/boards/locale/ru/LC_MESSAGES/django.po b/boards/locale/ru/LC_MESSAGES/django.po --- a/boards/locale/ru/LC_MESSAGES/django.po +++ b/boards/locale/ru/LC_MESSAGES/django.po @@ -565,3 +565,5 @@ msgstr "Активные темы:" msgid "No active threads today." msgstr "Сегодня нет активных тем." +msgid "Insert URLs on separate lines." +msgstr "Вставляйте ссылки на отдельных строках."