Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-5290

Language flags issue (shows the same flag) for countries with multiple languges

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Minor
    • xCM 6.5.0
    • xCM 6.5.0
    • None

    Description

      On a multi-language site where in the country Switzerland I can show the following languages:

      de_CH
      it_CH
      fr_CH

      The problem is however, that the current language switcher shows 3 times the same flag, and that's the flag for Switzerland. Would it not be better to show for de_CH the german flag, for it_CH the italian flag and for fr_CH the french flag? Since there is in reality no such thing as a flag for a language, I believe this is the best solution.

      The way to solve it for example for Switzerland is to add this CSS to your templates CSS:

      span.flag_de_CH {
      background: url("../../../modules/assets/css/images/flags/plain/flag_germany.png") no-repeat 0 0;
      }
      span.flag_it_CH {
      background: url("../../../modules/assets/css/images/flags/plain/flag_italy.png") no-repeat 0 0;
      }
      span.flag_fr_CH {
      background: url("../../../modules/assets/css/images/flags/plain/flag_france.png") no-repeat 0 0;
      }

      For images I revere to this Forum Post: http://www.jahia.org/forum/viewtopic.php?f=24&t=592&sid=4d2bc8751c427c3e2019c828bdf9b870#p2190

      TestRail: Results

        Attachments

          Activity

            People

              Unassigned Unassigned
              rvt ries
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.5.0