<table><tr><td style="">safaalfulaij 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/D9793" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I went through Qt code, as Qt applications are opened with my language correctly where KF ones (those with QM) don't.<br />
The whole issue is that we have each locale's translations in a separate folder (<tt style="background: #ebebeb; font-size: 13px;">ar/LC_MESSAGES</tt>, <tt style="background: #ebebeb; font-size: 13px;">en/LC_MESSAGES</tt>, <tt style="background: #ebebeb; font-size: 13px;">de/LC_MESSAGES</tt>, etc.)<br />
Qt uses internally <a href="https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qtranslator.cpp#n631" class="remarkup-link" target="_blank" rel="noreferrer"><tt style="background: #ebebeb; font-size: 13px;">find_translation</tt></a> which goes through a list of guesses to find the correct language, according to the LANGUAGE preferences and the locale itself.<br />
Maybe we can borrow that code and utilize it, that would be much better.</p>

<p>Thanks for opening this, <a href="https://phabricator.kde.org/p/wbauer/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;" rel="noreferrer">@wbauer</a>!</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9793" rel="noreferrer">https://phabricator.kde.org/D9793</a></div></div><br /><div><strong>To: </strong>wbauer, Frameworks<br /><strong>Cc: </strong>safaalfulaij, Build System<br /></div>