Making WordPress.org

Changeset 1792


Ignore:
Timestamp:
07/27/2015 08:40:14 PM (10 years ago)
Author:
ocean90
Message:

Rosetta: RTL support for the roles plugin.

see #1101.

Location:
sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/class-translation-editors-list-table.php

    r1786 r1792  
    237237                if ( $parent->id != $project_id ) {
    238238                    $name = sprintf(
    239                         '%s → %s',
     239                        /* translators: 1: Parent project name, 2: Child project name */
     240                        __( '%1$s →  %2$s', 'rosetta' ),
    240241                        esc_html( $parent->name ),
    241242                        esc_html( $this->projects[ $project_id ]->name )
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r1786 r1792  
    226226     */
    227227    public function enqueue_styles() {
    228         wp_enqueue_style( 'rosetta-roles', plugins_url( '/css/rosetta-roles.css', __FILE__ ), array(), '2' );
     228        $suffix = is_rtl() ? '-rtl' : '';
     229        wp_enqueue_style( 'rosetta-roles', plugins_url( "/css/rosetta-roles$suffix.css", __FILE__ ), array(), '2' );
    229230    }
    230231
Note: See TracChangeset for help on using the changeset viewer.