Opened 5 years ago

Closed 4 years ago

#13016 closed Bug (expired)

lang.js: that[ languageCode ].dir is undefined

Reported by: Tom Elssjö Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

After line 53 in file core/lang.js the following code is found:

that[ languageCode ].dir = that.rtl[ languageCode ] ? 'rtl' : 'ltr';

This fails because that[ languageCode ] have not been defined yet. This can be fixed by adding:

if(!that[ languageCode ]) {
					that[ languageCode ] = {};
				}

before that.

Change History (2)

comment:1 Changed 5 years ago by Jakub Ś

Status: newpending
Version: 4.4.7

This fails because that[ languageCode ] have not been defined yet.

Thanks for the solution but you have forgotten to provide the configuration or test case in which editor fails.
When loading editor or changing languages, I can't see any errors being thrown. What are the exact actions, I need to perform, to get this error thrown?

comment:2 Changed 4 years ago by Piotrek Koszuliński

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy