WordPress.org

Support

Support » Plugins and Hacks » Multisite Language Switcher » [Resolved] [Plugin: Multisite Language Switcher] Change flag

[Resolved] [Plugin: Multisite Language Switcher] Change flag

  • Hello,

    I have a Multisite install with three websites:
    1) English
    2) Spanish
    3) German

    The English .mo file I have is American English. Automatically the plugin gets the American flag. I would like to have a custom flag, namely the UK one.
    The custom-flag field is only for custom flag folders and not specific for flag you told me in another post.

    How do I do that?

    Thanks.
    Jonathan

    http://wordpress.org/extend/plugins/multisite-language-switcher/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dennis Ploetner

    @realloc

    The easiest way I know:

    – copy the whole flag-directory to your theme-directory
    – copy the us.png to gb.png
    – insert the name of your custom flag-directory in the configuration

    Cheers,
    Dennis.

    Thanks Dennis. That did the trick!

    Thanks for that! I had the same problem. I wanted to display a UK flag instead of US flag, when en_US is selected.

    I’d like to add some details to the procedure to make it easier for someone of my level (relative newbie) to understand and apply:

    – Procedure to change US flag to UK flag for en_US:

    Download flags zip file from this famfamfam.com URL to your computer:

    [Link to non-GPL file removed]

    “Extract all” from the zip file to a ‘flags’ subdirectory and upload everything in this subdirectory to your theme images directory. In my case this is my Studiopress Minimum child theme:

    /public_html/wp-content/themes/minimum/images

    So now you have all your flags in:

    /public_html/wp-content/themes/minimum/images/flags

    This flags subdirectory contains the UK flag (gb.png) and the US flag (us.png) that Multisite Language Switcher uses:

    /public_html/wp-content/themes/minimum/images/flags/png

    Next, delete us.png (or rename it to us_old.png).

    Then copy gb.png to us.png.

    Final step is to update Multisite Language Switcher Options. Update the “Custom URL for flag-images” setting on the relevant sites in your multisite to point to your local png subdirectory, in this case:

    /public_html/wp-content/themes/minimum/images/flags/png

    And you’re done…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Multisite Language Switcher] Change flag’ is closed to new replies.
Skip to toolbar