context... I have 3 languages installed on my computer for spelling purposes... English, Romanian, Italian... English is the default... When I start chat with a contact to whom I never assigned a language it correctly defaults to English, Let us call that contact A. Now I set the spelling language of a contact to let us say Romanian, contact B... (if I close the text-ui and restart the coversation, the language is correctly set) I start a conversation with B and then with A (my setting is to start a new tab in the same text-ui). Now the language of contact A is Romanian... Practically with the ways are now a contact with no language set gets assigned a random language from the ones available. the default language or preferred (I think kde calls it like that), it is the first entry in the list of languages it returns iirc. Alin Reproducible: Always
Spell check language is correct, that combo box does not default to the correct thing when shown
I know I was trying to be polemic... If I would not be so lazy... I could in principle even fix it. Alin
This is really annoying me. This is now blocking the 0.6.0 release.
Aha, found a problem, KLocale()->language() is not the spell check language, just the general one. This is wrong. I assume there's a method in Sonnet we should be using.
Should be Sonnet::Settings::defaultLanguage()
Git commit 3ec947f7c7e3c223497984b47742e3e4a0cc6009 by Alin M Elena. Committed on 26/03/2013 at 19:18. Pushed by elena into branch 'master'. Sets correctly the default spell language for a new tab REVIEW: 109740 M +4 -2 lib/chat-widget.cpp http://commits.kde.org/telepathy-text-ui/3ec947f7c7e3c223497984b47742e3e4a0cc6009