Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lukas Juhas

    (@lukasneptun)

    Weird, I can’t seem to replicate this issue, what other plugins are you using?

    Thanks,

    Lukas

    Thread Starter hmmux

    (@hmmux)

    None ?? I’ll try to explain better.

    Admin bar class is defined here:
    if ($is_enabled) {$status = _x('Enabled' ...

    The class is “Enabled” in default lang. This is where you assign it:

    public function ($wp_admin_bar) {
    $indicator = array('meta' => array('class' => $status...

    If I translate _x(‘Enabled’) for example to ‘идэвхж??лсэн’ (Mongolian), situation in admin bar looks like this:
    <li id="wp-admin-bar-ljmm-indicator" class="идэвхж??лсэн">

    But in public function style() background class is defined like #wp-admin-bar-ljmm-indicator.Enabled { background: rgba(159, 0, 0, 1) }

    So the background doesn’t become red.

    Plugin Author Lukas Juhas

    (@lukasneptun)

    Hey,

    Ohhhh gotcha now!

    Thanks, I’m gonna release fix in the next patch.

    Lukas

    Plugin Author Lukas Juhas

    (@lukasneptun)

    Hey,

    Fixed in 2.0.3,

    Thanks,

    Lukas

    Thread Starter hmmux

    (@hmmux)

    Thanks for quick response. I’ll post my language translation in github ??

    Plugin Author Lukas Juhas

    (@lukasneptun)

    Great, thanks! I’ll release it shortly!

    Lukas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Indicator loses style in backend when translated’ is closed to new replies.