[Resolved] add gettext support for 'font-weight' and 'text-transform'?

Home Forums Support [Resolved] add gettext support for 'font-weight' and 'text-transform'?

Home Forums Support add gettext support for 'font-weight' and 'text-transform'?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #423199
    Zesen

    hi Tom,

    in gp-premium/library/customizer/controls/class-typography-control.php, could you add gettext support for a few more labels in future updates? To be exact, I am talking about the text ‘normal’, ‘bold’, ‘none’, ‘capitalize’, ‘uppercase’, and ‘lowercase’ in:


    public function get_font_weight_choices() {
    return array(
    'normal' => esc_html( 'normal' ),
    'bold' => esc_html( 'bold' ),
    '100' => esc_html( '100' ),
    '200' => esc_html( '200' ),
    '300' => esc_html( '300' ),
    '400' => esc_html( '400' ),
    '500' => esc_html( '500' ),
    '600' => esc_html( '600' ),
    '700' => esc_html( '700' ),
    '800' => esc_html( '800' ),
    '900' => esc_html( '900' ),
    );
    }

    public function get_font_transform_choices() {
    return array(
    'none' => esc_html( 'none' ),
    'capitalize' => esc_html( 'capitalize' ),
    'uppercase' => esc_html( 'uppercase' ),
    'lowercase' => esc_html( 'lowercase' ),
    );
    }

    I understand they are standard phrases used in css but they are not descriptive enough for clients who do not speak English. Adding gettext support wouldn’t break backward compatibility I suppose?

    #423355
    Tom
    Lead Developer
    Lead Developer

    I agree – I just made this adjustment in the next update.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.