public/ckeditor/4.4dev/core/lang.js
function( languageCode, defaultLanguage, callback ) {
			// If no languageCode - fallback to browser or default.
			// If languageCode - fallback to no-localized version or default.
			if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] )
				languageCode = this.detect( defaultLanguage, languageCode );

			var that = this,
				loadedCallback = function() {
					that[ languageCode ].dir = that.rtl[ languageCode ] ? 'rtl' : 'ltr';
					callback( languageCode, that[ languageCode ] );
				};

			if ( !this[ languageCode ] )
				CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( 'lang/' + languageCode + '.js' ), loadedCallback, this );
			else
				loadedCallback();
		}
function( languageCode, defaultLanguage, callback ) {
			// If no languageCode - fallback to browser or default.
			// If languageCode - fallback to no-localized version or default.
			if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] )
				languageCode = this.detect( defaultLanguage, languageCode );

			var that = this,
				loadedCallback = function() {
					that[ languageCode ].dir = that.rtl[ languageCode ] ? 'rtl' : 'ltr';
					callback( languageCode, that[ languageCode ] );
				};

			if ( !this[ languageCode ] )
				CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( 'lang/' + languageCode + '.js' ), loadedCallback, this );
			else
				loadedCallback();
		}
function ( languageCode , defaultLanguage , callback ) { // If no languageCode - fallback to browser or default. // If languageCode - fallback to no-localized version or default. if ( ! languageCode || ! CKEDITOR . lang . languages [ languageCode ] ) languageCode = this . detect ( defaultLanguage , languageCode ) ; var that = this , loadedCallback = function ( ) { that [ languageCode ] . dir = that . rtl [ languageCode ] ? 'rtl' : 'ltr' ; callback ( languageCode , that [ languageCode ] ) ; } ; if ( ! this [ languageCode ] ) CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( 'lang/' + languageCode + '.js' ) , loadedCallback , this ) ; else loadedCallback ( ) ; }
Loads a specific language file, or auto detects it. A callback is
then called when the file gets loaded.

@param {String} languageCode The code of the language file to be
loaded. If null or empty, autodetection will be performed. The
same happens if the language is not supported.
@param {String} defaultLanguage The language to be used if
`languageCode` is not supported or if the autodetection fails.
@param {Function} callback A function to be called once the
language file is loaded. Two parameters are passed to this
function: the language code and the loaded language entries.
Loads a specific language file or auto detects it . A callback is then called when the file gets loaded .