Making WordPress.org

Changeset 8395


Ignore:
Timestamp:
03/05/2019 08:38:52 AM (6 years ago)
Author:
ocean90
Message:

Translate: Restore mapping for glossary entries.

Fixes #4238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php

    r8386 r8395  
    3131 */
    3232$more_links = apply_filters( 'gp_translation_row_template_more_links', $more_links, $project, $locale, $translation_set, $t );
     33
     34if ( is_object( $glossary ) ) {
     35    if ( ! isset( $glossary_entries_terms ) ) {
     36        $glossary_entries = $glossary->get_entries();
     37        $glossary_entries_terms = gp_sort_glossary_entries_terms( $glossary_entries );
     38    }
     39
     40    $t = map_glossary_entries_to_translation_originals( $t, $glossary, $glossary_entries_terms );
     41}
    3342?>
    3443<tr class="editor <?php echo gp_translation_row_classes( $t ); ?>" id="editor-<?php echo esc_attr( $t->row_id ); ?>" row="<?php echo esc_attr( $t->row_id ); ?>">
Note: See TracChangeset for help on using the changeset viewer.