Changeset 7216


Ignore:
Timestamp:
08/22/2011 07:45:09 PM (3 years ago)
Author:
alfonsoml
Message:

#8159 Avoid error if the default language hasn't been set in the browser

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r7215 r7216  
    6565                <li><a href="http://dev.ckeditor.com/ticket/6212">#6212</a> : [WebKit] Editor resize may scroll the host page.</li> 
    6666                <li><a href="http://dev.ckeditor.com/ticket/7908">#7908</a> : [IE] Unlink command is sometimes missing from the context menu of a link.</li> 
     67                <li><a href="http://dev.ckeditor.com/ticket/8159">#8159</a> : Editor fails to load if the browser has no default language set.</li> 
    6768                <li>Updated the following language files:<ul> 
    6869                        <li><a href="http://dev.ckeditor.com/ticket/8128">#8128</a> : Italian;</li> 
  • CKEditor/trunk/_source/core/lang.js

    r6904 r7216  
    134134                { 
    135135                        var languages = this.languages; 
    136                         probeLanguage = probeLanguage || navigator.userLanguage || navigator.language; 
     136                        probeLanguage = probeLanguage || navigator.userLanguage || navigator.language || defaultLanguage; 
    137137 
    138138                        var parts = probeLanguage 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy