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

List:       kde-panel-devel
Subject:    Re: Review Request 120353: Add timezones i18n stuff
From:       "Martin Klapetek" <martin.klapetek () gmail ! com>
Date:       2014-09-25 16:05:55
Message-ID: 20140925160555.6971.14448 () probe ! kde ! org
[Download RAW message or body]

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



> On Sept. 25, 2014, 5:50 p.m., Albert Astals Cid wrote:
> > Looks good to me from the i18n side, you can always use isEmpty in one of the \
> > maps instead instead a bool, but i'll leave that up to you.

Ok, I'll ship it now as there's a string freeze upon us, so that we at least have the \
strings in. Thanks


- Martin


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


On Sept. 25, 2014, 5:12 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120353/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2014, 5:12 p.m.)
> 
> 
> Review request for Localization and Translation (l10n) and Plasma.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> So in Plasma 5 we're adding support for timezones into the clock applet. It's based \
> on QTimeZone and that uses IDs which are consisting of "Continent/City". Qt has no \
> accessor methods for getting the city of the given timezone so we're parsing the \
> timezone ID and using the part after "/" as the city and we display that in the UI. \
>  We want those cities translated however so it can display eg. "Praha" instead of \
> "Prague" for Czech users. So I've created this helper class which has a dictionary \
> of timezone-id-city<-->i18n(city) and this is then used in the UI. I'm not sure \
> where exactly to put it, I'd prefer KI18n framework but as we would like to have \
> this in Plasma 5.1 release, I put it together with the applet as Plasma 5.1 does \
> not (and probably will not) depend on KI18n 5.3. 
> I'm adding the l10n group to the reviewers - guys can you please comment/+1 this?
> 
> If this is deemed good enough, I'd like to also add the country and continent i18n \
> functions into that class afterwards. 
> 
> Diffs
> -----
> 
> applets/digital-clock/package/contents/ui/DigitalClock.qml f26ba9f 
> applets/digital-clock/plugin/CMakeLists.txt 1c11abe 
> applets/digital-clock/plugin/digitalclockplugin.cpp f347ee9 
> applets/digital-clock/plugin/timezonemodel.h e1f53c5 
> applets/digital-clock/plugin/timezonemodel.cpp 1fbab09 
> applets/digital-clock/plugin/timezonesi18n.h PRE-CREATION 
> applets/digital-clock/plugin/timezonesi18n.cpp PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/120353/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
> 


--===============5701712009965201415==
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/120353/">https://git.reviewboard.kde.org/r/120353/</a>
  </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On September 25th, 2014, 5:50 p.m. CEST, <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;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Looks good to me from the i18n side, you can always \
use isEmpty in one of the maps instead instead a bool, but i'll leave that up to \
you.</p></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;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Ok, \
I'll ship it now as there's a string freeze upon us, so that we at least have the \
strings in. Thanks</p></pre> <br />










<p>- Martin</p>


<br />
<p>On September 25th, 2014, 5:12 p.m. CEST, Martin Klapetek 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 Localization and Translation (l10n) and Plasma.</div>
<div>By Martin Klapetek.</div>


<p style="color: grey;"><i>Updated Sept. 25, 2014, 5:12 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-workspace
</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;">So in Plasma 5 we're adding support for timezones into \
the clock applet. It's based on QTimeZone and that uses IDs which are consisting of \
"Continent/City". Qt has no accessor methods for getting the city of the given \
timezone so we're parsing the timezone ID and using the part after "/" as the city \
and we display that in the UI.</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">We want those cities \
translated however so it can display eg. "Praha" instead of "Prague" for Czech users. \
So I've created this helper class which has a dictionary of \
timezone-id-city&lt;--&gt;i18n(city) and this is then used in the UI. I'm not sure \
where exactly to put it, I'd prefer KI18n framework but as we would like to have this \
in Plasma 5.1 release, I put it together with the applet as Plasma 5.1 does not (and \
probably will not) depend on KI18n 5.3.</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">I'm adding the l10n \
group to the reviewers - guys can you please comment/+1 this?</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">If \
this is deemed good enough, I'd like to also add the country and continent i18n \
functions into that class afterwards.</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>applets/digital-clock/package/contents/ui/DigitalClock.qml <span style="color: \
grey">(f26ba9f)</span></li>

 <li>applets/digital-clock/plugin/CMakeLists.txt <span style="color: \
grey">(1c11abe)</span></li>

 <li>applets/digital-clock/plugin/digitalclockplugin.cpp <span style="color: \
grey">(f347ee9)</span></li>

 <li>applets/digital-clock/plugin/timezonemodel.h <span style="color: \
grey">(e1f53c5)</span></li>

 <li>applets/digital-clock/plugin/timezonemodel.cpp <span style="color: \
grey">(1fbab09)</span></li>

 <li>applets/digital-clock/plugin/timezonesi18n.h <span style="color: \
grey">(PRE-CREATION)</span></li>

 <li>applets/digital-clock/plugin/timezonesi18n.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>

</ul>

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






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








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


--===============5701712009965201415==--



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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