WordPress.org

Ready to get started?Download WordPress

Forums

Multilingual Press
[resolved] Language Switcher doesn't work perfectly (2 posts)

  1. DJ_Drehbank
    Member
    Posted 6 months ago #

    Hello,

    thank you for this great Plugin.
    I've got the following problem:

    The site I'm working on has three languages: DE, EN, RU, but the language switcher only shows two links, it misses the one to current language (OK, this isn't super-nescessary, but my customer likes to see all three of them).
    I tried the method described on your blog (http://make.marketpress.com/multilingualpress/2014/04/create-a-custom-language-switcher/).

    You can see it here on the german version:
    http://fc-grafik.net/pol/
    It only shows the RU and EN links.
    Do I have to put my german blog into a sub-directory?
    I would appreciate your help or a hint.

    Thanks in Advance

    Frank

    https://wordpress.org/plugins/multilingual-press/

  2. toscho
    Member
    Plugin Author

    Posted 6 months ago #

    To change that code, you can insert a new line right before the return statement:

    $items[] = sprintf(
    	'<a href="">%s</a>',
    	get_blog_language( get_current_blog_id(), FALSE )
    );

Reply

You must log in to post.

About this Plugin

About this Topic