• Resolved newby1884

    (@newby1884)


    Hello,

    first of all a big thanks for providing this plugin and the support for it, it is a great help!

    Concerning my problem: I installed the Multisite Language Switcher as well as the MslsMenu. It all works great, I can switch without any problem between the pages (although the flags are pretty sticked to each other, but I guess this can be solved through optimization or it’s theme specific). But always when I add another WordPress site in Albanian language and I adjust it to the others in style and functions, I want to add in the last step the language as I always did it already with the rest of the pages, after the implementation of the menu and the categories, but the flag does not appear. When I change in the backend the Blog-language, the flag is appearing immediately (for instance swedish, islandish, etc.), just not with Albanian and I don’t know why. Also when I want to add a new post, every language is shown by the flag, just not Albanian, which is represented just by “sq”. Unfortunately I can’t just let this language out and it anyway exists, but just doesn’t show up next to the other flags.

    My website is in test phase now, here is the link: https://www.balkanvoice.org. The albanian versions of the site exists also, but is not shown up in the flag menu: https://www.balkanvoice.org/sq/. Under the following link you can see the backend and the dysfunctional appearance of the Albanian flag: https://www11.pic-upload.de/16.06.15/zlvz7vwy6vc.png

    I would be very thankfull for support.

    https://www.ads-software.com/plugins/multisite-language-switcher/

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

    (@realloc)

    Hi,

    there was already a similar question: https://www.ads-software.com/support/topic/canadian-flag-insted-of-catalan?replies=4

    Just add this code to your functions.php if you want to show the Albanian flag for ‘sq’:

    function get_my_flag_icon( $icon, $language ) {
    	if ( 'sq' == $language ) {
    		$icon = 'al.png';
    	}
    	return $icon;
    }
    add_filter( 'msls_options_get_flag_icon', 'get_my_flag_icon', 10, 2 );
    Thread Starter newby1884

    (@newby1884)

    Hello,

    thanks for your fast answer! Unfortunately this didn’t work for me, I don’t know if it is due the fact that I’m working with a child-theme?! When I added this code to the functions.php and saved it, the flag didn’t appear and also there was now a code-line in the upper line of the backend to me, with the last line of your code.

    return $icon;
    }
    add_filter( ‘msls_options_get_flag_icon’, ‘get_my_flag_icon’, 10, 2 ); if I don’t make a mistake.

    But in the mean time I had another idea, namely to change simple the name of the flag from al.png to sq.png. Is this also a way or will it cause unforeseen errors? I already changed it and if you visit the site, you may see, that it already worked superficially, but I don’t know what about the deep fuctions…

    Best regards

    newby1884

    Thread Starter newby1884

    (@newby1884)

    Here a picture of the malfunction:

    https://www11.pic-upload.de/16.06.15/ggbo1t45en1f.png

    Plugin Author Dennis Ploetner

    (@realloc)

    In your example is a ?> which shouldn’t be there.

    If the solution with code isn’t for you then you could set the alternative flag directory in the plugins settings. Just copy the flag directory in your theme, rename the flag as you already said and than you are ready.

    Thread Starter newby1884

    (@newby1884)

    Hello,

    I will try this, it seems to have already worked.

    (by the way it may be helpfull to change the flags name in the plugin in general from al.png to sq.png, because name of Albanian differs in the Albanian language, where it’s called Shqip. Just like in greek, where you use el.png instead of gr.png)

    https://en.wikipedia.org/wiki/Albanian_language

    Here an example bilingual page of Albanian and Macedonian with the different subdomains:

    https://alsat.mk/

    Thanks a lot for your fast support and for providing this plugin in general constantly for free!

    Best regards,

    newby1884

    Plugin Author Dennis Ploetner

    (@realloc)

    Hi,

    OK … let me know. If you want to change something feel free to create an issue (or a pull request) here: https://github.com/lloc/Multisite-Language-Switcher.

    Cheers,
    Dennis.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Specific flag not appearing’ is closed to new replies.