path, $locale->slug, $translation_set->slug ), $translation_set->name ), 0 === $project->id ? __( 'Locale Glossary', 'glotpress' ) : __( 'Project Glossary', 'glotpress' ), ) ); $ge_delete_ays = __( 'Are you sure you want to delete this entry?', 'glotpress' ); $delete_url = gp_url_join( $url, '-delete' ); $glossary_options = compact( 'can_edit', 'url', 'delete_url', 'ge_delete_ays' ); gp_enqueue_scripts( 'gp-glossary' ); wp_localize_script( 'gp-glossary', '$gp_glossary_options', $glossary_options ); gp_tmpl_header(); /* translators: 1: Locale english name. 2: Project name. */ $glossary_title = __( 'Glossary for %1$s translation of %2$s', 'glotpress' ); if ( 0 === $project->id ) { /* translators: %s: Locale english name. */ $glossary_title = __( 'Glossary for %s', 'glotpress' ); } ?>

name ), esc_html( $project->name ) ); ?>

description, $glossary ); if ( $glossary_description ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Sanitized via filters. echo '
' . $glossary_description . '
'; } ?> 0 ) { foreach ( $glossary_entries as $entry ) { gp_tmpl_load( 'glossary-entry-row', get_defined_vars() ); } } else { ?>

path . $locale->slug . $translation_set->slug ); ?>

path, $locale_slug, $translation_set_slug ), array( 'glossary', '-import' ) ), __( 'Import', 'glotpress' ) ); ?> • path, $locale_slug, $translation_set_slug ), array( 'glossary', '-export' ) ), __( 'Export as CSV', 'glotpress' ) ); ?>