<table><tr><td style="">dhaumann added a comment.
</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/D18125">View Revision</a></tr></table><br /><div><div><p>Isn't en_US too cryptic? I suggest to use the just added KLanguageName (see <a href="https://phabricator.kde.org/D10446" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: line-through;">D10446</a>). With this, you can get a nice name like "English (USA)". Alternatively, you may use QLocale("en_US").nativeLanguageName(), but I did not test this, so it may be incorrect code.</p>
<p>Besides that, some other questions:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">What if you have multiple views of the same document, does it still show the correct language, even if the language is changed in one view?</li>
<li class="remarkup-list-item">What if you have multiple mainwindows (View > New Window), since then you have multiple StatusBars. Will that still all correctly work?</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18125">https://phabricator.kde.org/D18125</a></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor<br /><strong>Cc: </strong>dhaumann, kwrite-devel, kde-frameworks-devel, KTextEditor, hase, michaelh, ngraham, bruns, demsking, cullmann, sars<br /></div>