Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/31/2016 05:50:50 AM (10 years ago)
Author:
netweb
Message:

i18n: Avoid using HTML tags in translation strings

Props ramiy, thebrandonallen
Fixes #2881

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/forums.php

    r6033 r6042  
    839839
    840840            // Forum scheduled
    841             9 => sprintf( __( 'Forum scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview forum</a>', 'bbpress' ),
     841            9 => sprintf(
     842                '%1$s <a target="_blank" href="%2$s">%3$s</a>',
     843                sprintf(
     844                    __( 'Forum scheduled for: %s.', 'bbpress' ),
    842845                    // translators: Publish box date format, see http://php.net/date
    843                     date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    844                     strtotime( $post_date ) ),
    845                     $forum_url ),
     846                    '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ), strtotime( $post_date ) ) . '</strong>'
     847                ),
     848                $forum_url,
     849                __( 'Preview forum', 'bbpress' )
     850            ),
    846851
    847852            // Forum draft updated
Note: See TracChangeset for help on using the changeset viewer.