[Debian-l10n-devel] Proposal: the way of DDTP back to ddtp.debian.org
Erik Esterer
erik.esterer at googlemail.com
Wed Aug 31 15:28:18 UTC 2011
2011/8/31 Michael Bramer <grisu at debian.org>:
>
>
> On 08/31/2011 05:11 PM, Erik Esterer wrote:
>>
>> 2011/8/31 Michael Bramer<grisu at debian.org>:
>>>
>>> On 08/31/2011 05:02 PM, Erik Esterer wrote:
>>>>
>>>> Since you fix bugs and write new code for the web interface: has the
>>>> short description field a<textarea> tag now? The old interface used
>>>> the<input> tag only for the short description and Iceweasel ignored
>>>> it for spell checking. the<textarea> works with Iceweasel spell
>>>> checking.
>>
> ...
>>
>> Yes, that's what I'd want :)
>
> I test this patch:
> ndex e3397d3..4ce43e1 100644
> --- a/src/ddtp/templates/ddtss/translate.html
> +++ b/src/ddtp/templates/ddtss/translate.html
> @@ -117,7 +117,7 @@ Translated:
> </pre></li>
> </span>
> {% endfor %}
> - <li>Translated ({{lang.language}}): <input type="text" name="short"
> value="{{trans.display_short}}" size="75"
> onchange="document.forms[0].submit.disabled=0" /></div></li>
> + <li>Translated ({{lang.language}}): <textarea name="short" rows="1"
> cols="75" onchange="document.forms[0].submit.disabled=0"
> />{{trans.display_short}}</textarea></div></li>
> </ul>
> <h5>Long description</h5>
> <a href="javascript:showlongdiff('None')" >None</a> |
>
> But this patch is not working:
> - I can input more than 1 line
> - I have a scroll-bar at the right side
After a little research, this should work:
<li>Translated ({{lang.language}}): <input type="text" name="short"
value="{{trans.display_short}}" size="75"
onchange="document.forms[0].submit.disabled=0" spellcheck="true"
/></div></li>
The input tag stays, only add spellcheck="true"[1]. Note that I didn't test it.
Thanks
Erik
[1] https://developer.mozilla.org/en/Controlling_spell_checking_in_HTML_forms
More information about the Debian-l10n-devel
mailing list