acf_field_flexible_content::input_admin_enqueue_scriptspublicACF 5.3.2

Admin scripts enqueue for field.

Method of the class: acf_field_flexible_content{}

No Hooks.

Returns

null. Nothing (null).

Usage

$acf_field_flexible_content = new acf_field_flexible_content();
$acf_field_flexible_content->input_admin_enqueue_scripts();

Changelog

Since 5.3.2 Introduced.

acf_field_flexible_content::input_admin_enqueue_scripts() code ACF 6.8.8

public function input_admin_enqueue_scripts() {
	acf_localize_text(
		array(

			// identifiers
			'layout'  => esc_html__( 'layout', 'acf' ),
			'layouts' => esc_html__( 'layouts', 'acf' ),
			'Fields'  => esc_html__( 'Fields', 'acf' ),

			// Adding/deleting a layout.
			'Duplicate' => esc_html__( 'Duplicate', 'acf' ),
			'Delete' => esc_html__( 'Delete', 'acf' ),
			'Delete Layout' => esc_html__( 'Delete Layout', 'acf' ),
			/* translators: %s - Name of the Flexible content layout */
			'Delete %s' => esc_html__( 'Delete %s', 'acf' ),
			'Are you sure you want to delete the layout?' => esc_html__( 'Are you sure you want to delete the layout?', 'acf' ),
			/* translators: %s - Name of the Flexible content layout */
			'Are you sure you want to delete %s?' => esc_html__( 'Are you sure you want to delete %s?', 'acf' ),

			// Renaming a layout.
			'Rename Layout' => esc_html__( 'Rename Layout', 'acf' ),
			'Rename' => esc_html__( 'Rename', 'acf' ),
			'New Label' => esc_html__( 'New Label', 'acf' ),
			'Remove Custom Label' => esc_html__( 'Remove Custom Label', 'acf' ),

			// min / max
			'This field requires at least {min} {label} {identifier}' => esc_html__( 'This field requires at least {min} {label} {identifier}', 'acf' ),
			'This field has a limit of {max} {label} {identifier}' => esc_html__( 'This field has a limit of {max} {label} {identifier}', 'acf' ),
			'Maximum rows reached ({max})' => esc_html__( 'Maximum rows reached ({max})', 'acf' ),
			'Maximum {label} {identifier} reached ({max})' => esc_html__( 'Maximum {label} {identifier} reached ({max})', 'acf' ),

			// popup badge
			'{available} {label} {identifier} available (max {max})' => esc_html__( '{available} {label} {identifier} available (max {max})', 'acf' ),
			'{required} {label} {identifier} required (min {min})' => esc_html__( '{required} {label} {identifier} required (min {min})', 'acf' ),

			// field settings
			'Flexible Content requires at least 1 layout' => esc_html__( 'Flexible Content requires at least 1 layout', 'acf' ),
		)
	);
}