WordPress.org

Ready to get started?Download WordPress

Forums

UI Labs
[resolved] Classes translated (9 posts)

  1. Rahe
    Member
    Posted 3 years ago #

    Hi,

    Your plugin is quite usefull for me, but i use WordPress in French and the class draft applied on the status himself is translated from "draft" to "brouillon". So your css rules don't work anymore, but before you where using the class of the tr ( not translated ).

    Regards,
    Rahe

    http://wordpress.org/extend/plugins/ui-labs/

  2. niska
    Member
    Posted 3 years ago #

    Oh. That's why it's not working for me. I hope that this can be fixed :)

  3. JohnONolan
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Guys,

    As this is an experimental plugin - translations are currently not supported. This isn't laziness, it's a limitation of the hooks that we can actually get to in core to change the markup and apply styling.

    Hopefully we'll be able to find a better way to address this later on but it's not something that can be fixed in the immediate future.

    Very sorry!

    John

  4. hebbet
    Member
    Posted 3 years ago #

    Hi John,
    thanks for the answer.
    a workaround:
    change the classes of the css file from english to the translation in your language.
    I did this for German here:
    http://www.pascal90.de/2011/03/experimentelles-design-furs-wordpress-admin/

  5. Radovan
    Member
    Posted 2 years ago #

    Or another solution:

    Replace function labs_display_post_states in ui-labs.php with this:

    function labs_display_post_states( $post_states ) {
       foreach ( $post_states as $post_state => $post_state_title )
           $post_state_array[] = '<span class="' . strtolower( str_replace( ' ', '-', $post_state ) ) . '">' . $post_state_title . '</span>';
       return $post_state_array;
    }

    and it will works in all languages :)

  6. maarten2001
    Member
    Posted 2 years ago #

    i am dutch and i have the same problem. can somebody make a code for me?

    thanks.

  7. Radovan
    Member
    Posted 2 years ago #

    See my solution, it is for all languages.

  8. maarten2001
    Member
    Posted 2 years ago #

    thanks! it works!

  9. Carsten Bach
    Member
    Posted 2 years ago #

    After doing the exact same workaround like Radovan did, I found this post. ;)

    And I only have one addition to his solution.
    Because we're going to use the Array-keys of $post_states, there have to be one small fix in the 1-poststatuses.css:
    Replace .password-protected with .protected and everything will be fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags