[BUGFIX] RTE Spellcheck:default ISO code dictionary should be lowercase 28/33228/2
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 9 Oct 2014 14:25:48 +0000 (10:25 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 9 Oct 2014 14:28:01 +0000 (16:28 +0200)
When no default dictionary is configured for the ISO code of the
language of current content, the ISO code itself is taken as the name
of the Aspell dictionary. This should be lowercase.

Releases: master, 6.2
Resolves: #62128
Change-Id: I346469b0c1cd8a44227576b0d17cf231c205f961
Reviewed-on: http://review.typo3.org/33228
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/htmlarea/plugins/SpellChecker/spell-checker.js

index 559cf30..0c9089a 100644 (file)
@@ -147,7 +147,7 @@ HTMLArea.SpellChecker = Ext.extend(HTMLArea.Plugin, {
                                                        xtype: 'hidden',
                                                        itemId: 'dictionary',
                                                        name: 'dictionary',
-                                                       value: this.defaultDictionary ? this.defaultDictionary : this.contentISOLanguage
+                                                       value: this.defaultDictionary ? this.defaultDictionary : this.contentISOLanguage.toLowerCase()
                                                },{
                                                        xtype: 'hidden',
                                                        name: 'pspell_charset',