• Resolved Angelo Rocha

    (@angelorocha)


    I am developing a theme using REDUX, I am internationalizing my theme, but in the redux functions the translation does not work, the .po file is generated normally, but the translation does not work only in the redux strings.

    Code example:

    $opt_name = 'wpss_option';
    
    $theme = wp_get_theme();
    
    $args = array(
        'display_name'       => $theme->get('Name'),
        'display_version'    => $theme->get('Version'),
        'menu_icon'          => 'dashicons-star-filled',
        'menu_type'          => 'menu',
        'menu_title'         => esc_html__('Theme Options', 'wpss'),// not translate
        //'page_parent'     => 'themes.php',
        'page_priority'      => 9,
        'page_permissions'   => 'manage_options',
        'page_slug'          => '_wpss_options_page',
        'page_title'         => __('Theme Options Page', 'wpss'),// not translate
        'show_import_export' => true,
        'customizer'         => true,
        'dev_mode'           => false,
        'footer_text'        => '',
    ...
    );
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Translate on custom option page not work’ is closed to new replies.