Extend GSspell server to support multiple languages if aspell has

dictionaries for those languages installed.

Note: At present, users or an administrator must manually update the
Info.plist file of GSspell.service to really be able to use languages
besides American English. Hints for a better solution welcome.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29683 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2010-02-20 01:27:44 +00:00
parent 3a8b974deb
commit 903272b7b4
3 changed files with 278 additions and 100 deletions

View file

@ -236,7 +236,8 @@ static int __documentTag = 0;
- (void)_populateDictionaryPulldown: (NSArray *)dictionaries
{
[_dictionaryPulldown removeAllItems];
[_dictionaryPulldown addItemsWithTitles: dictionaries];
[_dictionaryPulldown addItemsWithTitles:
[dictionaries sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]];
[_dictionaryPulldown selectItemWithTitle: _language];
}