[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:       Robert Lancaster <rlancaste () gmail ! com>
Date:       2023-11-04 16:55:11
Message-ID: CCA36948-D76E-44ED-A5F9-EAC70570306E () gmail ! com
[Download RAW message or body]

Just an idea, maybe the text that goes into the overall html document could be \
separated into little translatable chunks and the larger html (tooltip?) that it gets \
combined into could be concatenated together using code since that part doesn't need \
to be translated?

> On Nov 4, 2023, at 10:45 AM, Wolfgang Reissenberger <sterne-jaeger@openfuture.de> \
> wrote: 
> 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;">Just an idea, maybe the text that goes into \
the overall html document could be separated into little translatable chunks and the \
larger html (tooltip?) that it gets combined into could be concatenated together \
using code since that part doesn't need to be translated?<br \
id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Nov 4, \
2023, at 10:45 AM, Wolfgang Reissenberger &lt;sterne-jaeger@openfuture.de&gt; \
wrote:</div><br class="Apple-interchange-newline"><div><meta \
http-equiv="content-type" content="text/html; charset=utf-8"><div \
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 &lt;mutlaqja@ikarustech.com&gt;:</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">&lt;<a \
href="mailto:lukasz.wojnilowicz@gmail.com">lukasz.wojnilowicz@gmail.com</a>&gt;</span><br>Date: \
Sat, Nov 4, 2023, 3:10 PM<br>Subject: Stop creating huge translation units in \
applications<br>To:  &lt;<a \
href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a>&gt;,  &lt;<a \
href="mailto:kde-i18n-doc@kde.org">kde-i18n-doc@kde.org</a>&gt;<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>
"&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Format is used to define the image \
file names by<br> the use of placeholder tags.&lt;/p&gt;&lt;ul style="margin-top: \
                0px;<br>
margin-bottom: 0px; margin-left: 0px; margin-right: 0px;<br>
-qt-list-indent: 1;"&gt;&lt;li style=" margin-top:12px; margin-bottom:0px;<br>
margin-left:0px; margin-right:0px; -qt- block-indent:0;<br>
text-indent:0px;"&gt;Placeholder&lt;span style=" font-weight:704; "&gt;<br>
%f&lt;/span&gt; or &lt;span style=" font-weight:704;"&gt;%filename&lt;/span&gt;: The \
name<br> of the .esq file, without extension.&lt;/li&gt;&lt;li style=" \
margin-top:0px;<br> margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;"&gt;Placeholder&lt;span style="<br>
font-weight:704;"&gt; %D&lt;/span&gt; or &lt;span style="<br>
font-weight:704;"&gt;%Datetime&lt;/span&gt;: The current time and date &lt;span<br>
style=" font-weight:704;"&gt;when the file is saved.&lt;/span&gt;&lt;/<br>
li&gt;&lt;li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
li&gt;margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;"&gt;Placeholder&lt;span<br>
style=" font-weight:704;"&gt; %T&lt;/span&gt; or &lt;span style="<br>
font-weight:704;"&gt;%Type&lt;/<br>
span&gt;: The frame type eg: 'Light', 'Bias', 'Dark', 'Flat'...&lt;/li&gt;&lt;li<br>
span&gt;style=<br>
" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt- block-indent:0; text-indent:0px;"&gt;Placeholder&lt;span style="<br>
font-weight:704; "&gt; %e&lt;/span&gt; or &lt;span style="<br>
font-weight:704;"&gt;%exposure&lt;/span&gt;: The exposure duration in seconds,<br>
with '_secs' as suffix.&lt;/li&gt;&lt;ul style="margin- top: 0px; margin-bottom:<br>
0px; margin-left: 0px; margin-right: 0px; -qt-list- indent: 1;"&gt;&lt;li<br>
style=" margin-top:0px; margin-bottom:0px; margin- left:0px;<br>
margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
"&gt;Placeholder&lt;span style=" font-weight:704;"&gt; %E&lt;/span&gt; or \
&lt;span<br> style=" font-weight:704;"&gt;%exp&lt;/span&gt;: The exposure duration in \
seconds<br> as plain number, without any unit as suffix.&lt;/li&gt;&lt;/ul&gt;&lt;li \
style="<br> margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;"&gt;Placeholder&lt;span style="<br>
font-weight:704;"&gt; %F&lt;/span&gt; or &lt;span style="<br>
font-weight:704;"&gt;%Filter&lt;/span&gt;: The active filter name. \
&lt;/li&gt;&lt;li<br> style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-<br> right:0px; -qt-block-indent:0; \
text-indent:0px;"&gt;Placeholder&lt;span<br> style=" font-weight:704;"&gt; \
%t&lt;/span&gt; or &lt;span style="<br> font-weight:704;"&gt;%target&lt;/<br>
span&gt;: The Target name.&lt;/li&gt;&lt;li style=" margin-top:0px;<br>
span&gt;margin-bottom:0px; <br>
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
"&gt;Placeholder &lt;span style=" font-weight:600;"&gt;%C&lt;/span&gt; or \
&lt;span<br> style=" font-weight:600;"&gt;%temperature&lt;/span&gt;: The camera \
temperature<br> of capturing. &lt;/li&gt;&lt;ul style="margin-top: 0px; \
                margin-bottom: 0px;<br>
margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"&gt;&lt;li style="<br>
margin-top:0px; margin- bottom:0px; margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text- indent:0px;"&gt;Placeholder &lt;span style="<br>
font-weight:600;"&gt;%B&lt;/span&gt; or &lt;span style="<br>
font-weight:600;"&gt;%bin&lt;/span&gt;: The binning configured for<br>
capturing.&lt;/li&gt;&lt;li style=" margin-top:0px; margin-bottom:0px; margin-<br>
left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
"&gt;Placeholder &lt;span style=" font-weight:600;"&gt;%G&lt;/span&gt; or \
&lt;span<br> style=" font-weight:600;"&gt;%gain&lt;/span&gt;: The gain configured \
for<br> capturing.&lt;/li&gt;&lt;/<br>
ul&gt;&lt;li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
ul&gt;margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;"&gt;Placeholder &lt;span<br>
style=" font-weight:600;"&gt;%O&lt;/span&gt; or &lt;span style="<br>
font-weight:600;"&gt;%offset&lt;/<br>
span&gt;: The offset configured for capturing.&lt;/li&gt;&lt;ul \
style="margin-top:<br> span&gt;0px; <br>
margin-bottom: 0px; margin-left: 0px; margin-right: 0px;<br>
-qt-list-indent: 1; "&gt;&lt;li style=" margin-top:0px; margin-bottom:0px;<br>
margin-left:0px; margin- right:0px; -qt-block-indent:0;<br>
text-indent:0px;"&gt;Placeholder &lt;span style=" \
font-weight:600;"&gt;%I&lt;/span&gt;<br> or &lt;span style=" \
font-weight:600;"&gt;%iso&lt;/<br> span&gt;: The ISO value (DSLRs \
only).&lt;/li&gt;&lt;/ul&gt;&lt;li style=" margin-top:0px; <br> margin-bottom:0px; \
                margin-left:0px; margin-right:0px;<br>
-qt-block-indent:0; text-indent:0px;"&gt;Placeholder &lt;span style="<br>
font-weight:600;"&gt;%P&lt;/span&gt; or &lt;span style="<br>
font-weight:600;"&gt;%pierside&lt;/span&gt;: The current mount's pier<br>
side.&lt;/li&gt;&lt;li style=" margin-top:0px; margin-bottom:12px; margin-<br>
left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;<br>
"&gt;Placeholder&lt;span style=" font-weight:704;"&gt; %s*&lt;/span&gt; or \
&lt;span<br> style= " font-weight:704;"&gt;%sequence&lt;/span&gt;: The image \
sequence<br> identifier where <br>
* is the number of digits used (1-9). &lt;span style="<br>
font-weight:704;"&gt;This tag is mandatory and must be the last element in<br>
the format.&lt;/span&gt;&lt;/li&gt;&lt;/<br>
ul&gt;&lt;p&gt;Arbitrary text may also be included within the Format string,<br>
ul&gt;&lt;span <br>
style=" font-weight:704;"&gt;except the % and \\ characters.&lt;/span&gt; The / <br>
path character can be used to define arbitrary<br>
directories.&lt;/p&gt;&lt;p&gt;Notes:&lt;/<br>
p&gt;&lt;ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;<br>
p&gt;margin-<br>
right: 0px; -qt-list-indent: 1;"&gt;&lt;li style=" margin-top:0px; margin-<br>
bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-<br>
indent:0px;"&gt;Tags are case sensitive in both their short and long<br>
forms.&lt;/<br>
li&gt;&lt;li style=" margin-top:0px; margin-bottom:0px; margin-left:0px;<br>
li&gt;margin-<br>
right:0px; -qt-block-indent:0; text-indent:0px;"&gt;Only use the %Datetime<br>
tag in the filename portion of the format, not in the path<br>
definition.&lt;/li&gt;&lt;/<br>
ul&gt;&lt;/body&gt;&lt;/html&gt;"<br>
</div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic