ckeditor 语言出错 'user language'

ckeditor language get wrong 'user language'

http://docs.ckeditor.com/#!/api/CKEDITOR.config

正如上面的 API 文档所说,如果 lanaguage 为空,ckeditor 将显示默认语言所具有的语言。但是我的申请显示英文。

我的代码:

 CKEDITOR_CONFIGS = {
'default': {
    'toolbar': 'Custom',
    'toolbar_Custom': [
      [ 'Bold', 'Italic', 'Underline', 'Strike' ],
      [ 'NumberedList', 'BulletedList', '-',  'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
      [ 'Table', 'HorizontalRule', 'Smiley'],
      [  'Format', 'Font', 'FontSize' ],
      [ 'TextColor', 'BGColor' ],
    ],
    'width' : '100%',
    'defaultLanguage' : 'ko',
    'language' : '',
}

}

我该怎么办?

Django-CKEDITOR 实际上通过使用 settings.py 的语言设置覆盖了这个标志。您需要确保启用以下所有设置:

# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/

LANGUAGE_CODE = 'en'

LANGUAGES = [
    ('ko', _('Korean')),
    ('en', _('English')),
]

USE_I18N = True

MIDDLEWARE_CLASSES = [
   ...
   'django.middleware.locale.LocaleMiddleware',
]