public/ckeditor/4.4dev/plugins/a11yhelp/dialogs/a11yhelp.js
function buildHelpContents() {
		var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' +
				'<span id="' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>',
			sectionTpl = '<h1>%1</h1><dl>%2</dl>',
			itemTpl = '<dt>%1</dt><dd>%2</dd>';

		var pageHtml = [],
			sections = lang.legend,
			sectionLength = sections.length;

		for ( var i = 0; i < sectionLength; i++ ) {
			var section = sections[ i ],
				sectionHtml = [],
				items = section.items,
				itemsLength = items.length;

			for ( var j = 0; j < itemsLength; j++ ) {
				var item = items[ j ],
					itemLegend = item.legend.replace( variablesPattern, replaceVariables );

				// (#9765) If some commands haven't been replaced in the legend,
				// most likely their keystrokes are unavailable and we shouldn't include
				// them in our help list.
				if ( itemLegend.match( variablesPattern ) )
					continue;

				sectionHtml.push( itemTpl.replace( '%1', item.name ).replace( '%2', itemLegend ) );
			}

			pageHtml.push( sectionTpl.replace( '%1', section.name ).replace( '%2', sectionHtml.join( '' ) ) );
		}

		return pageTpl.replace( '%1', pageHtml.join( '' ) );
	}
function buildHelpContents() {
		var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' +
				'<span id="' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>',
			sectionTpl = '<h1>%1</h1><dl>%2</dl>',
			itemTpl = '<dt>%1</dt><dd>%2</dd>';

		var pageHtml = [],
			sections = lang.legend,
			sectionLength = sections.length;

		for ( var i = 0; i < sectionLength; i++ ) {
			var section = sections[ i ],
				sectionHtml = [],
				items = section.items,
				itemsLength = items.length;

			for ( var j = 0; j < itemsLength; j++ ) {
				var item = items[ j ],
					itemLegend = item.legend.replace( variablesPattern, replaceVariables );

				// (#9765) If some commands haven't been replaced in the legend,
				// most likely their keystrokes are unavailable and we shouldn't include
				// them in our help list.
				if ( itemLegend.match( variablesPattern ) )
					continue;

				sectionHtml.push( itemTpl.replace( '%1', item.name ).replace( '%2', itemLegend ) );
			}

			pageHtml.push( sectionTpl.replace( '%1', section.name ).replace( '%2', sectionHtml.join( '' ) ) );
		}

		return pageTpl.replace( '%1', pageHtml.join( '' ) );
	}
function buildHelpContents ( ) { var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' + '<span id="' + id + '_arialbl" class="cke_voice_label">' + lang . contents + ' </span>' , sectionTpl = '<h1>%1</h1><dl>%2</dl>' , itemTpl = '<dt>%1</dt><dd>%2</dd>' ; var pageHtml = [ ] , sections = lang . legend , sectionLength = sections . length ; for ( var i = 0 ; i < sectionLength ; i ++ ) { var section = sections [ i ] , sectionHtml = [ ] , items = section . items , itemsLength = items . length ; for ( var j = 0 ; j < itemsLength ; j ++ ) { var item = items [ j ] , itemLegend = item . legend . replace ( variablesPattern , replaceVariables ) ; // (#9765) If some commands haven't been replaced in the legend,
 // most likely their keystrokes are unavailable and we shouldn't include
 // them in our help list.
 if ( itemLegend . match ( variablesPattern ) ) continue ; sectionHtml . push ( itemTpl . replace ( '%1' , item . name ) . replace ( '%2' , itemLegend ) ) ; } pageHtml . push ( sectionTpl . replace ( '%1' , section . name ) . replace ( '%2' , sectionHtml . join ( '' ) ) ) ; } return pageTpl . replace ( '%1' , pageHtml . join ( '' ) ) ; }
Create the help list directly from lang file entries.
Create the help list directly from lang file entries .