Skip to:
Content

BuddyPress.org

Changeset 10272


Ignore:
Timestamp:
10/14/2015 03:07:15 PM (9 years ago)
Author:
djpaul
Message:

Templates: avoid using HTML tags in translation strings

Fixes #6660

Props ramie

Location:
trunk/src/bp-templates/bp-legacy/buddypress/members
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r10181 r10272  
    176176                            if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    177177                                <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    178                                     <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
     178                                    <?php
     179                                    printf(
     180                                        __( 'This field can be seen by: %s', 'buddypress' ),
     181                                        '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     182                                    );
     183                                    ?>
     184                                    <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
    179185                                </p>
    180186
     
    191197                            <?php else : ?>
    192198                                <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    193                                     <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
     199                                    <?php
     200                                    printf(
     201                                        __( 'This field can be seen by: %s', 'buddypress' ),
     202                                        '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     203                                    );
     204                                    ?>
    194205                                </p>
    195206                            <?php endif ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r10181 r10272  
    5454                <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    5555                    <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    56                         <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
     56                        <?php
     57                        printf(
     58                            __( 'This field can be seen by: %s', 'buddypress' ),
     59                            '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     60                        );
     61                        ?>
     62                        <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    5763                    </p>
    5864
     
    6874                <?php else : ?>
    6975                    <div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    70                         <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
     76                        <?php
     77                        printf(
     78                            __( 'This field can be seen by: %s', 'buddypress' ),
     79                            '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     80                        );
     81                        ?>
    7182                    </div>
    7283                <?php endif ?>
Note: See TracChangeset for help on using the changeset viewer.