<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5208" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In KDE4, Plasma used to be able to load bundled translations with any<br />
plasmoid downloaded from kde-look.</p>
<p>It used added a KGlobal::dirs()->addResourceDir("locale") at runtime<br />
when we load a plasmoid.</p>
<p>Rather than just constantly expanding the list of locale search paths,<br />
this patch allows for adding a custom path for a specific translation<br />
domain which should be a lot faster and also prevent any collisions.</p>
<p>A static method is added to KCatalog, then proxied via KLocalizedString<br />
as that header is exported.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Added unit test<br />
Also patched plasma-framework and debug showed it loaded .po files <br />
from the correct directory</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R249 KI18n</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5208" rel="noreferrer">https://phabricator.kde.org/D5208</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/klocalizedstringtest.cpp<br />
autotests/klocalizedstringtest.h<br />
src/kcatalog.cpp<br />
src/kcatalog_p.h<br />
src/klocalizedstring.cpp<br />
src/klocalizedstring.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, Frameworks<br /></div>