I come across this source string with line breaks, indicated here with [L].
But on the edit translation, a text field instead of text area is given. Does anyone face the same problem and how to make it into a text area?
An error occurred.[L]
@uri[L]
@text
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | l10n_multiline.patch | 1.88 KB | gábor hojtsy |
Comments
Comment #1
gábor hojtsyIt should give you a textarea if there was any newline there, so if it does not do so, then it is a bug.
Comment #2
ckngYes, it does not provide a textarea.
Just stumble upon another case that has the same behaviour.
Has existing translation with line break, editing it provide a textarea. If you delete the translation, it will just give a textfield.
It seems to happen with variable on its own line, like example above
i.e.
text [L]
@var
Comment #3
gábor hojtsyUh, realized that input is dependent on length, not line break. We should depend the input type both on length and linebreaks. This way, short strings will get to multiline input if they have linebreaks. Try this patch please.
Comment #4
ckngSo far the patch work on all the cases I encountered.
Comment #5
gábor hojtsyCommitted, sorry for the delay.