Details
-
New Feature
-
Resolution: Done
-
None
-
High
-
Empty show more show less
Description
Goal
For some displays it is needed, that you can check the length of one translation, that has more than 1 line on the display. The translator than needs to be able to see and if needed change the position, where the line break is entered.
Technical concept
In the configuration for the pixel-based length check in addition to the pixel-length it is defined, how many lines the segment can contain. If there is more than one line defined, the defined length of pixel refers to the length of one line and not to that of a segment.
When the translator writes and reaches the number of pixels, that are defined for 1 line, translate5 automatically enters a line-break.
The line-break can be moved by the translator like a normal tag.
In case he moves it in a position, where a line becomes to long, the line-break tag turns red. Below the segment is shown, how many pixels which line contains and what is the max.
Still undecided is, if the the automated line-break will only be between words (thus after the last word, that still fits into a line) or if can also be inside a word. If it is inside a word, it still is undecided, if than a dash is automatically entered before the line-break.
Konzept im Detail
Abschnitt | Todo |
---|---|
Pixel-Mapping |
|
Import |
|
GUI / Editor Zählung |
|
GUI / Editor Anzeige |
|
PHP |
|
PHP |
|
(Wie kann festgelegt werden, dass die Zeilenzahl genau 1 sein MUSS? Nur indem wir 1 NICHT als Vorgabe nehmen. Stattdessen: Wenn in der trans-unit oder im task-template eine maxNumberOfLines angegeben ist, wird auf Zeilenzahl geprüft - andernfalls nicht.)
Attachments
Issue Links
- relates to
-
TRANSLATE-1900 Pixel length check: Handle characters with unkown pixel length
- Done