Stop creating huge translation units in applications

Oliver Kellogg olivermkellogg at gmail.com
Sat Jan 27 19:26:29 GMT 2024


For your interest, I made a post in the Qt forum,
https://forum.qt.io/topic/153993/ui-i18n-of-lengthy-tooltip-with-interspersed-stylesheet-markup
but there haven't been any reactions yet.

Oliver

On Sat, Nov 4, 2023 at 1:10 PM Łukasz Wojniłowicz
<lukasz.wojnilowicz at gmail.com> wrote:
>
> Hi Jasem,
>
> please stop creating huge translation units as the one at the end of
> this message. It's difficult to translate or to spot a change that
> you'll make in them in the future.
>
> Recently it popped up as fuzzy during my translation session, and I
> don't know what you've changed there. It could be a text or it could be
> html formatting or it could be just a missing space somewhere. In either
> case I need to read through all of its 5326 letters to find that out.
> That slows down translation considerably.
>
> I suggest to break such huge units to several smaller ones, and don't
> overdo with including too much html formatting tags in them.
>
> Cheers
> Łukasz
>
> "<html><head/><body><p>Format is used to define the image file names by
> the use of placeholder tags.</p><ul style="margin-top: 0px;
> margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
> -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px;
> margin-left:0px; margin-right:0px; -qt- block-indent:0;
> text-indent:0px;">Placeholder<span style=" font-weight:704; ">
> %f</span> or <span style=" font-weight:704;">%filename</span>: The name
> of the .esq file, without extension.</li><li style=" margin-top:0px;
> margin-bottom:0px; margin-left:0px; margin-right:0px;
> -qt-block-indent:0; text-indent:0px;">Placeholder<span style="
> font-weight:704;"> %D</span> or <span style="
> font-weight:704;">%Datetime</span>: The current time and date <span
> style=" font-weight:704;">when the file is saved.</span></
> li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
> li>margin-
> right:0px; -qt-block-indent:0; text-indent:0px;">Placeholder<span
> style=" font-weight:704;"> %T</span> or <span style="
> font-weight:704;">%Type</
> span>: The frame type eg: 'Light', 'Bias', 'Dark', 'Flat'...</li><li
> span>style=
> " margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
> -qt- block-indent:0; text-indent:0px;">Placeholder<span style="
> font-weight:704; "> %e</span> or <span style="
> font-weight:704;">%exposure</span>: The exposure duration in seconds,
> with '_secs' as suffix.</li><ul style="margin- top: 0px; margin-bottom:
> 0px; margin-left: 0px; margin-right: 0px; -qt-list- indent: 1;"><li
> style=" margin-top:0px; margin-bottom:0px; margin- left:0px;
> margin-right:0px; -qt-block-indent:0; text-indent:0px;
> ">Placeholder<span style=" font-weight:704;"> %E</span> or <span
> style=" font-weight:704;">%exp</span>: The exposure duration in seconds
> as plain number, without any unit as suffix.</li></ul><li style="
> margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
> -qt-block-indent:0; text-indent:0px;">Placeholder<span style="
> font-weight:704;"> %F</span> or <span style="
> font-weight:704;">%Filter</span>: The active filter name. </li><li
> style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-
> right:0px; -qt-block-indent:0; text-indent:0px;">Placeholder<span
> style=" font-weight:704;"> %t</span> or <span style="
> font-weight:704;">%target</
> span>: The Target name.</li><li style=" margin-top:0px;
> span>margin-bottom:0px;
> margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
> ">Placeholder <span style=" font-weight:600;">%C</span> or <span
> style=" font-weight:600;">%temperature</span>: The camera temperature
> of capturing. </li><ul style="margin-top: 0px; margin-bottom: 0px;
> margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style="
> margin-top:0px; margin- bottom:0px; margin-left:0px; margin-right:0px;
> -qt-block-indent:0; text- indent:0px;">Placeholder <span style="
> font-weight:600;">%B</span> or <span style="
> font-weight:600;">%bin</span>: The binning configured for
> capturing.</li><li style=" margin-top:0px; margin-bottom:0px; margin-
> left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
> ">Placeholder <span style=" font-weight:600;">%G</span> or <span
> style=" font-weight:600;">%gain</span>: The gain configured for
> capturing.</li></
> ul><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
> ul>margin-
> right:0px; -qt-block-indent:0; text-indent:0px;">Placeholder <span
> style=" font-weight:600;">%O</span> or <span style="
> font-weight:600;">%offset</
> span>: The offset configured for capturing.</li><ul style="margin-top:
> span>0px;
> margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
> -qt-list-indent: 1; "><li style=" margin-top:0px; margin-bottom:0px;
> margin-left:0px; margin- right:0px; -qt-block-indent:0;
> text-indent:0px;">Placeholder <span style=" font-weight:600;">%I</span>
> or <span style=" font-weight:600;">%iso</
> span>: The ISO value (DSLRs only).</li></ul><li style=" margin-top:0px;
> margin-bottom:0px; margin-left:0px; margin-right:0px;
> -qt-block-indent:0; text-indent:0px;">Placeholder <span style="
> font-weight:600;">%P</span> or <span style="
> font-weight:600;">%pierside</span>: The current mount's pier
> side.</li><li style=" margin-top:0px; margin-bottom:12px; margin-
> left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
> ">Placeholder<span style=" font-weight:704;"> %s*</span> or <span
> style= " font-weight:704;">%sequence</span>: The image sequence
> identifier where
> * is the number of digits used (1-9). <span style="
> font-weight:704;">This tag is mandatory and must be the last element in
> the format.</span></li></
> ul><p>Arbitrary text may also be included within the Format string,
> ul><span
> style=" font-weight:704;">except the % and \\ characters.</span> The /
> path character can be used to define arbitrary
> directories.</p><p>Notes:</
> p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;
> p>margin-
> right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-
> bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-
> indent:0px;">Tags are case sensitive in both their short and long
> forms.</
> li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
> li>margin-
> right:0px; -qt-block-indent:0; text-indent:0px;">Only use the %Datetime
> tag in the filename portion of the format, not in the path
> definition.</li></
> ul></body></html>"


More information about the kde-i18n-doc mailing list