[k3b] Review Request 120383: Fix uses of i18n before the main component has been created
Albert Astals Cid
aacid at kde.org
Fri Sep 26 20:47:47 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120383/
-----------------------------------------------------------
(Updated set. 26, 2014, 8:47 p.m.)
Review request for K3b, Scarlett Clark and Jeremy Whiting.
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/k3b/attachments/20140926/5394a4d8/attachment.html>
More information about the k3b
mailing list