• Please can anyone help me I have three websites with the same issue

    I use qTranslate and theme my login plugins when the user want to register or login or he lost his password and enter empty field or wrong username or wrong email and hit register or login or get new password the language changes to the default language and the error messages show in the default language

    briefly when the user get error message in theme my login plugin he redirect to the default language and the error messages show in the default language

    example: if he want to register in x language and the url was:

    example.com/x/register/

    and enter wrong email or username then hit register the language change to the default language and the error message and everything else show in the default language and the url become:

    example.com/register/

    http://wordpress.org/plugins/theme-my-login/

Viewing 1 replies (of 1 total)
  • Thread Starter Mohammed Al-Mahdawi

    (@engrmth)

    I do it

    The solution for this problem is:

    Create theme-my-login-custom.php file and put it in your plugins directory

    wp-content\plugins

    And put in it the following code:

    <?php
          function tml_page_link_filter( $url ) {
            return qtrans_convertURL( $url);
          }
          add_filter( 'tml_action_url', 'tml_page_link_filter', 20); 
    
          function tml_wp_redirect( $url ) {
            return qtrans_convertURL( $url);
          }
          add_filter( 'wp_redirect', 'tml_wp_redirect', 20);

    Enjoy & Share

Viewing 1 replies (of 1 total)
  • The topic ‘Theme My Login Plugin Change Site Language to The Default Language’ is closed to new replies.