Support » Plugins and Hacks » [Resolved] [Plugin: UI Labs] Classes translated

[Resolved] [Plugin: UI Labs] Classes translated

Viewing 8 replies - 1 through 8 (of 8 total)
  • Oh. That’s why it’s not working for me. I hope that this can be fixed 🙂

    Plugin Contributor JohnONolan


    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!


    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:

    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 🙂

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


    See my solution, it is for all languages.

    thanks! it works!

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] [Plugin: UI Labs] Classes translated’ is closed to new replies.