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

List:       kde-edu-devel
Subject:    Re: Review Request 112146: Make Parley scripts translatable using Kross
From:       "Yuri Chornoivan" <yurchor () ukr ! net>
Date:       2013-08-25 16:38:36
Message-ID: 20130825163836.18760.42088 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On Aug. 25, 2013, 4:30 p.m., Albert Astals Cid wrote:
> > So you say that kdecore.i18n in python basically doesn't work. Maybe you could \
> > report a but about it? Don't think noone will try to fix it, but better have it \
> > reported than not. 
> > Also, have you checked that Messages.sh still extacts those T.i18n() ?

No, I do not say this. It just does not work this way. And I do not know what to \
report exactly.

Using Kross is recommended here:

http://api.kde.org/4.11-api/kdelibs-apidocs/kross/html/classKross_1_1TranslationModule.html


This method is used for Calligra Plan and Calligra Sheets Python scripts and is \
proven to work (at least noone complained yet).

Yes, extraction works well. I was well tested here locally.


- Yuri


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112146/#review38560
-----------------------------------------------------------


On Aug. 18, 2013, 5:32 p.m., Yuri Chornoivan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/112146/
> -----------------------------------------------------------
> 
> (Updated Aug. 18, 2013, 5:32 p.m.)
> 
> 
> Review request for KDE Edu and Frederik Gladhorn.
> 
> 
> Description
> -------
> 
> "Fetch Sound" and example scripts are not untranslatable, "Google Images" needs \
> some not very elegant solution to not crash on non-ASCII locales. 
> The patch against git/master tries to resolve these issues.
> 
> 
> Diffs
> -----
> 
> plugins/example.py d2ea5ed 
> plugins/google_images.py 5317ba6 
> plugins/wiktionary/wiktionary_sound.py 1e03b02 
> 
> Diff: http://git.reviewboard.kde.org/r/112146/diff/
> 
> 
> Testing
> -------
> 
> Tested with Ukrainian translation (extraction, translation). Seems everything works \
> without crashes and with "Scripts" menu items translated. 
> 
> Thanks,
> 
> Yuri Chornoivan
> 
> 


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/112146/">http://git.reviewboard.kde.org/r/112146/</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, 2013, 4:30 p.m. UTC, <b>Albert \
Astals Cid</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;">So you say that kdecore.i18n in python basically doesn&#39;t work. Maybe \
you could report a but about it? Don&#39;t think noone will try to fix it, but better \
have it reported than not.

Also, have you checked that Messages.sh still extacts those T.i18n() ?</pre>
 </blockquote>







</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">No, I do not say this. \
It just does not work this way. And I do not know what to report exactly.

Using Kross is recommended here:

http://api.kde.org/4.11-api/kdelibs-apidocs/kross/html/classKross_1_1TranslationModule.html


This method is used for Calligra Plan and Calligra Sheets Python scripts and is \
proven to work (at least noone complained yet).

Yes, extraction works well. I was well tested here locally.
</pre>
<br />










<p>- Yuri</p>


<br />
<p>On August 18th, 2013, 5:32 p.m. UTC, Yuri Chornoivan wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for KDE Edu and Frederik Gladhorn.</div>
<div>By Yuri Chornoivan.</div>


<p style="color: grey;"><i>Updated Aug. 18, 2013, 5:32 p.m.</i></p>






<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;">&quot;Fetch Sound&quot; and example scripts are not untranslatable, \
&quot;Google Images&quot; needs some not very elegant solution to not crash on \
non-ASCII locales.

The patch against git/master tries to resolve these issues.</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;">Tested with Ukrainian translation (extraction, translation). Seems \
everything works without crashes and with &quot;Scripts&quot; menu items \
translated.</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>plugins/example.py <span style="color: grey">(d2ea5ed)</span></li>

 <li>plugins/google_images.py <span style="color: grey">(5317ba6)</span></li>

 <li>plugins/wiktionary/wiktionary_sound.py <span style="color: \
grey">(1e03b02)</span></li>

</ul>

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







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








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



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


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

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