Opened 9 years ago

Closed 9 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 9 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 9 years ago by Piotrek Koszuliński

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy