WordPress.org

Forums

Google Translate WordPress » WP Translate
[resolved] can the language be dynamically switched on site load (3 posts)

  1. maryoconnor
    Member
    Posted 1 year ago #

    Hi,

    I'm working on a site that uses the WP Translate plugin.

    The site is in english as standard.

    I'm just wondering if it is possible to change the language by making a php function call when the page is loading, rather than leaving it to be user to do so?

    I'm hoping to develop a site in Italian and provide a link to a site in English and basically I would like to be able to automatically change the language if the visitor clicks on the link to the english site so that it is displayed in italian without any user interaction.

    Is this possible?

    Many Thanks.

    Mary

    http://wordpress.org/plugins/wp-translate/

  2. hahncgdev
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    This cannot be currently done with WP Translate.

  3. maryoconnor
    Member
    Posted 1 year ago #

    Hi,

    I actually figured out how to do this.

    I simply append #googtrans(en|it) to the url for a site that has google translate loaded and it works beautifully.

    Check out this site:
    http://www.englishandsport.com/uk-home/#googtrans(en|it)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic