<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added a reviewer: sandsmark.<br />Herald added a project: Frameworks.<br />ahmadsamir 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/D18317">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If the files of the the dictionary set in defaultLanguage= can't be<br />
loaded, instead of failing silently, try to load the locale language<br />
dictionary, and display a message informing the user of what's been done.</p>

<p>BUG: 325541<br />
FIXED-IN: 5.55.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Edit ~/.config/KDE/Sonnet.conf (or wherever your distro puts the conf file under the home dir, and set defaultLanguage= to something invalid/unavailable, say en_AB</li>
<li class="remarkup-list-item">Start e.g. kate and try to spell check something; note that doesn't work and this error log is spewed to the terminal: "sonnet.core: No language dictionaries for the language: "de_AT_ost""</li>
<li class="remarkup-list-item">Apply the diff and try again</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R246 Sonnet</div></div></div><br /><div><strong>BRANCH</strong><div><div>invalid-defaultLanguage</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18317">https://phabricator.kde.org/D18317</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/CMakeLists.txt<br />
src/core/loader.cpp<br />
src/core/sonnet-core.pro</div></div></div><br /><div><strong>To: </strong>ahmadsamir, sandsmark<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>