Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/21/2020 09:19:59 AM (3 years ago)
Author:
slaffik
Message:

XProfile: make admin js text nodes translatable

Certain user-facing strings added in the XProfile admin area using JavaScript were not translatable. We moved them to PHP and injected in JS using wp_localize_scripts().

Fixes #7076 (trunk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-cssjs.php

    r12401 r12828  
    5353        $strings = array(
    5454            'do_settings_section_field_types' => array(),
    55             'do_autolink' => '',
     55            'do_autolink'                     => '',
     56            'text'                            => array(
     57                'default_value' => __( 'Default Value', 'buddypress' ),
     58                'delete'        => __( 'Delete', 'buddypress' ),
     59            ),
    5660        );
    5761
Note: See TracChangeset for help on using the changeset viewer.