WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] Change flag (4 posts)

  1. JonathanFokker
    Member
    Posted 1 year ago #

    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/

  2. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. JonathanFokker
    Member
    Posted 1 year ago #

    Thanks Dennis. That did the trick!

  4. henscu
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic