WordPress.org

Forums

Complete Language Switcher
Flags are failing to load (3 posts)

  1. Jon Hardison
    Member
    Posted 3 years ago #

    Just noticed that flags weren't loading properly by default. The directory that's being looked up by default is incorrect:
    /wp-content/plugins/complete-lang-switcher/flags/*
    ...where "lang" should be language.

    Other than that, it seems to be working perfectly. :-)
    Just thought you should know.

    http://wordpress.org/extend/plugins/complete-language-switch/

  2. Jon Hardison
    Member
    Posted 3 years ago #

    Please disregard. Thank you.

  3. Adam
    Member
    Posted 3 years ago #

    Why disregard?

    I see this issue with the version I just downloaded.

    http://sitename/wordpress/wp-content/plugins/complete-language-switch/flags/us.png

    is the url of the American Flag.

    http:/[sitename]/wordpress/wp-content/plugins/complete-language-switcher/flags/us.png

    is the url the plugin is trying to use. It appears the author has created confusion for himself by naming the plugin's directory similar, but not exactly the same as the plugin name, and then forgetting this.

    When I manually fix this (includes/output.php line27), I get gigantic flag images. This is due to the fact that I added the switcher to the header, inside the #branding tag, and they trigger the width:100% property of #branding img in the twentyeleven stlyesheet.

    Additionally, the plugin assumes the blog is situated at the server root, which is not ideal in all cases and certainly a mis-feature for development. This can be corrected by modifying line20 of output.php:

    <a href="'.get_bloginfo("url").'/?setlang='.$locale.'"';

    I recommend fixing both those lines in output.php, and also adding explicit styles for included images.

    Are we finished yet? Nope. I now found my page routing to be completely gorked, and could not access the 'sample page'. (all this was performed on a clean WordPress install as of Apr 2012). Which sounds a bit like the other issue on this forum.

    Regardless, what I was actually looking for is a plugin that can switch between different languages (xili-language plugin) whilst on the single post page, which this plugin does not seem to do - instead redirecting me to (an albeit correctly filtered) blog root page. Anyone know a good way of implementing that?`

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Complete Language Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic