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
CommentFileSizeAuthor
#3 l10n_multiline.patch1.88 KBgábor hojtsy

Comments

gábor hojtsy’s picture

It should give you a textarea if there was any newline there, so if it does not do so, then it is a bug.

ckng’s picture

Yes, 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

gábor hojtsy’s picture

Title: Input for line break » Input type depends on length not line breaks
Status: Active » Needs review
StatusFileSize
new1.88 KB

Uh, 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.

ckng’s picture

Status: Needs review » Reviewed & tested by the community

So far the patch work on all the cases I encountered.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Committed, sorry for the delay.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.