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

List:       kde-release-team
Subject:    Re: Review Request 119915: Plasma release scripts to use Ki18n's PO installation macro
From:       "Harald Sitter" <sitter () kde ! org>
Date:       2014-09-01 8:13:33
Message-ID: 20140901081333.11809.13623 () probe ! kde ! org
[Download RAW message or body]

--===============8588970160220207789==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit



> On Aug. 25, 2014, 7:02 a.m., Harald Sitter wrote:
> > lib/kdel10n.rb, line 242
> > <https://git.reviewboard.kde.org/r/119915/diff/1/?file=307343#file307343line242>
> > 
> > random nitpicking: could use @languages.empty? instead of a new var
> 
> Chusslove Illich wrote:
> The check should depend on whether there are any translations for the current \
> source directory (in the current method call), while using @languages would leak \
> this information across calls.

fair enough


- Harald


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119915/#review65170
-----------------------------------------------------------


On Aug. 30, 2014, 6:50 p.m., Chusslove Illich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119915/
> -----------------------------------------------------------
> 
> (Updated Aug. 30, 2014, 6:50 p.m.)
> 
> 
> Review request for Release Team, Jonathan Riddell and Harald Sitter.
> 
> 
> Repository: releaseme
> 
> 
> Description
> -------
> 
> At present, for installing Plasma PO files the release scripts create \
> CMakeLists.txt files inside po/ directory, which use CMake's \
> GETTEXT_PROCESS_PO_FILES. Ki18n instead provides the KI18N_INSTALL macro that only \
> needs to be called once from the top CMakeLists.txt, with po directory as argument. \
> This patch switches to using it. 
> This is in preparation for updating release scripts to also fetch translation \
> scripting modules into the packages. Every PO file can have an associated scripting \
> module (though they are rare). KI18N_INSTALL handles these modules as well, when \
> they are found in expected location inside po/ directory. 
> 
> Diffs
> -----
> 
> lib/cmakeeditor.rb 03ebac0 
> lib/kdel10n.rb f855de8 
> lib/tests/ts_cmakeeditor.rb 9d7339f 
> lib/tests/ts_l10n.rb 1a328a3 
> 
> Diff: https://git.reviewboard.kde.org/r/119915/diff/
> 
> 
> Testing
> -------
> 
> Run tarme.rb on couple of modules and languages, CMakeLists.txt tree got updated as \
> expected. Run ts_cmakeeditor.rb. 
> 
> Thanks,
> 
> Chusslove Illich
> 
> 


--===============8588970160220207789==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/119915/">https://git.reviewboard.kde.org/r/119915/</a>
  </td>
    </tr>
   </table>
   <br />










<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On August 25th, 2014, 7:02 a.m. UTC, <b>Harald \
Sitter</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  


<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="https://git.reviewboard.kde.org/r/119915/diff/1/?file=307343#file307343line242" \
style="color: black; font-weight: bold; text-decoration: \
underline;">lib/kdel10n.rb</a>  <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">def \
get(sourceDirectory)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">240</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            \
<span class="k">if</span> <span class="n">anyTranslations</span></pre></td>  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">random nitpicking: could use @languages.empty? instead of a new \
var</p></pre>  </blockquote>



 <p>On August 30th, 2014, 6:50 p.m. UTC, <b>Chusslove Illich</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The \
check should depend on whether there are any translations for the current source \
directory (in the current method call), while using @languages would leak this \
information across calls.</p></pre>  </blockquote>







</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">fair enough</p></pre> <br />




<p>- Harald</p>


<br />
<p>On August 30th, 2014, 6:50 p.m. UTC, Chusslove Illich wrote:</p>









<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for Release Team, Jonathan Riddell and Harald Sitter.</div>
<div>By Chusslove Illich.</div>


<p style="color: grey;"><i>Updated Aug. 30, 2014, 6:50 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
releaseme
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">At present, for installing Plasma PO files the release \
scripts create CMakeLists.txt files inside po/ directory, which use CMake's \
GETTEXT_PROCESS_PO_FILES. Ki18n instead provides the KI18N_INSTALL macro that only \
needs to be called once from the top CMakeLists.txt, with po directory as argument. \
This patch switches to using it.</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">This is in preparation \
for updating release scripts to also fetch translation scripting modules into the \
packages. Every PO file can have an associated scripting module (though they are \
rare). KI18N_INSTALL handles these modules as well, when they are found in expected \
location inside po/ directory.</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Run tarme.rb on couple of modules and languages, \
CMakeLists.txt tree got updated as expected. Run ts_cmakeeditor.rb.</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>lib/cmakeeditor.rb <span style="color: grey">(03ebac0)</span></li>

 <li>lib/kdel10n.rb <span style="color: grey">(f855de8)</span></li>

 <li>lib/tests/ts_cmakeeditor.rb <span style="color: grey">(9d7339f)</span></li>

 <li>lib/tests/ts_l10n.rb <span style="color: grey">(1a328a3)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/119915/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>








  </div>
 </body>
</html>


--===============8588970160220207789==--



_______________________________________________
release-team mailing list
release-team@kde.org
https://mail.kde.org/mailman/listinfo/release-team


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

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