Making WordPress.org


Ignore:
Timestamp:
12/14/2021 01:30:57 AM (3 years ago)
Author:
dd32
Message:

Handbooks / HelpHub: Internationalise the Title & Top links, allowing HelpHub to translate it with a different text-domain.

See #5979.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r11354 r11366  
    4343        $this->args = (object) wp_parse_args( $args, array(
    4444            'header_text' => __( 'Topics', 'wporg' ),
     45            'top_text'    => __( 'Top ↑', 'wporg' ),
    4546        ) );
    4647    }
     
    187188
    188189            if ( ! $first ) {
    189                 $replacement .= '<p class="toc-jump"><a href="#top">' . __( 'Top &uarr;', 'wporg' ) . '</a></p>';
     190                $replacement .= '<p class="toc-jump"><a href="#top">' . $this->args->top_text . '</a></p>';
    190191            } else {
    191192                $first = false;
Note: See TracChangeset for help on using the changeset viewer.