collector->get_data(); $this->before_non_tabular_output(); echo '
'; echo '

get_locale()

'; echo '

' . esc_html( $data->locale ) . '

'; echo '
'; echo '
'; echo '

get_user_locale()

'; echo '

' . esc_html( $data->user_locale ) . '

'; echo '
'; echo '
'; echo '

determine_locale()

'; echo '

' . esc_html( $data->determined_locale ) . '

'; echo '
'; if ( isset( $data->mlp_language ) ) { echo '
'; echo '

'; printf( /* translators: %s: Name of a multilingual plugin */ esc_html__( '%s Language', 'query-monitor' ), 'MultilingualPress' ); echo '

'; echo '

' . esc_html( $data->mlp_language ) . '

'; echo '
'; } if ( isset( $data->pll_language ) ) { echo '
'; echo '

'; printf( /* translators: %s: Name of a multilingual plugin */ esc_html__( '%s Language', 'query-monitor' ), 'Polylang' ); echo '

'; echo '

' . esc_html( $data->pll_language ) . '

'; echo '
'; } echo '
'; echo '

get_language_attributes()

'; echo '

' . esc_html( $data->language_attributes ) . '

'; echo '
'; if ( ! empty( $data->languages ) ) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach ( $data->languages as $textdomain => $mofiles ) { foreach ( $mofiles as $mofile ) { echo ''; if ( $mofile['handle'] ) { echo ''; } else { echo ''; } echo ''; if ( self::has_clickable_links() ) { echo ''; } else { echo ''; } echo ''; if ( $mofile['found'] ) { echo ''; } else { echo ''; } echo ''; } } echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
' . esc_html__( 'Text Domain', 'query-monitor' ) . '' . esc_html__( 'Type', 'query-monitor' ) . '' . esc_html__( 'Caller', 'query-monitor' ) . '' . esc_html__( 'Translation File', 'query-monitor' ) . '' . esc_html__( 'Size', 'query-monitor' ) . '
' . esc_html( $mofile['domain'] ) . ' (' . esc_html( $mofile['handle'] ) . ')' . esc_html( $mofile['domain'] ) . '' . esc_html( $mofile['type'] ) . ''; echo self::output_filename( $mofile['caller']['display'], $mofile['caller']['file'], $mofile['caller']['line'] ); // WPCS: XSS ok. echo ''; echo self::build_toggler(); // WPCS: XSS ok; echo '
    '; echo '
  1. '; // undefined: echo self::output_filename( $mofile['caller']['display'], $mofile['caller']['file'], $mofile['caller']['line'] ); // WPCS: XSS ok. echo '
  2. '; echo '
'; if ( $mofile['file'] ) { if ( $mofile['found'] && 'jed' === $mofile['type'] && self::has_clickable_links() ) { echo self::output_filename( QM_Util::standard_dir( $mofile['file'], '' ), $mofile['file'], 1, true ); // WPCS: XSS ok. } else { echo esc_html( QM_Util::standard_dir( $mofile['file'], '' ) ); } } else { echo '' . esc_html__( 'None', 'query-monitor' ) . ''; } echo ''; echo esc_html( sprintf( /* translators: %s: Memory used in kilobytes */ __( '%s kB', 'query-monitor' ), number_format_i18n( $mofile['found'] / 1024, 1 ) ) ); echo ''; echo esc_html__( 'Not Found', 'query-monitor' ); echo '
 '; echo esc_html( sprintf( /* translators: %s: Memory used in kilobytes */ __( '%s kB', 'query-monitor' ), number_format_i18n( $data->total_size / 1024, 1 ) ) ); echo '
'; } $this->after_non_tabular_output(); } /** * @param array $menu * @return array */ public function admin_menu( array $menu ) { $args = array( 'title' => esc_html( $this->name() ), ); $menu[ $this->collector->id() ] = $this->menu( $args ); return $menu; } } /** * @param array $output * @param QM_Collectors $collectors * @return array */ function register_qm_output_html_languages( array $output, QM_Collectors $collectors ) { $collector = QM_Collectors::get( 'languages' ); if ( $collector ) { $output['languages'] = new QM_Output_Html_Languages( $collector ); } return $output; } add_filter( 'qm/outputter/html', 'register_qm_output_html_languages', 81, 2 );