I am unable change the default language for SCAYT.

I had assumed this would be taken from the interface language (UK English).

Should I be flagging this as a bug?

Comments

mkesicki’s picture

Status: Active » Fixed

You can change SCAYT language by expanding SCAYT options (click on arrow on SCAYT button) and then chose 'languages'. In dialog window which should appear you can choose language to use during checking text. If this doesn't help , please reopen this ticket and write if you see any errors in Firebug or similar tool.

mrpauldriver’s picture

Thanks for that, I have functionality working now, but find that the dictionary is not much use.

It corrects obviously mis-spelled words like 'asdsdasda' but seem unable to spot the difference between proper English and US English

For example 'colour' and 'localisation'

mkesicki’s picture

Status: Fixed » Closed (fixed)

Please remember that SCAYT is external service to check text syntax (http://www.webspellchecker.net/v3/index.html).
SCAYT is designed to check language correctness but of course as all software it can have some 'weaknesses' but it evolves. In general we think that using software which is specially designed to spell check is much better solution for this feature.

mrpauldriver’s picture

Status: Closed (fixed) » Active

Just reopening this.

Is there a way of setting a default language?

It seems that the default is always US English and this has to be changed each time the editor is loaded. Or am I missing something?

mrpauldriver’s picture

Status: Active » Closed (fixed)

I figured this out eventually. As below if anyone else needs the solution.

Edit the ckeditor.config.js file which is found at sites/all/modules/ckeditor/

Add the following line to ckeditor.config.js

config.language = 'uk-gb';

I found that it was also necessary to clear my browser history cache as well.

EDIT
------

I thought I had figured this out, as above. But actually this approach has not worked.

What is strange is that it seems to work some of time. Is the language selection, stored in a cookie perhaps?

Anonymous’s picture

  1. Open ckeditor.js - I found this file in the real ckeditor directory (e.g. /sites/all/libraries/ckeditor), not in the module.
  2. To set the default language, you have to change the the string 'en_US'. Just seach for it.
  3. Clear cache.

I use version 1.13 of the ckeditor module.

Found this solution here:
- http://designbyjeeba.blogspot.de/2010/06/change-scayt-language-in-drupal...

demonde’s picture

Issue summary: View changes

The right way is to put

config.scayt_sLang = 'de_DE';

(or whatever language)

in the advanced javascript configuration.

reference: http://docs.ckeditor.com/#!/guide/dev_howtos_scayt

demonde’s picture

I would like to change this to a feauture request, so the scayt language can be chosen.

ken hawkins’s picture

For others that come to this issue via google, know that you also need to disable the user's ability to specify a default language in the UI:

config.scayt_disableOptionsStorage = 'lang';
config.scayt_sLang = 'fr_FR';

This wasn't covered in the CKEditor docs; link to Github issue: https://github.com/ckeditor/ckeditor-dev/issues/1678

xoruna’s picture

Thanks ken hawkins!