[[MediaWiki:Ajax-category-hook-error/en]]

ajax-category-hook-error ("[[:MediaWiki:Ajax-category-hook-error/en]]") is somewhat unclear to me. What is a "local function" in this context? I do have a faint understanding since I am a programmer, but am uncertain of course. Can we have a less technical wording? I am afraid, that this will not be understood by general users as it is.

Purodha Blissenbach00:42, 2 August 2011

I don't see any other phrasing at the moment. This is how the message is used (in local JavaScript):

	runHooks: function( oldtext, type, category, categoryNew ) {
		// No hooks registered
		if ( !this.hooks[type] ) {
			return oldtext;
		} else {
			for ( var i = 0; i < this.hooks[type].length; i++ ) {
				oldtext = this.hooks[type][i]( oldtext, category, categoryNew );
				if ( oldtext === false ) {
					this.showError( mw.msg( 'ajax-category-hook-error', category ) );
					return;
				}
			}
			return oldtext;
		}
	}
Siebrand08:12, 2 August 2011