0
http://docs.ckeditor.com/#!/api/CKEDITOR.configCKEditor的语言得到错误的“用户语言”
如上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' : '',
}
}
我该怎么办?
非常感谢!它有助于解决我的问题。对于其他遇到同样问题的人,此代码必须添加 'from django.utils.translation import ugettext_lazy as _' this。然后,它会完全工作! –