<table><tr><td style="">sars created this revision.<br />sars added a project: Windows.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />sars requested review of this revision.
</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/D25599">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>On Windows, the plugin metadata always follows the current region setting and any language set for the application is ignored.</p>

<p>The reason seems to be that QLocale is not changed even if the LANGUAGE env is set. To work around this we can read the LANGUAGE env variable and use that if it is set in stead of QLocale::name().</p>

<p>I'm not 100% sure if this is the right solution, but this at least makes the plugin configuration page in Kate use the same language as the rest of the application if the language is manually sett.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Open the plugin configuration page in Kate on Windows and see that the plugin information uses the same language as the rest of the application.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25599">https://phabricator.kde.org/D25599</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/plugin/kpluginmetadata.cpp</div></div></div><br /><div><strong>To: </strong>sars<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, sdepiets, michaelh, ngraham, bruns, cullmann, kfunk<br /></div>