Support » Plugin: Login Widget With Shortcode » Language files doesn’t work. Howdy hardcoded?

  • wpgerd

    (@wpgerd)


    Hello,

    in the past, after login the visitor got something like this: “Howdy, Name”.
    Howdy was a string and translated in several language. Today I noticed, since update to 5.7.2 this is hardcoded in login_afo_widget.php:

    if($link_in_username){
    			$link_with_username = '<a href="' . esc_url( get_permalink($link_in_username) ) . '" ' . apply_filters( 'lwws_username_link_a_tag', get_permalink($link_in_username) ) . '>' . apply_filters( 'lwws_welcome_text', __('Howdy,','login-sidebar-widget') ) . ' ' . $current_user->display_name . '</a>';
    		} else {
    			$link_with_username = apply_filters( 'lwws_welcome_text', __('Howdy,','login-sidebar-widget') ) . ' ' . $current_user->display_name;
    		}

    If I change there, I got “Guten Tag, Name” after login. But I know this is not got practice. Can you please made this string ready for translation?

    I also noticed, there are two locations for translation files:
    1) \wp-content\languages\plugins\login-sidebar-widget-de_DE.po
    and
    2) /wp-content/plugins/login-sidebar-widget/languages/login-sidebar-widget-de_DE.po

    The second one contains only 7 strings, the first one round about 70. But in both Howdy is translatet to “Hallo”.

    Thanks!
    Gerd

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    also in new version 5.7.5 “Howdy” is still hardcoded in login_afo_widget.php. Language files doesn’t work with this 🙁

    Gerd

    Hello,

    Unless error, since version 5.7.8 “Howdy” is no longer hard-coded in login_afo_widget.php. I do not know where to find it.
    Thank you

    Claude

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Language files doesn’t work. Howdy hardcoded?’ is closed to new replies.