Results 1 to 3 of 3

Thread: Flags for Swedish and San Salvador mixed up

  1. #1
    New user
    Join Date
    10-08-10.
    Posts
    8

    Default Flags for Swedish and San Salvador mixed up

    Changelanguage uses country flags to change between languages. Since languages and countries do not always have the same code, the flag image files must have the language code rather than the country code in their name.
    In my case, I have a part of my website in Swedish which has the language code "sv" (Sweden as a country has "se"). In order to function correctly with browser settings (Swedish people will have "sv" as primary language), my website must also use "sv" as language code. But the flag will then be the one for El Salvador, because El Salvador has "sv" as country code.

    Because changelanguage is a language switcher rather than a country switcher, the file "sv.gif" should contain the Swedish flag. I have changed this in my installation, but it should even be changed in the official releases.

  2. #2
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: Flags for Swedish and San Salvador mixed up

    Thanks for letting me know, the latest build should fix this.
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  3. #3
    New user
    Join Date
    01-16-12.
    Posts
    2

    Default Re: Flags for Swedish and San Salvador mixed up

    I was experiencing a similar issue, as part of my site is Swiss, and in Switzerland, they speak French and German, so it can get confusing using flags only. Hopefully this issue has been resolved
    Quote Originally Posted by d.tamm
    Changelanguage uses country flags to change between languages. Since languages and countries do not always have the same code, the flag image files must have the language code rather than the country code in their name.
    In my case, I have a part of my website in Swedish which has the language code "sv" (Sweden as a country has "se"). In order to function correctly with browser settings (Swedish people will have "sv" as primary language), my website must also use "sv" as language code. But the flag will then be the one for El Salvador, because El Salvador has "sv" as country code.

    Because changelanguage is a language switcher rather than a country switcher, the file "sv.gif" should contain the Swedish flag. I have changed this in my installation, but it should even be changed in the official releases.
    Weddings Las Vegas

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •