[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: Re: Stop creating huge translation units in applications
From: Wolfgang Reissenberger <sterne-jaeger () openfuture ! de>
Date: 2023-11-04 14:45:25
Message-ID: F90BF9E1-0C88-4023-BEB5-BE2ABE468BA1 () openfuture ! de
[Download RAW message or body]
That is my recent change adding more placeholders. Any ideas how to do it better?
> Am 04.11.2023 um 14:04 schrieb Jasem Mutlaq <mutlaqja@ikarustech.com>:
>
> FYI
>
> ---------- Forwarded message ---------
> From: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com \
> <mailto:lukasz.wojnilowicz@gmail.com>>
> Date: Sat, Nov 4, 2023, 3:10 PM
> Subject: Stop creating huge translation units in applications
> To: <mutlaqja@ikarustech.com <mailto:mutlaqja@ikarustech.com>>, \
> <kde-i18n-doc@kde.org <mailto:kde-i18n-doc@kde.org>>
>
> 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>"
[Attachment #3 (unknown)]
<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: \
space; line-break: after-white-space;">That is my recent change adding more \
placeholders. Any ideas how to do it better?<div><br><div><blockquote \
type="cite"><div>Am 04.11.2023 um 14:04 schrieb Jasem Mutlaq \
<mutlaqja@ikarustech.com>:</div><br class="Apple-interchange-newline"><div><div \
dir="auto">FYI</div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">---------- Forwarded message ---------<br>From: <strong \
class="gmail_sendername" dir="auto">Łukasz Wojniłowicz</strong> <span \
dir="auto"><<a href="mailto:lukasz.wojnilowicz@gmail.com">lukasz.wojnilowicz@gmail.com</a>></span><br>Date: \
Sat, Nov 4, 2023, 3:10 PM<br>Subject: Stop creating huge translation units in \
applications<br>To: <<a \
href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a>>, <<a \
href="mailto:kde-i18n-doc@kde.org">kde-i18n-doc@kde.org</a>><br></div><br><br>Hi \
Jasem,<br> <br>
please stop creating huge translation units as the one at the end of<br>
this message. It's difficult to translate or to spot a change that<br>
you'll make in them in the future.<br>
<br>
Recently it popped up as fuzzy during my translation session, and I<br>
don't know what you've changed there. It could be a text or it could be<br>
html formatting or it could be just a missing space somewhere. In either<br>
case I need to read through all of its 5326 letters to find that out.<br>
That slows down translation considerably.<br>
<br>
I suggest to break such huge units to several smaller ones, and don't<br>
overdo with including too much html formatting tags in them.<br>
<br>
Cheers<br>
Łukasz<br>
<br>
"<html><head/><body><p>Format is used to define the image \
file names by<br> the use of placeholder tags.</p><ul style="margin-top: \
0px;<br>
margin-bottom: 0px; margin-left: 0px; margin-right: 0px;<br>
-qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px;<br>
margin-left:0px; margin-right:0px; -qt- block-indent:0;<br>
text-indent:0px;">Placeholder<span style=" font-weight:704; "><br>
%f</span> or <span style=" font-weight:704;">%filename</span>: The \
name<br> of the .esq file, without extension.</li><li style=" \
margin-top:0px;<br> margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;">Placeholder<span style="<br>
font-weight:704;"> %D</span> or <span style="<br>
font-weight:704;">%Datetime</span>: The current time and date <span<br>
style=" font-weight:704;">when the file is saved.</span></<br>
li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
li>margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;">Placeholder<span<br>
style=" font-weight:704;"> %T</span> or <span style="<br>
font-weight:704;">%Type</<br>
span>: The frame type eg: 'Light', 'Bias', 'Dark', 'Flat'...</li><li<br>
span>style=<br>
" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt- block-indent:0; text-indent:0px;">Placeholder<span style="<br>
font-weight:704; "> %e</span> or <span style="<br>
font-weight:704;">%exposure</span>: The exposure duration in seconds,<br>
with '_secs' as suffix.</li><ul style="margin- top: 0px; margin-bottom:<br>
0px; margin-left: 0px; margin-right: 0px; -qt-list- indent: 1;"><li<br>
style=" margin-top:0px; margin-bottom:0px; margin- left:0px;<br>
margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
">Placeholder<span style=" font-weight:704;"> %E</span> or \
<span<br> style=" font-weight:704;">%exp</span>: The exposure duration in \
seconds<br> as plain number, without any unit as suffix.</li></ul><li \
style="<br> margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;">Placeholder<span style="<br>
font-weight:704;"> %F</span> or <span style="<br>
font-weight:704;">%Filter</span>: The active filter name. \
</li><li<br> style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-<br> right:0px; -qt-block-indent:0; \
text-indent:0px;">Placeholder<span<br> style=" font-weight:704;"> \
%t</span> or <span style="<br> font-weight:704;">%target</<br>
span>: The Target name.</li><li style=" margin-top:0px;<br>
span>margin-bottom:0px; <br>
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
">Placeholder <span style=" font-weight:600;">%C</span> or \
<span<br> style=" font-weight:600;">%temperature</span>: The camera \
temperature<br> of capturing. </li><ul style="margin-top: 0px; \
margin-bottom: 0px;<br>
margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style="<br>
margin-top:0px; margin- bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text- indent:0px;">Placeholder <span style="<br>
font-weight:600;">%B</span> or <span style="<br>
font-weight:600;">%bin</span>: The binning configured for<br>
capturing.</li><li style=" margin-top:0px; margin-bottom:0px; margin-<br>
left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
">Placeholder <span style=" font-weight:600;">%G</span> or \
<span<br> style=" font-weight:600;">%gain</span>: The gain configured \
for<br> capturing.</li></<br>
ul><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
ul>margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;">Placeholder <span<br>
style=" font-weight:600;">%O</span> or <span style="<br>
font-weight:600;">%offset</<br>
span>: The offset configured for capturing.</li><ul \
style="margin-top:<br> span>0px; <br>
margin-bottom: 0px; margin-left: 0px; margin-right: 0px;<br>
-qt-list-indent: 1; "><li style=" margin-top:0px; margin-bottom:0px;<br>
margin-left:0px; margin- right:0px; -qt-block-indent:0;<br>
text-indent:0px;">Placeholder <span style=" \
font-weight:600;">%I</span><br> or <span style=" \
font-weight:600;">%iso</<br> span>: The ISO value (DSLRs \
only).</li></ul><li style=" margin-top:0px; <br> margin-bottom:0px; \
margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;">Placeholder <span style="<br>
font-weight:600;">%P</span> or <span style="<br>
font-weight:600;">%pierside</span>: The current mount's pier<br>
side.</li><li style=" margin-top:0px; margin-bottom:12px; margin-<br>
left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
">Placeholder<span style=" font-weight:704;"> %s*</span> or \
<span<br> style= " font-weight:704;">%sequence</span>: The image \
sequence<br> identifier where <br>
* is the number of digits used (1-9). <span style="<br>
font-weight:704;">This tag is mandatory and must be the last element in<br>
the format.</span></li></<br>
ul><p>Arbitrary text may also be included within the Format string,<br>
ul><span <br>
style=" font-weight:704;">except the % and \\ characters.</span> The / <br>
path character can be used to define arbitrary<br>
directories.</p><p>Notes:</<br>
p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;<br>
p>margin-<br>
right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-<br>
bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-<br>
indent:0px;">Tags are case sensitive in both their short and long<br>
forms.</<br>
li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
li>margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;">Only use the %Datetime<br>
tag in the filename portion of the format, not in the path<br>
definition.</li></<br>
ul></body></html>"<br>
</div>
</div></blockquote></div><br></div></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic