poedit icon indicating copy to clipboard operation
poedit copied to clipboard

Show cursor position in text fields

Open lanurmi opened this issue 3 years ago • 3 comments

When translating software that runs in terminal, it is often a requirement to keep the line length in certain translations under 80 characters. Also sometimes the translation should be aligned the same way as the original. For example:

__-a, --fetchall_____retrieve old and new messages (underscores here denote spaces used for alignment)

Accomplishing this would be easier if Poedit showed the current cursor position, in both the Source and Translation text fields.

And surely there are other scenarios where the line length is limited, and/or knowing it is otherwise useful, but software running in terminal is no doubt the most common case.

lanurmi avatar Mar 27 '21 13:03 lanurmi

Showing lengths is implemented as of eb1bd4e84bb24630f1cb064b5b4cf615d8e00d94.

vslavik avatar Mar 27 '21 17:03 vslavik

Showing lengths is implemented as of eb1bd4e.

Good! If I understand correctly how it works, for a single-line message that is pretty much the same as showing line length. But for multi-line messages the actual cursor position would still be useful, as the length of the whole string isn't that interesting then.

lanurmi avatar Mar 27 '21 17:03 lanurmi

Ah, right, multi-line is different, reopening.

vslavik avatar Mar 27 '21 17:03 vslavik