Review Request 120383: Fix uses of i18n before the main component has been created

Michal Malek michalm at jabster.pl
Sat Sep 27 10:09:16 UTC 2014


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


Please cherry-pick those changes to master

- Michal Malek


On Wrz 27, 2014, 10:07 rano, Albert Astals Cid wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120383/
> -----------------------------------------------------------
> 
> (Updated Wrz 27, 2014, 10:07 rano)
> 
> 
> Review request for Gardening Team and K3b.
> 
> 
> Repository: k3b
> 
> 
> Description
> -------
> 
> It is wrong to do i18n calls before the main component has been created and the domain set. This delays the two cases present in K3b by:
>  a) Using KLocalizedString instead i18n so that the real translation is delayed until toString is called
>  b) Splitting m_volumeId into m_volumeId and a default value so we don't need to call i18n from the constructor of IsoOptions that is static in a file.
> 
> 
> Diffs
> -----
> 
>   libk3b/projects/datacd/k3bisooptions.h ca8791a 
>   libk3b/projects/datacd/k3bisooptions.cpp fe19754 
>   src/k3bwritingmodewidget.cpp 6522172 
> 
> Diff: https://git.reviewboard.kde.org/r/120383/diff/
> 
> 
> Testing
> -------
> 
> Starts, warning is gone, strings are still there.
> 
> 
> Thanks,
> 
> Albert Astals Cid
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-gardening/attachments/20140927/e86affe5/attachment.html>


More information about the Kde-gardening mailing list