Support » Plugin: Theme My Login » [Plugin: Theme My Login] Multilang with new version of the plugin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Which URL’s are being affected? Just the login related URL’s or all?

    Just login related (login, register, lostpassword, etc…). All others works fine.

    In my theme I’m fetching urls via global variable;
    $GLOBALS['theme_my_login']->get_login_page_link( 'action=register' );
    Links returned by:
    Theme_My_Login_Template::get_action_links

    don’t have language code as well.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Try adding this to wp-content/plugins/theme-my-login-custom.php:

    function tml_page_link_filter( $link ) {
    	return qtrans_convertURL( $link );
    }
    add_filter( 'tml_page_link', 'tml_page_link_filter' );

    That should handle most, if not all, of TML’s links.

    Hi Jeff

    I don’t know how to thank you. I have added your code at the bottom of theme-my-login.php file and now I have all languages available in your plugin!

    Big Thanks once again

    Buszort

    Hi,

    What should I change if I want qtranslate to translate the title of my custom links that are created with theme my login?

    Thank you very much!

    Plugin Author Jeff Farthing

    (@jfarthing84)

    You would instead need to use the tml_title filter and whatever function qtranslate uses to translate strings.

    Tried Jeff’s function but it didn’t work. Another member did post something that did work here: http://wordpress.org/support/topic/patch-qtranslate-support-for-forms-that-are-redirected-after-submission

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Theme My Login] Multilang with new version of the plugin’ is closed to new replies.